|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.CommandEvent
stella.command.SimpleCommand
stella.jview.JSimpleCommand
public class JSimpleCommand
A generic command event that allows JDisplayableCommand capabilities
for non-command line commands.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class stella.CommandEvent |
|---|
CommandEvent.Create |
| Field Summary | |
|---|---|
private JButton |
command
The button representing the command. |
private CommandEvent |
wrap
We deliver exactly the command we were constructed qwith. |
| Fields inherited from class stella.CommandEvent |
|---|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATOR |
| Fields inherited from class stella.MessageEvent |
|---|
SEPCHAR |
| Fields inherited from class util.rmi.RmiEvent |
|---|
localHost, sourceName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
JSimpleCommand(CommandEvent ce)
Constructs a command event from a simple command. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener box)
Adds an action listener to the command button. |
CommandEvent |
getCommand()
The fully qualified command for simple commands does not need anything. |
Icon |
getIcon()
Return null. |
Component |
getRepresentation()
Returns the button displaying the command name. |
boolean |
isEnabled()
Returns the enabled state of the button displayed. |
void |
removeActionListener(ActionListener box)
Removes the action listener from the command button. |
void |
setEnabled(boolean isactive)
Enables or disables the component. |
| Methods inherited from class stella.command.SimpleCommand |
|---|
getLine, parseLine |
| Methods inherited from class stella.CommandEvent |
|---|
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassName |
| Methods inherited from class stella.MessageEvent |
|---|
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toString |
| Methods inherited from class util.rmi.RmiEvent |
|---|
getHost, getSourceName, setSourceName |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.jview.JDisplayableCommand |
|---|
getType |
| Field Detail |
|---|
private JButton command
private CommandEvent wrap
| Constructor Detail |
|---|
public JSimpleCommand(CommandEvent ce)
| Method Detail |
|---|
public Icon getIcon()
getIcon in interface Displayablepublic Component getRepresentation()
getRepresentation in interface Displayablepublic void addActionListener(ActionListener box)
addActionListener in interface JDisplayableCommandpublic void removeActionListener(ActionListener box)
removeActionListener in interface JDisplayableCommandpublic CommandEvent getCommand()
getCommand in interface JDisplayableCommandpublic boolean isEnabled()
isEnabled in interface JDisplayableCommandpublic void setEnabled(boolean isactive)
setEnabled in interface JDisplayableCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||