vanted.attribute.token
Class TokenAttributeDiscreteEditorOne

java.lang.Object
  extended by org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
      extended by org.graffiti.plugin.editcomponent.AbstractValueEditComponent
          extended by vanted.attribute.token.TokenAttributeDiscreteEditorOne
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, org.graffiti.event.AttributeListener, org.graffiti.event.EdgeListener, org.graffiti.event.GraphListener, org.graffiti.event.NodeListener, org.graffiti.event.TransactionListener, org.graffiti.plugin.editcomponent.ValueEditComponent

public class TokenAttributeDiscreteEditorOne
extends org.graffiti.plugin.editcomponent.AbstractValueEditComponent
implements java.awt.event.ActionListener

The Class TokenAttributeDiscreteEditorOne another way to change the number of one discrete token in the VANTED gui.

Author:
Kevin Pucknat

Field Summary
 
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
showEmpty
 
Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
 
Constructor Summary
TokenAttributeDiscreteEditorOne(TokenDiscrete t)
          Instantiates a new token attribute discrete editor one.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JComponent getComponent()
           
 void setEditFieldValue()
           
 void setShowEmpty(boolean showEmpty)
           
 void setValue()
           
 
Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, setDisplayable, setEnabled
 
Methods 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, setParameter, setValue, transactionFinished, transactionStarted
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenAttributeDiscreteEditorOne

public TokenAttributeDiscreteEditorOne(TokenDiscrete t)
Instantiates a new token attribute discrete editor one.

Parameters:
t - the t
Method Detail

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in interface org.graffiti.plugin.editcomponent.ValueEditComponent

setShowEmpty

public void setShowEmpty(boolean showEmpty)
Specified by:
setShowEmpty in interface org.graffiti.plugin.editcomponent.ValueEditComponent
Overrides:
setShowEmpty in class org.graffiti.plugin.editcomponent.AbstractValueEditComponent

setEditFieldValue

public void setEditFieldValue()
Specified by:
setEditFieldValue in interface org.graffiti.plugin.editcomponent.ValueEditComponent

setValue

public void setValue()
Specified by:
setValue in interface org.graffiti.plugin.editcomponent.ValueEditComponent

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener