All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.graphics.ClickableTextAction
java.lang.Object
|
+----jp.kyasu.graphics.ClickableTextAction
- public class ClickableTextAction
- extends Object
- implements Serializable
The ClickableTextAction
class is used for implementing
the clickable (sensible) text. The clickable text action has a command
string and action listeners. If the text with a text style containing
an action is clicked, the action event that has a command string of
the action is delivered to the action listeners associated with the
action.
- Version:
- 02 Dec 1997
- Author:
- Kazuki YASUMATSU
- See Also:
- TextStyle, isClickable, setClickable, isClickable, setClickable
-
ClickableTextAction(String)
- Constructs a clickable text action with the specified command string.
-
addActionListener(ActionListener)
- Adds the specified action listener to receive action events
from this action.
-
equals(Object)
- Compares two objects for equality.
-
getActionCommand()
- Returns the command string for the action event fired by this action.
-
hasActionListener()
- Checks if this action has action listeners.
-
hashCode()
- Returns a hashcode for this action.
-
performClickableAction()
- Performs this action.
-
performClickableAction(Object)
- Performs this action with the specified source for the action event.
-
removeActionListener(ActionListener)
- Removes the specified action listener so it no longer receives
action events from this action.
ClickableTextAction
public ClickableTextAction(String actionCommand)
- Constructs a clickable text action with the specified command string.
- Parameters:
- actionCommand - the command string.
getActionCommand
public String getActionCommand()
- Returns the command string for the action event fired by this action.
hasActionListener
public boolean hasActionListener()
- Checks if this action has action listeners.
addActionListener
public synchronized void addActionListener(ActionListener l)
- Adds the specified action listener to receive action events
from this action.
- Parameters:
- l - the action listener.
removeActionListener
public synchronized void removeActionListener(ActionListener l)
- Removes the specified action listener so it no longer receives
action events from this action.
- Parameters:
- l - the action listener
performClickableAction
public void performClickableAction()
- Performs this action. The action event with the command string of
this action is delivered to the action listeners associated with
this action.
performClickableAction
public void performClickableAction(Object source)
- Performs this action with the specified source for the action event.
The action event with the command string of this action is delivered
to the action listeners associated with this action.
- Parameters:
- source - the source for the action event.
hashCode
public int hashCode()
- Returns a hashcode for this action.
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object anObject)
- Compares two objects for equality.
- Overrides:
- equals in class Object
All Packages Class Hierarchy This Package Previous Next Index