thinwire.ui
Interface ImageComponent

All Superinterfaces:
Component
All Known Implementing Classes:
Button, Image, TabSheet

public interface ImageComponent
extends Component


Field Summary
static java.lang.String PROPERTY_IMAGE
           
 
Fields inherited from interface thinwire.ui.Component
ACTION_CLICK, ACTION_DOUBLE_CLICK, PROPERTY_ENABLED, PROPERTY_FOCUS, PROPERTY_FOCUS_CAPABLE, PROPERTY_HEIGHT, PROPERTY_LIMIT, PROPERTY_USER_OBJECT, PROPERTY_VISIBLE, PROPERTY_WIDTH, PROPERTY_X, PROPERTY_Y
 
Method Summary
 java.lang.String getImage()
          Returns the image file name that was specified for this component.
 ImageInfo getImageInfo()
          Returns an immutable ImageInfo class that provides information about the assigned image, such as width, height, format, etc.
 void setImage(java.lang.String image)
          Places an image on this component.
 
Methods inherited from interface thinwire.ui.Component
addActionListener, addActionListener, addDropListener, addDropListener, addKeyPressListener, addKeyPressListener, addPropertyChangeListener, addPropertyChangeListener, fireAction, fireAction, fireAction, fireDrop, fireDrop, fireDrop, fireKeyPress, fireKeyPress, getContainer, getHeight, getLabel, getLimit, getParent, getStyle, getUserObject, getWidth, getX, getY, isEnabled, isFocus, isFocusCapable, isVisible, removeActionListener, removeDropListener, removeKeyPressListener, removePropertyChangeListener, setBounds, setEnabled, setFocus, setFocusCapable, setHeight, setLimit, setPosition, setSize, setUserObject, setVisible, setWidth, setX, setY
 

Field Detail

PROPERTY_IMAGE

static final java.lang.String PROPERTY_IMAGE
See Also:
Constant Field Values
Method Detail

getImage

java.lang.String getImage()
Returns the image file name that was specified for this component.

Returns:
the image file name that was specified for this component.

setImage

void setImage(java.lang.String image)
Places an image on this component.

Parameters:
image - The file name or resource name of the image.

getImageInfo

ImageInfo getImageInfo()
Returns an immutable ImageInfo class that provides information about the assigned image, such as width, height, format, etc.

Returns:
an immutable ImageInfo describing this component's image, never null.


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story