org.graffiti.plugin.editcomponent
Class ComboBoxEditComponent

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

public class ComboBoxEditComponent
extends AbstractValueEditComponent

Displays a combo box to let the user choose from several possibilities.

Version:
$Revision: 5768 $

Field Summary
protected  JComboBox comboBox
          The combobox component used.
protected  Object[] comboText
          Text that is displayed in the combo box.
protected  Object[] comboValue
          The value that corresponds to the text specified in comboText.
 
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
ComboBoxEditComponent(Displayable<?> disp)
          Creates a new ComboBoxEditComponent object.
ComboBoxEditComponent(Displayable<?>[] disps)
          Creates a new ComboBoxEditComponent object.
 
Method Summary
 JComponent getComponent()
          Returns the ValueEditComponent's JComponent.
protected  void setDispEditFieldValue()
          Sets the current value of the Attribute in the corresponding JComponent.
protected  void setDispValue()
          Sets the value of the displayable specified in the JComponent.
 
Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
addVECChangeListener, fireVECChanged, fireVECChanged, getDisplayable, getDisplayables, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, removeVECChangeListener, setDisplayable, setDisplayables, setEditFieldValue, setEnabled, setShowEmpty, setValue
 
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
getErrorMessageOfInvalidParameter, isValid, postAttributeAdded, postAttributeRemoved, postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preAttributeAdded, preAttributeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, transactionFinished, transactionStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comboBox

protected JComboBox comboBox
The combobox component used.


comboText

protected Object[] comboText
Text that is displayed in the combo box.


comboValue

protected Object[] comboValue
The value that corresponds to the text specified in comboText.

Constructor Detail

ComboBoxEditComponent

public ComboBoxEditComponent(Displayable<?> disp)
Creates a new ComboBoxEditComponent object.

Parameters:
disp - DOCUMENT ME!

ComboBoxEditComponent

public ComboBoxEditComponent(Displayable<?>[] disps)
Creates a new ComboBoxEditComponent object.

Parameters:
disps - DOCUMENT ME!
Method Detail

getComponent

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

Returns:
DOCUMENT ME!

setDispEditFieldValue

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

Specified by:
setDispEditFieldValue in class AbstractValueEditComponent

setDispValue

protected void setDispValue()
Sets the value of the displayable specified in the JComponent. Probably not useful or overwritten by subclasses.

Specified by:
setDispValue in class AbstractValueEditComponent


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