com.yobotics.simulationconstructionset.gui
Class YoEnumEntryContainer<E extends java.lang.Enum<E>>

java.lang.Object
  extended by com.yobotics.simulationconstructionset.gui.YoEnumEntryContainer<E>
All Implemented Interfaces:
YoVariableEntryContainer, java.awt.event.ActionListener, java.util.EventListener

public class YoEnumEntryContainer<E extends java.lang.Enum<E>>
extends java.lang.Object
implements YoVariableEntryContainer, java.awt.event.ActionListener


Field Summary
static int STRING_LENGTH_CAP
           
static int STRING_LENGTH_LOWER_BOUND
           
static int STRING_TRUNCATION_FUNCTION_START_LENGTH
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void actionPerformed(YoEntryBox yoEntryBox, java.awt.event.ActionEvent evt)
           
 void bindToVariable(YoEntryBox yoEntryBox, YoVariable variable)
           
 void calculateStringFoldingParameters(java.util.Collection<java.lang.String> strings)
           
 void focusGained(YoEntryBox yoEntryBox)
           
 void focusLost(YoEntryBox yoEntryBox)
           
 YoVariable getVariable()
           
 boolean isEventSource(YoEntryBox yoEntryBox, java.awt.event.FocusEvent evt)
           
 void removeVariable(YoVariable variable)
           
 void setup(YoEntryBox yoEntryBox)
           
 void shutdown(YoEntryBox yoEntryBox)
           
 void update(YoEntryBox yoEntryBox)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_LENGTH_CAP

public static final int STRING_LENGTH_CAP
See Also:
Constant Field Values

STRING_LENGTH_LOWER_BOUND

public static final int STRING_LENGTH_LOWER_BOUND
See Also:
Constant Field Values

STRING_TRUNCATION_FUNCTION_START_LENGTH

public static final int STRING_TRUNCATION_FUNCTION_START_LENGTH
See Also:
Constant Field Values
Method Detail

getVariable

public YoVariable getVariable()
Specified by:
getVariable in interface YoVariableEntryContainer

update

public void update(YoEntryBox yoEntryBox)
Specified by:
update in interface YoVariableEntryContainer

actionPerformed

public void actionPerformed(YoEntryBox yoEntryBox,
                            java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface YoVariableEntryContainer

removeVariable

public void removeVariable(YoVariable variable)
Specified by:
removeVariable in interface YoVariableEntryContainer

setup

public void setup(YoEntryBox yoEntryBox)
Specified by:
setup in interface YoVariableEntryContainer

shutdown

public void shutdown(YoEntryBox yoEntryBox)
Specified by:
shutdown in interface YoVariableEntryContainer

bindToVariable

public void bindToVariable(YoEntryBox yoEntryBox,
                           YoVariable variable)
Specified by:
bindToVariable in interface YoVariableEntryContainer

isEventSource

public boolean isEventSource(YoEntryBox yoEntryBox,
                             java.awt.event.FocusEvent evt)
Specified by:
isEventSource in interface YoVariableEntryContainer

focusLost

public void focusLost(YoEntryBox yoEntryBox)
Specified by:
focusLost in interface YoVariableEntryContainer

focusGained

public void focusGained(YoEntryBox yoEntryBox)
Specified by:
focusGained in interface YoVariableEntryContainer

actionPerformed

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

calculateStringFoldingParameters

public void calculateStringFoldingParameters(java.util.Collection<java.lang.String> strings)