|
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
public abstract class AbstractImage
An abstract base class for components that render images.
| Field Summary | |
|---|---|
static String |
PROPERTY_ACTION_COMMAND
The property for storing the action command associated with an action event for the image. |
static String |
PROPERTY_CURSOR
The cursor to display when hovering over the image. |
static String |
PROPERTY_IMAGE
The image reference for the component. |
static String |
PROPERTY_TEXT
The alternate text to display is the image cannot be rendered. |
static String |
PROPERTY_TOOL_TIP_TEXT
The tool tip text to display is the image cannot be rendered. |
| 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 | |
|---|---|
AbstractImage()
|
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Add the specified action listener to this component. |
protected void |
fireActionPerformed()
Notifies all listeners that have registered for this event type. |
String |
getActionCommand()
Return the value of PROPERTY_ACTION_COMMAND property. |
Cursor |
getCursor()
Return the value of PROPERTY_CURSOR property. |
ImageReference |
getImage()
Return the value of PROPERTY_IMAGE property. |
String |
getText()
Return the value of PROPERTY_TEXT property. |
String |
getToolTipText()
Return the value of PROPERTY_TOOL_TIP_TEXT property. |
boolean |
hasActionListeners()
Determines if the button has any ActionListeners registered. |
void |
processInput(String inputName,
Object inputValue)
|
void |
removeActionListener(ActionListener listener)
Remove the specified action listener from the component. |
void |
setActionCommand(String command)
Set the value of PROPERTY_ACTION_COMMAND property. |
void |
setBackgroundImage(ImageReference backgroundImage)
Over-ridden to be a noop since images do not support a
background image. |
void |
setCursor(Cursor cursor)
Set the value of PROPERTY_CURSOR property. |
void |
setImage(ImageReference image)
Set the value of PROPERTY_IMAGE property. |
void |
setImage(String url)
Set the value of the PROPERTY_IMAGE property. |
void |
setText(String text)
Set the value of PROPERTY_TEXT property. |
void |
setToolTipText(String text)
Set the value of PROPERTY_TOOL_TIP_TEXT property. |
| 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 |
| Field Detail |
|---|
public static final String PROPERTY_ACTION_COMMAND
public static final String PROPERTY_IMAGE
public static final String PROPERTY_CURSOR
public static final String PROPERTY_TEXT
public static final String PROPERTY_TOOL_TIP_TEXT
| Constructor Detail |
|---|
public AbstractImage()
| Method Detail |
|---|
public String getActionCommand()
PROPERTY_ACTION_COMMAND property.
public void setActionCommand(String command)
PROPERTY_ACTION_COMMAND property.
command - The action command value to set.public ImageReference getImage()
PROPERTY_IMAGE property.
public void setImage(ImageReference image)
PROPERTY_IMAGE property.
image - The image reference to set.public void setImage(String url)
PROPERTY_IMAGE property.
url - The URL for the image to use as the map region.public Cursor getCursor()
PROPERTY_CURSOR property.
public void setCursor(Cursor cursor)
PROPERTY_CURSOR property.
cursor - The cursor style to set.public String getText()
PROPERTY_TEXT property.
public void setText(String text)
PROPERTY_TEXT property.
text - The alternate text to set.public String getToolTipText()
PROPERTY_TOOL_TIP_TEXT property.
public void setToolTipText(String text)
PROPERTY_TOOL_TIP_TEXT property.
text - The tool tip text to set.
public void processInput(String inputName,
Object inputValue)
processInput in class ComponentfireActionPerformed()public void addActionListener(ActionListener listener)
addActionListener in class AbstractContainerlistener - The action listener to add.Component.firePropertyChange(String, Object, Object)protected void fireActionPerformed()
public void removeActionListener(ActionListener listener)
removeActionListener in class AbstractContainerlistener - The listener that is to be removed.Component.firePropertyChange(String, Object, Object)public boolean hasActionListeners()
ActionListeners registered.
hasActionListeners in class AbstractContainerpublic void setBackgroundImage(ImageReference backgroundImage)
noop since images do not support a
background image.
setBackgroundImage in class AbstractContainerbackgroundImage - The backgroundImage to apply.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||