org.xnap.commons.gui.action
Class AbstractSingleSelectionAction<T>

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xnap.commons.gui.action.AbstractXNapAction
          extended by org.xnap.commons.gui.action.AbstractSingleSelectionAction<T>
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, SelectionAction

public abstract class AbstractSingleSelectionAction<T>
extends AbstractXNapAction
implements SelectionAction

See Also:
Serialized Form

Field Summary
protected  T item
           
 
Fields inherited from class org.xnap.commons.gui.action.AbstractXNapAction
ICON_FILENAME
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractSingleSelectionAction()
           
 
Method Summary
 T getItem()
           
abstract  T selectItem(Object selectedItem)
           
 void setSelectedItems(Object[] items)
           
 
Methods inherited from class org.xnap.commons.gui.action.AbstractXNapAction
getIcon, initialize, setEnabledLater, tr, tr
 
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 javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

item

protected T item
Constructor Detail

AbstractSingleSelectionAction

public AbstractSingleSelectionAction()
Method Detail

getItem

public T getItem()

setSelectedItems

public void setSelectedItems(Object[] items)
Specified by:
setSelectedItems in interface SelectionAction

selectItem

public abstract T selectItem(Object selectedItem)


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.