|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.mbdev.openstage.Xml
pl.mbdev.openstage.XmlFormItem
pl.mbdev.openstage.IppImageItem
public class IppImageItem
Item with an image that can be added to IppForm
. In case when the image is not
available, the alternative text can be used as a substitution.
Copyright 2011 Mateusz Bysiek, mb@mbdev.pl, http://mbdev.pl/ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Field Summary | |
---|---|
private Image |
image
Image attached to this image item. |
Constructor Summary | |
---|---|
IppImageItem(java.lang.String label,
Image image,
java.lang.String altText)
Creates new image item with all parameters available. |
Method Summary | |
---|---|
protected Image |
getImage()
Returns the image in this image item |
void |
setAltText(java.lang.String altText)
Sets the alternative text for this image item. |
void |
setLabel(java.lang.String label)
Sets the label for this image item. |
Methods inherited from class pl.mbdev.openstage.XmlFormItem |
---|
add |
Methods inherited from class pl.mbdev.openstage.Xml |
---|
add, add, addAndReturn, attributesToXmlString, attributeToXml, firstAttributesToXmlString, getContents, getLogicalRoot, getParent, getSubNode, getSubNodeIndex, getSubNodes, getXmlHeader, isEmpty, logicalAdd, sendTo, setContents, setParent, subObjectsCount, subObjectsToXmlString, toXmlString, wrapWithIppItem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Image image
Constructor Detail |
---|
public IppImageItem(java.lang.String label, Image image, java.lang.String altText)
label
- the labelimage
- the imagealtText
- alternative textMethod Detail |
---|
public void setLabel(java.lang.String label)
label
- new label for this image itempublic void setAltText(java.lang.String altText)
altText
- new alternative textprotected Image getImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |