|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--jade.tools.sniffer.MMAbstractAction
MMAbstractAction is the superclass of the actions performed by Sniffer GUI controls. This class is abstract because it does not define the ActionPerformed(ActionEvent evt) method. In every subClass of MMAbstractAction this method performs a specific action and updates the Sniffer GUI. Subclasses of MMAbstractAction are:
AboutBoxAction,
AddRemoveAgentAction,
ClearCanvasAction,
ExitAction,
WriteLogFileAction,
DisplayLogFileAction,
WriteMessageListAction, Serialized Form| Field Summary | |
protected java.lang.String |
ActionName
Handler to the name of the action |
protected static MMCanvas |
canvasAgent
Handler to the Agent Canvas |
protected static MMCanvas |
canvasMess
Handler to the Message Canvas |
protected javax.swing.Icon |
img
Handler to the action icon |
protected static java.util.Vector |
listeners
Handler to the listeners vector |
protected static javax.swing.JScrollPane |
scrollAgent
|
protected static javax.swing.JScrollPane |
scrollMess
|
protected static AgentFrame |
selFrame
Handler to the Selection Agents frame |
protected static MMTree |
selTree
Handler to the Selection Tree insidethe Selection Agents window |
protected static MMTextMessage |
text
|
| Fields inherited from class javax.swing.AbstractAction |
changeSupport,
enabled |
| Constructor Summary | |
MMAbstractAction(java.lang.String ActionName)
Constructor for creating a new action providing the name of the action |
|
MMAbstractAction(java.lang.String IconPath,
java.lang.String ActionName)
Constructor for creating a new action providing the name of the action and the path of the relative icon. |
|
MMAbstractAction(java.lang.String IconKey,
java.lang.String ActionName,
java.util.Vector listeners)
Constructor for creating a new action providing the name of the action, the path of the relative icon and a listeners vector. |
|
| Method Summary | |
static void |
AddListener(java.lang.Object current)
Adds an item to the listeners vector |
java.lang.String |
getActionName()
Returns the name of the current action |
static java.util.Vector |
getAllListeners()
Returns a handler to the vector containing all the registered listeners |
static java.lang.Object |
getFirst()
Returns the first of the registered listeners for an action. |
static java.lang.Object |
getLast()
Returns the last of the registered listeners for an action. |
static MMCanvas |
getMMCanvasAgent()
Returns a handle to Agent Canvas |
static MMCanvas |
getMMCanvasMess()
Returns a handle to Message Canvas |
protected static MMTree |
getTheTree()
Returns a handle to the agent names selection tree |
static void |
removeAllListeners()
Clears all the listeners in the relative vector |
static void |
removeListener(java.lang.Object current)
Removes an item from the listeners vector |
static void |
setListeners(java.lang.Object[] listenersP)
Clears the content of the listeners vector then adds the provided array to the mentioned vector |
static void |
setMMCanvasAgent(MMCanvas MyCanvas)
Sets a handle to Agent Canvas |
static void |
setMMCanvasMess(MMCanvas MyCanvas)
Sets a handle to Message Canvas |
static void |
setMMScrollAgent(javax.swing.JScrollPane scroll)
Sets a handle to scrollPane of canvasAgent |
static void |
setMMScrollMess(javax.swing.JScrollPane scroll)
Sets a handle to scrollPane of canvasMessage |
static void |
setMMTextMessage(MMTextMessage MyText)
Set a handle to textMessage bar |
| Methods inherited from class javax.swing.AbstractAction |
actionPerformed,
addPropertyChangeListener,
clone,
firePropertyChange,
getValue,
isEnabled,
putValue,
removePropertyChangeListener,
setEnabled |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected javax.swing.Icon img
protected java.lang.String ActionName
protected static java.util.Vector listeners
protected static MMCanvas canvasAgent
protected static MMCanvas canvasMess
protected static javax.swing.JScrollPane scrollAgent
protected static javax.swing.JScrollPane scrollMess
protected static MMTextMessage text
protected static AgentFrame selFrame
protected static MMTree selTree
| Constructor Detail |
public MMAbstractAction(java.lang.String IconKey,
java.lang.String ActionName,
java.util.Vector listeners)
IconPath - name of the icon representing the actionActionName - name of the actionlisteners - listeners vectorGuiProperties
public MMAbstractAction(java.lang.String IconPath,
java.lang.String ActionName)
IconPath - name of the icon representing the actionActionName - name of the actionGuiPropertiespublic MMAbstractAction(java.lang.String ActionName)
ActionName - name of the action| Method Detail |
public java.lang.String getActionName()
public static void setListeners(java.lang.Object[] listenersP)
listenersP - array of objects to be inserted in the listeners vectorpublic static void removeAllListeners()
public static void AddListener(java.lang.Object current)
current - handle to the object to be put in the listeners vectorpublic static void removeListener(java.lang.Object current)
current - handle to the object to be removed from the listeners vectorpublic static java.util.Vector getAllListeners()
public static java.lang.Object getLast()
public static java.lang.Object getFirst()
protected static MMTree getTheTree()
public static void setMMCanvasAgent(MMCanvas MyCanvas)
MyCanvas - handle to Agent Canvaspublic static void setMMCanvasMess(MMCanvas MyCanvas)
MyCanvas - handle to Message Canvaspublic static MMCanvas getMMCanvasAgent()
public static MMCanvas getMMCanvasMess()
public static void setMMScrollAgent(javax.swing.JScrollPane scroll)
scroll - handle to scrollPane of agent canvaspublic static void setMMScrollMess(javax.swing.JScrollPane scroll)
scroll - handle to scrollPane of the message canvaspublic static void setMMTextMessage(MMTextMessage MyText)
MyText - handle to text message bar
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||