|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.spark.framework.Widget
The root Widget class type. All SPARK Widgets inherit from this class.
The Widget class implements the CommandHolder interface.
$Source: /cvsroot/spark/spark/source/java/net/sourceforge/spark/framework/Widget.java,v $$Log: Widget.java,v $ Revision 1.2 2005/07/24 04:03:28 afettes no message Revision 1.1 2005/07/24 03:55:32 afettes Initial commit to CVS.
CommandHolder,
Command| Field Summary | |
java.lang.String |
ID
The widgets unique ID. |
private java.util.Vector |
m_vpCommands
List of Commands that this Widget holds. |
java.lang.String |
TYPE
The widgets unique type. |
| Constructor Summary | |
Widget(java.lang.String id,
java.lang.String type)
Create a new Widget class with the given id. |
|
| Method Summary | |
void |
addCommand(Command in_command)
Add a command to this widget to be executed. |
abstract java.lang.Object |
getState()
Retrieve the state of the widget. |
void |
handleEvent(org.w3c.dom.events.Event evt)
This method is called whenever an event occurs of the type for which the EventListener interface was registered. |
void |
removeCommand(Command in_command)
Remove a command from this Widget. |
protected void |
runCommands()
Execute the list of commands that this command hold is holding. |
abstract void |
setState(java.lang.Object in_state)
Set the state of this widget. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Vector m_vpCommands
public final java.lang.String ID
public final java.lang.String TYPE
| Constructor Detail |
public Widget(java.lang.String id,
java.lang.String type)
id - The id.| Method Detail |
public abstract java.lang.Object getState()
public abstract void setState(java.lang.Object in_state)
in_state - The new state for the widget.public void addCommand(Command in_command)
addCommand in interface CommandHolderin_command - The Command to add.public void removeCommand(Command in_command)
removeCommand in interface CommandHolderin_command - The Command to remove.protected void runCommands()
public void handleEvent(org.w3c.dom.events.Event evt)
handleEvent in interface org.w3c.dom.events.EventListenerevt - The Event contains contextual information about
the event. It also contains the stopPropagation
and preventDefault methods which are used in
determining the event's flow and default action.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||