org.nuiton.jaxx.util
Class AbstractUIAction<H extends DialogUIHandler<?,?>>

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.nuiton.jaxx.util.AbstractUIAction<H>
Type Parameters:
H - type of handler
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
CancelAction, ResetAction, SaveAction

public abstract class AbstractUIAction<H extends DialogUIHandler<?,?>>
extends javax.swing.AbstractAction

Author:
chemit
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
protected  DialogUI<? extends H> ui
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected AbstractUIAction(java.lang.String name, javax.swing.Icon icon, DialogUI<? extends H> ui)
           
 
Method Summary
protected  void checkInit()
           
protected  H getHandler()
           
 DialogUI<? extends H> getUi()
           
protected  void setUi(DialogUI<? extends H> ui)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

log

protected static org.apache.commons.logging.Log log

ui

protected transient DialogUI<? extends H extends DialogUIHandler<?,?>> ui
Constructor Detail

AbstractUIAction

protected AbstractUIAction(java.lang.String name,
                           javax.swing.Icon icon,
                           DialogUI<? extends H> ui)
Method Detail

getHandler

protected H getHandler()

setUi

protected void setUi(DialogUI<? extends H> ui)

getUi

public DialogUI<? extends H> getUi()

checkInit

protected void checkInit()
                  throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException


Copyright © 2008-2010 CodeLutin. All Rights Reserved.