org.graffiti.plugin.editcomponent
Class SingleGraphElementEditComponent

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.SingleGraphElementEditComponent
All Implemented Interfaces:
EventListener, AttributeListener, EdgeListener, GraphListener, NodeListener, TransactionListener, ValueEditComponent
Direct Known Subclasses:
EdgeEditComponent, NodeEditComponent

public abstract class SingleGraphElementEditComponent
extends GraphComponentEditComponent

This class provides an edit component for graph elements.

See Also:
JComboBox, NodeEditComponent, EdgeEditComponent, GraphElement

Field Summary
protected  JComboBox comboBox
          The CombobBox for selecting a graph element.
protected  GraphElement ge
          The GraphElement to be edited.
 
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
protected SingleGraphElementEditComponent(Displayable<?> disp)
          Constructs a new SingleGraphElementEditComponent.
 
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 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, setDisplayable, setDisplayables, setDispValue, 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
 

Field Detail

ge

protected GraphElement ge
The GraphElement to be edited.


comboBox

protected JComboBox comboBox
The CombobBox for selecting a graph element.

Constructor Detail

SingleGraphElementEditComponent

protected SingleGraphElementEditComponent(Displayable<?> disp)
Constructs a new SingleGraphElementEditComponent.

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!

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


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