|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.app.Component
echopoint.internal.AbstractContainer
echopoint.internal.AbstractImage
echopoint.ImageIcon
public class ImageIcon
The ImageIcon class provides an component
that displays an ImageReference. A height and width
value can be specified to overide what may be defined in the
ImageReference itself. This allows images to be
"scaled" to different dimensions.
The advantage of ImageIcon over using a Label is that you can scale ImageReference objects that you may not
know the dimensions of, and it can be clicked on like a Button.
The following code shows sample usage of this component.
import echopoint.ImageIcon;
...
final ImageIcon icon = new ImageIcon( "image/imagemap.gif" );
icon.setWidth( 500 );
icon.setHeight( 300 );
icon.setActionCommand( "iconClicked" );
icon.addActionListener( ... );
final Column column = new Columnn();
column.add( icon );
| Field Summary |
|---|
| Fields inherited from class echopoint.internal.AbstractImage |
|---|
PROPERTY_ACTION_COMMAND, PROPERTY_CURSOR, PROPERTY_IMAGE, PROPERTY_TEXT, PROPERTY_TOOL_TIP_TEXT |
| Fields inherited from class echopoint.internal.AbstractContainer |
|---|
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH |
| Constructor Summary | |
|---|---|
ImageIcon()
Default constructor. |
|
ImageIcon(ImageReference icon)
Create a new instance using the specified image reference. |
|
ImageIcon(String url)
Create a new instance using an image from the specified HTTP URI. |
|
| Method Summary | |
|---|---|
ImageReference |
getIcon()
Deprecated. Use AbstractImage.getImage() instead. |
void |
setIcon(ImageReference icon)
Deprecated. Use AbstractImage.setImage(nextapp.echo.app.ImageReference) instead. |
| Methods inherited from class echopoint.internal.AbstractImage |
|---|
addActionListener, fireActionPerformed, getActionCommand, getCursor, getImage, getText, getToolTipText, hasActionListeners, processInput, removeActionListener, setActionCommand, setBackgroundImage, setCursor, setImage, setImage, setText, setToolTipText |
| Methods inherited from class echopoint.internal.AbstractContainer |
|---|
fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, setAlignment, setBorder, setHeight, setInsets, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageIcon()
public ImageIcon(ImageReference icon)
icon - The icon to associate with this component.public ImageIcon(String url)
url - The URI for the image resource.| Method Detail |
|---|
@Deprecated public ImageReference getIcon()
AbstractImage.getImage() instead.
AbstractImage.PROPERTY_IMAGE property.
@Deprecated public void setIcon(ImageReference icon)
AbstractImage.setImage(nextapp.echo.app.ImageReference) instead.
AbstractImage.PROPERTY_IMAGE property.
icon - The image reference to set.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||