|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpaolomind.multitalk.plugin.ToolManager
paolomind.multitalk.component.ActionCommandTool
public class ActionCommandTool
Un toolManager che implementa l' AWT ActionListener. Associando l'oggetto ad un Button o AbstractButton, cattura l'evento d'azione per selezionare un tool in base al ActionCommand associato all'evento scatenato
| Constructor Summary | |
|---|---|
ActionCommandTool(Sender s)
costruttore. |
|
ActionCommandTool(java.lang.String name,
Sender s)
costruttore. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Catturato l'evento, seleziona il tool. |
javax.swing.AbstractButton |
setupAction(ToolInterface t,
javax.swing.AbstractButton b)
Metodo che si occupa di assegnare l'ActionListener ad un javax.swing.AbstractButton e inizializzare l'ActionCommand. |
java.awt.Button |
setupAction(ToolInterface t,
java.awt.Button b)
Metodo che si occupa di assegnare l'ActionListner ad un java.awt.Button e inizializzare l'ActionCommand. |
| Methods inherited from class paolomind.multitalk.plugin.ToolManager |
|---|
get, getAll, getPropertes, getSelfId, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, receive, register, register, register, select, select, send, setSelfId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionCommandTool(Sender s)
s - il sender associato a cui spedire i messaggi
public ActionCommandTool(java.lang.String name,
Sender s)
name - il nome del toolmanager (la stringa verrà scritta nel
messaggio come info)s - il sender associato a cui spedire i messaggi| Method Detail |
|---|
public final void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - evento catturato,
tale evento deve aver specificato l'ActionCommand
con l' id del tool da selezionareActionListener.actionPerformed(java.awt.event.ActionEvent)
public final java.awt.Button setupAction(ToolInterface t,
java.awt.Button b)
t - tool da associare al bottoneb - il bottone da inizializzare
public final javax.swing.AbstractButton setupAction(ToolInterface t,
javax.swing.AbstractButton b)
t - tool da associare al bottoneb - il bottone da inizializzare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||