cz.cuni.amis.nb.pogamut.base.server
Class ServerNode.ServerUpAction<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>

Package class diagram package ServerNode.ServerUpAction
java.lang.Object
  extended by javax.swing.AbstractAction
      extended by cz.cuni.amis.nb.pogamut.base.NamedAction
          extended by cz.cuni.amis.nb.pogamut.base.server.ServerNode.ServerUpAction<T>
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
ServerNode<T extends ServerDefinition>

public abstract static class ServerNode.ServerUpAction<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>
extends NamedAction

Action that is enabled only when the server is not null.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
enabled, changeSupport
 
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
ServerNode.ServerUpAction(String key, Class cls, ServerDefinition<T> def)
           
 
Method Summary
protected  T getServer()
           
 boolean isEnabled()
           
 
Methods inherited from class cz.cuni.amis.nb.pogamut.base.NamedAction
action, actionPerformed, getStr, init
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerNode.ServerUpAction

public ServerNode.ServerUpAction(String key,
                                 Class cls,
                                 ServerDefinition<T> def)
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Action
Overrides:
isEnabled in class AbstractAction

getServer

protected T getServer()


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.