com.notuvy.gui.action
Class ActionAttacher

java.lang.Object
  extended by com.notuvy.gui.action.ActionAttacher

public class ActionAttacher
extends Object

A utility to attach action listeners to components. It is instantiated with a reference to a GuiActionHandler that contains the methods to invoke for the UI actions. If a status bar is given, then the clear action is prepended to the action listener.

Author:
murali

Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
ActionAttacher(GuiActionHandler pHandler)
           
 
Method Summary
protected  ActionListener createActionListenerFor(String pLabel)
           
 ActionAttacher defineAction(AbstractButton pButton, ActionListener pActionListener)
           
 ActionAttacher defineAction(AbstractButton pButton, String pLabel)
           
 ActionAttacher defineAction(JMenuItem pItem, ActionListener pActionListener, KeyStroke pKeyStroke)
           
 ActionAttacher defineAction(JMenuItem pItem, String pLabel, KeyStroke pKeyStroke)
           
 ActionAttacher defineAction(MenuItem pItem, ActionListener pActionListener)
           
 ActionAttacher defineAction(MenuItem pItem, String pLabel)
           
 StatusBar getStatusBar()
           
 void setStatusBar(StatusBar pStatusBar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

ActionAttacher

public ActionAttacher(GuiActionHandler pHandler)
Method Detail

getStatusBar

public StatusBar getStatusBar()

setStatusBar

public void setStatusBar(StatusBar pStatusBar)

createActionListenerFor

protected ActionListener createActionListenerFor(String pLabel)

defineAction

public ActionAttacher defineAction(JMenuItem pItem,
                                   String pLabel,
                                   KeyStroke pKeyStroke)

defineAction

public ActionAttacher defineAction(JMenuItem pItem,
                                   ActionListener pActionListener,
                                   KeyStroke pKeyStroke)

defineAction

public ActionAttacher defineAction(AbstractButton pButton,
                                   String pLabel)

defineAction

public ActionAttacher defineAction(AbstractButton pButton,
                                   ActionListener pActionListener)

defineAction

public ActionAttacher defineAction(MenuItem pItem,
                                   String pLabel)

defineAction

public ActionAttacher defineAction(MenuItem pItem,
                                   ActionListener pActionListener)


Copyright © 2013. All Rights Reserved.