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

Constructor Index

 o ClickableTextAction(String)
Constructs a clickable text action with the specified command string.

Method Index

 o addActionListener(ActionListener)
Adds the specified action listener to receive action events from this action.
 o equals(Object)
Compares two objects for equality.
 o getActionCommand()
Returns the command string for the action event fired by this action.
 o hasActionListener()
Checks if this action has action listeners.
 o hashCode()
Returns a hashcode for this action.
 o performClickableAction()
Performs this action.
 o performClickableAction(Object)
Performs this action with the specified source for the action event.
 o removeActionListener(ActionListener)
Removes the specified action listener so it no longer receives action events from this action.

Constructors

 o ClickableTextAction
 public ClickableTextAction(String actionCommand)
Constructs a clickable text action with the specified command string.

Parameters:
actionCommand - the command string.

Methods

 o getActionCommand
 public String getActionCommand()
Returns the command string for the action event fired by this action.

 o hasActionListener
 public boolean hasActionListener()
Checks if this action has action listeners.

 o addActionListener
 public synchronized void addActionListener(ActionListener l)
Adds the specified action listener to receive action events from this action.

Parameters:
l - the action listener.
 o 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
 o 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.

 o 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.
 o hashCode
 public int hashCode()
Returns a hashcode for this action.

Overrides:
hashCode in class Object
 o 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