org.astrogrid.desktop.modules.adqlEditor.commands
Class EnumeratedElementInsertCommand

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
          extended by org.astrogrid.desktop.modules.adqlEditor.commands.StandardInsertCommand
              extended by org.astrogrid.desktop.modules.adqlEditor.commands.EnumeratedElementInsertCommand
All Implemented Interfaces:
Serializable, UndoableEdit, CommandExec, CommandInfo
Direct Known Subclasses:
JoinInsertCommand

public class EnumeratedElementInsertCommand
extends StandardInsertCommand

Author:
jl99@star.le.ac.uk TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.astrogrid.desktop.modules.adqlEditor.commands.CommandExec
CommandExec.Result
 
Field Summary
private static org.apache.commons.logging.Log log
           
private  String value
           
 
Fields inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
adqlTree, childElement, childToken, childType, maxOccurs, minOccurs, parentToken, parentType, undoManager
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Fields inherited from interface org.astrogrid.desktop.modules.adqlEditor.commands.CommandExec
ERROR, FAILED, OK, WARNING
 
Constructor Summary
protected EnumeratedElementInsertCommand()
           
  EnumeratedElementInsertCommand(AdqlTree adqlTree, UndoManager undoManager, AdqlNode parentTarget, SchemaType childType, SchemaProperty childElement)
           
  EnumeratedElementInsertCommand(EnumeratedElementInsertCommand eic)
           
 
Method Summary
protected  CommandExec.Result _execute()
           
protected  CommandExec.Result _unexecute()
           
 String[] getEnumeratedValues()
           
 void setSelectedValue(String value)
           
 String toString()
           
 
Methods inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.StandardInsertCommand
die, execute, getPresentationName, redo, undo
 
Methods inherited from class org.astrogrid.desktop.modules.adqlEditor.commands.AbstractCommand
addToEditStore, exchangeInEditStore, exchangeInEditStore, getChildDisplayName, getChildElement, getChildElementName, getChildEntry, getChildIndex, getChildMaxOccurs, getChildMinOccurs, getChildObject, getChildToken, getChildType, getFromEditStore, getMessages, getParentDisplayName, getParentElementName, getParentEntry, getParentObject, getParentToken, getParentType, isChildCascadeable, isChildColumnLinked, isChildDisallowed, isChildDrivenByEnumeratedAttribute, isChildDrivenByEnumeratedElement, isChildEnabled, isChildHeldInArray, isChildInPatternContext, isChildMandatorySingleton, isChildOptionalSingleton, isChildSupportedType, isChildTableLinked, isInitializedStatusGood, isInsertableIntoArray, isParentSuitablePasteTargetFor, setMessages
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

value

private String value
Constructor Detail

EnumeratedElementInsertCommand

public EnumeratedElementInsertCommand(AdqlTree adqlTree,
                                      UndoManager undoManager,
                                      AdqlNode parentTarget,
                                      SchemaType childType,
                                      SchemaProperty childElement)
Parameters:
target -
-

EnumeratedElementInsertCommand

public EnumeratedElementInsertCommand(EnumeratedElementInsertCommand eic)

EnumeratedElementInsertCommand

protected EnumeratedElementInsertCommand()
Method Detail

setSelectedValue

public void setSelectedValue(String value)
Overrides:
setSelectedValue in class StandardInsertCommand

getEnumeratedValues

public String[] getEnumeratedValues()

_execute

protected CommandExec.Result _execute()
Overrides:
_execute in class StandardInsertCommand

_unexecute

protected CommandExec.Result _unexecute()
Overrides:
_unexecute in class StandardInsertCommand

toString

public String toString()
Overrides:
toString in class StandardInsertCommand


Copyright © 2002-2010 AstroGrid. All Rights Reserved.