|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.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 nextapp.echo.LabelEx
is that you can scale ImageReference
objects that you may not
know the dimensions of, and it can be clicked on like a ButtonEx.
Field Summary | |
static nextapp.echo2.app.Style |
DEFAULT_STYLE
|
static java.lang.String |
PROPERTY_ACTION_COMMAND
|
static java.lang.String |
PROPERTY_ICON
|
Fields inherited from class echopointng.ComponentEx |
PROPERTY_HIDDEN |
Fields inherited from class nextapp.echo2.app.Component |
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Fields inherited from interface echopointng.able.AccessKeyable |
PROPERTY_ACCESS_KEY |
Fields inherited from interface echopointng.able.Borderable |
PROPERTY_BORDER |
Fields inherited from interface echopointng.able.MouseCursorable |
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
Fields inherited from interface echopointng.able.Insetable |
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
Fields inherited from interface echopointng.able.Widthable |
PROPERTY_WIDTH |
Fields inherited from interface echopointng.able.Heightable |
PROPERTY_HEIGHT |
Fields inherited from interface echopointng.able.ToolTipable |
PROPERTY_TOOL_TIP_TEXT |
Constructor Summary | |
ImageIcon()
Constructs a ImageIcon with a null ImageReference.
|
|
ImageIcon(nextapp.echo2.app.ImageReference imageRef)
Constructs a ImageIcon and sets the
width and height to be that of the ImageReference. |
|
ImageIcon(nextapp.echo2.app.ImageReference imageRef,
nextapp.echo2.app.Extent width,
nextapp.echo2.app.Extent height)
Constructs a ImageIcon with the specified
width and height |
|
ImageIcon(nextapp.echo2.app.ImageReference imageRef,
int width,
int height)
Constructs a ImageIcon with the specified
width and height |
Method Summary | |
void |
addActionListener(nextapp.echo2.app.event.ActionListener l)
Adds an ActionListener . |
void |
fireActionPerformed()
Notifies all listeners that have registered for this event type. |
java.lang.String |
getActionCommand()
Returns the action command for this ImageIcon. |
nextapp.echo2.app.Extent |
getHeight()
Retutns the height extent of the Heightable . |
nextapp.echo2.app.ImageReference |
getIcon()
Returns the ImageReference within. |
nextapp.echo2.app.Extent |
getWidth()
Returns the width extent of the Widthable . |
boolean |
hasActionListeners()
Determines if the ImageIcon has any ActionListener s
registered. |
void |
processInput(java.lang.String inputName,
java.lang.Object inputValue)
|
void |
removeActionListener(nextapp.echo2.app.event.ActionListener l)
Removes an ActionListener . |
void |
setActionCommand(java.lang.String newValue)
Sets the ImageIcon's action command. |
void |
setHeight(nextapp.echo2.app.Extent newValue)
Sets the height extent of the Heightable . |
void |
setIcon(nextapp.echo2.app.ImageReference newValue)
Sets the ImageReference used by the ImageIcon. |
void |
setWidth(nextapp.echo2.app.Extent newValue)
Sets the width extent of the Widthable . |
Methods inherited from class echopointng.AbleComponent |
getAccessKey, getBorder, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getToolTipText, setAccessKey, setBorder, setInsets, setMouseCursor, setMouseCursorUri, setOutsets, setToolTipText |
Methods inherited from class nextapp.echo2.app.Component |
add, add, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface echopointng.able.Delegateable |
getRenderProperty, getRenderProperty |
Field Detail |
public static final java.lang.String PROPERTY_ACTION_COMMAND
public static final java.lang.String PROPERTY_ICON
public static final nextapp.echo2.app.Style DEFAULT_STYLE
Constructor Detail |
public ImageIcon()
ImageIcon
with a null ImageReference.
The width and height are set to DEFAULT_WIDTH and/or DEFAULT_HEIGHT.
public ImageIcon(nextapp.echo2.app.ImageReference imageRef)
ImageIcon
and sets the
width and height to be that of the ImageReference.
imageRef
- public ImageIcon(nextapp.echo2.app.ImageReference imageRef, nextapp.echo2.app.Extent width, nextapp.echo2.app.Extent height)
ImageIcon
with the specified
width and height
imageRef
- - the ImageReference to displaywidth
- - the width to scale it toheight
- - the height to scale it topublic ImageIcon(nextapp.echo2.app.ImageReference imageRef, int width, int height)
ImageIcon
with the specified
width and height
imageRef
- - the ImageReference to displaywidth
- - the width in pixels to scale it toheight
- - the height in pixels to scale it toMethod Detail |
public void processInput(java.lang.String inputName, java.lang.Object inputValue)
Component.processInput(java.lang.String, java.lang.Object)
public void addActionListener(nextapp.echo2.app.event.ActionListener l)
ActionListener
.
l
- The ActionListener
to be added.public void fireActionPerformed()
public java.lang.String getActionCommand()
public nextapp.echo2.app.ImageReference getIcon()
public void removeActionListener(nextapp.echo2.app.event.ActionListener l)
ActionListener
.
l
- The ActionListener
to be removed.public boolean hasActionListeners()
ImageIcon
has any ActionListener
s
registered.
public void setActionCommand(java.lang.String newValue)
newValue
- The new action command for this ImageIcon.public void setIcon(nextapp.echo2.app.ImageReference newValue)
newValue
- public nextapp.echo2.app.Extent getHeight()
Heightable
Heightable
.
getHeight
in interface Heightable
getHeight
in class AbleComponent
Heightable.getHeight()
public nextapp.echo2.app.Extent getWidth()
Widthable
Widthable
.
getWidth
in interface Widthable
getWidth
in class AbleComponent
Widthable.getWidth()
public void setHeight(nextapp.echo2.app.Extent newValue)
Heightable
Heightable
.
setHeight
in interface Heightable
setHeight
in class AbleComponent
Heightable.setHeight(nextapp.echo2.app.Extent)
public void setWidth(nextapp.echo2.app.Extent newValue)
Widthable
Widthable
.
setWidth
in interface Widthable
setWidth
in class AbleComponent
Widthable.setWidth(nextapp.echo2.app.Extent)
|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |