pl.mbdev.openstage
Class IppImageItem

java.lang.Object
  extended by pl.mbdev.openstage.Xml
      extended by pl.mbdev.openstage.XmlFormItem
          extended by pl.mbdev.openstage.IppImageItem

public class IppImageItem
extends XmlFormItem

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.
 

Author:
Mateusz Bysiek

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

image

private Image image
Image attached to this image item.

Constructor Detail

IppImageItem

public IppImageItem(java.lang.String label,
                    Image image,
                    java.lang.String altText)
Creates new image item with all parameters available.

Parameters:
label - the label
image - the image
altText - alternative text
Method Detail

setLabel

public void setLabel(java.lang.String label)
Sets the label for this image item.

Parameters:
label - new label for this image item

setAltText

public void setAltText(java.lang.String altText)
Sets the alternative text for this image item.

Parameters:
altText - new alternative text

getImage

protected Image getImage()
Returns the image in this image item

Returns:
image in this image item