Class StringEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.graffiti.plugins.editcomponents.defaults.StringEditComponent
- All Implemented Interfaces:
EventListener,AttributeListener,EdgeListener,GraphListener,NodeListener,TransactionListener,ValueEditComponent
- Direct Known Subclasses:
TextAreaEditComponent
public class StringEditComponent extends AbstractValueEditComponent
StringEditComponent provides an edit component for editing
strings. The edit field has just one line.- Version:
- $Revision: 1.9 $
- See Also:
AbstractValueEditComponent,JTextComponent,TextAreaEditComponent
-
Field Summary
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
showEmptyFields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING -
Constructor Summary
Constructors Constructor Description StringEditComponent(Displayable disp)Constructs a newStringEditComponent. -
Method Summary
Modifier and Type Method Description JComponentgetComponent()Returns theJComponentof this edit component.voidsetEditFieldValue()Sets the current value of the displayable in the correspondingJComponent.voidsetParameter(String setting, Object value)voidsetValue()Sets the value of the displayable specified in theJComponent.Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, setDisplayable, setEnabled, setShowEmptyMethods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
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, setValue, transactionFinished, transactionStarted
-
Constructor Details
-
StringEditComponent
Constructs a newStringEditComponent.- Parameters:
disp- DOCUMENT ME!
-
-
Method Details
-
getComponent
Returns theJComponentof this edit component.- Returns:
- the
JComponentof this edit component.
-
setEditFieldValue
public void setEditFieldValue()Sets the current value of the displayable in the correspondingJComponent. -
setValue
public void setValue()Sets the value of the displayable specified in theJComponent. But only if it is different. -
setParameter
- Specified by:
setParameterin interfaceValueEditComponent- Overrides:
setParameterin classValueEditComponentAdapter
-