de.grogra.pf.ui.registry
public class CommandItem extends Executable implements Command, UIItem, EventListener, java.lang.Runnable
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NTypeEventListener.Bicast, EventListener.Multicaster| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
static Node.NType.Field |
cls$FIELD |
static Node.NType.Field |
enabled$FIELD |
static Node.NType.Field |
immediate$FIELD |
static Node.NType.Field |
motion$FIELD |
static Node.NType.Field |
plugin$FIELD |
static Node.NType.Field |
run$FIELD |
static int |
USED_BITS |
ADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELDACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
CommandItem(java.lang.String key) |
CommandItem(java.lang.String key,
Command command) |
CommandItem(java.lang.String key,
java.lang.Runnable listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
eventOccured(java.util.EventObject e)
This method is invoked on registered event listeners when
event has occured. |
java.lang.String |
getCommandName()
Returns a name which can be used in the graphical user interface
to represent this command.
|
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
int |
getUINodeType() |
java.lang.Object |
invoke(Context ctx,
java.lang.String method,
java.lang.Object arg) |
boolean |
isAvailable(Context ctx) |
boolean |
isEnabled(Context ctx) |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
protected boolean |
readAttribute(java.lang.String uri,
java.lang.String name,
java.lang.String value) |
void |
run() |
void |
run(java.lang.Object info,
Context ctx)
Performs the actions of this command.
|
void |
run(RegistryContext ctx,
StringMap args) |
runExecutables, runExecutablesactivate, activateImpl, add, add, addPluginPrerequisite, addPluginPrerequisites, addRequiredFiles, addUserItem, addUserItemWithUniqueName, addWithUniqueName, beginXA, classForName, commitXA, createItem, deactivate, deactivateImpl, deriveItems, dupUnmanagedFields, equals, findAll, findAll, findAll, findFirst, findFirst, findFirst, findMax, findMax, findMax, forAll, forAll, forAll, get, getAbsoluteName, getAccessor, getAccessor, getAttributes, getAttributes, getClassLoader, getDefaultDescription, getDefaultValue, getDerivedDescription, getDescription, getDescriptionImpl, getFromResource, getI18NBundle, getItem, getLock, getParentMap, getPath, getPluginDescriptor, getRegistry, getRoot, getTransaction, getUniqueName, getWriteLock, hasEditableOptions, initPluginDescriptor, isActivated, isDirectory, isEditable, isOptionCategory, isPluginItem, isUserItem, makeUserItem, paramString, remove, removeDerivedItems, resolveItem, resolveLink, set, setDefaultDescription, setDescription, setDescription, setDirectory, setName, setNameIfNull, setOption, substitute, validateaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, edgeChanged, fieldModified, findAdjacent, findRefinementType, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
public static final Node.NType.Field cls$FIELD
public static final Node.NType.Field enabled$FIELD
public static final Node.NType.Field immediate$FIELD
public static final Node.NType.Field motion$FIELD
public static final Node.NType.Field plugin$FIELD
public static final Node.NType.Field run$FIELD
public static final int USED_BITS
public CommandItem(java.lang.String key)
public CommandItem(java.lang.String key,
Command command)
public CommandItem(java.lang.String key,
java.lang.Runnable listener)
public void eventOccured(java.util.EventObject e)
EventListenerevent has occured. This general listener interface
does not restrict the possible kinds of events. Concrete sources
of events should specify which events they may fire.e - an eventpublic java.lang.String getCommandName()
CommandgetCommandName in interface Commandprotected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class Itempublic int getUINodeType()
getUINodeType in interface UIItempublic java.lang.Object invoke(Context ctx, java.lang.String method, java.lang.Object arg)
public boolean isAvailable(Context ctx)
isAvailable in interface UIItemprotected Node newInstance()
NodenewInstance in class Itemprotected boolean readAttribute(java.lang.String uri,
java.lang.String name,
java.lang.String value)
throws org.xml.sax.SAXException
readAttribute in class Itemorg.xml.sax.SAXExceptionpublic void run()
run in interface java.lang.Runnablepublic void run(java.lang.Object info,
Context ctx)
CommandJobManager after the command has been submitted
to the job manager by one of execute, runAt,
or runLater-methods. The arguments info
and context are the arguments which have been provided
as arguments to the JobManager-methods.public void run(RegistryContext ctx, StringMap args)
run in class Executable