org.graffiti.plugin.editcomponent
Class SelectionEditComponent

java.lang.Object
  extended by org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
      extended by org.graffiti.plugin.editcomponent.AbstractValueEditComponent
          extended by org.graffiti.plugin.editcomponent.GraphComponentEditComponent
              extended by org.graffiti.plugin.editcomponent.SelectionEditComponent
All Implemented Interfaces:
EventListener, AttributeListener, EdgeListener, GraphListener, NodeListener, TransactionListener, ValueEditComponent

public class SelectionEditComponent
extends GraphComponentEditComponent

This class provides an edit component for selections.

See Also:
Selection, GraphComponentEditComponent

Field Summary
 
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
editField, showEmpty
 
Fields inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
displayable, displayables
 
Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
 
Constructor Summary
SelectionEditComponent(Displayable<?> disp)
          Constructs a new SelectionEditComponent.
 
Method Summary
 String getCaption()
          Returns a String suitable for the name column in the name value table.
 JComponent getComponent()
          Returns the ValueEditComponent's JComponent.
protected  void setDispEditFieldValue()
          Sets the current value of the Attribute in the corresponding JComponent.
 void setDisplayable(Displayable<?> attr)
          Sets the displayable.
protected  void setDispValue()
           
 void setGraphComponent()
          Sets the graph component selectable by this edit component.
 
Methods inherited from class org.graffiti.plugin.editcomponent.GraphComponentEditComponent
postAttributeAdded, postAttributeChanged, postAttributeRemoved, preAttributeAdded, preAttributeChanged, preAttributeRemoved, transactionFinished, transactionStarted
 
Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
addVECChangeListener, fireVECChanged, fireVECChanged, getDisplayable, getDisplayables, getShowEmpty, isEnabled, removeVECChangeListener, setDisplayables, setEditFieldValue, setEnabled, setShowEmpty, setValue
 
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
getErrorMessageOfInvalidParameter, isValid, postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionEditComponent

public SelectionEditComponent(Displayable<?> disp)
Constructs a new SelectionEditComponent.

Parameters:
disp - DOCUMENT ME!
Method Detail

getCaption

public String getCaption()
Returns a String suitable for the name column in the name value table.

Returns:
a String suitable for the name column in the name value table.

getComponent

public JComponent getComponent()
Returns the ValueEditComponent's JComponent.

Returns:
DOCUMENT ME!
Throws:
RuntimeException - DOCUMENT ME!

setDisplayable

public void setDisplayable(Displayable<?> attr)
Description copied from class: AbstractValueEditComponent
Sets the displayable.

Specified by:
setDisplayable in interface ValueEditComponent
Overrides:
setDisplayable in class AbstractValueEditComponent
Parameters:
attr - the object to connect to this component.

setDispEditFieldValue

protected void setDispEditFieldValue()
Sets the current value of the Attribute in the corresponding JComponent.

Specified by:
setDispEditFieldValue in class AbstractValueEditComponent

setGraphComponent

public void setGraphComponent()
Sets the graph component selectable by this edit component.

Specified by:
setGraphComponent in class GraphComponentEditComponent

setDispValue

protected void setDispValue()
Specified by:
setDispValue in class AbstractValueEditComponent
See Also:
ValueEditComponent.setValue()


Generated at 2012-05-30 11:00:36 PM CEST