plugins.adufour.ezplug
Class EzVarText

java.lang.Object
  extended by plugins.adufour.ezplug.EzComponent
      extended by plugins.adufour.ezplug.EzVar<java.lang.String>
          extended by plugins.adufour.ezplug.EzVarText
All Implemented Interfaces:
VarListener<java.lang.String>

public class EzVarText
extends EzVar<java.lang.String>

Class defining a variable of type String, embarking a textfield as graphical component

Author:
Alexandre Dufour

Field Summary
 
Fields inherited from class plugins.adufour.ezplug.EzComponent
name, visible
 
Constructor Summary
EzVarText(java.lang.String varName)
          Creates a new Text variable
EzVarText(java.lang.String varName, int nbLines)
          Creates a new Text variable
EzVarText(java.lang.String varName, java.lang.String defaultText)
          Creates a new Text variable
EzVarText(java.lang.String varName, java.lang.String[] defaultValues, java.lang.Boolean allowUserInput)
          Creates a new Text input variable with a list of default values
EzVarText(java.lang.String varName, java.lang.String[] defaultValues, int defaultValueIndex, java.lang.Boolean allowUserInput)
          Creates a new Text input variable with a list of default values and a default selection
EzVarText(java.lang.String varName, java.lang.String defaultText, int nbLines)
          Creates a new Text variable
 
Method Summary
 
Methods inherited from class plugins.adufour.ezplug.EzVar
addTo, addVarChangeListener, addVisibilityTriggerTo, dispose, fireVariableChanged, getDefaultValues, getValue, getValue, getVarEditor, getVariable, isEnabled, referenceChanged, removeAllVarChangeListeners, removeVarChangeListener, setDefaultValues, setEnabled, setOptional, setToolTipText, setValue, setVisible, toString, updateVisibilityChain, valueChanged
 
Methods inherited from class plugins.adufour.ezplug.EzComponent
getGroup, getVisible, isVisible, setGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EzVarText

public EzVarText(java.lang.String varName)
Creates a new Text variable

Parameters:
varName - the name of the variable (as it will appear on the interface)

EzVarText

public EzVarText(java.lang.String varName,
                 int nbLines)
Creates a new Text variable

Parameters:
varName - the name of the variable (as it will appear on the interface)
nbLines - the number of lines to display on the interface

EzVarText

public EzVarText(java.lang.String varName,
                 java.lang.String defaultText)
Creates a new Text variable

Parameters:
varName - the name of the variable (as it will appear on the interface)
defaultText - the default text to enter (the number of lines will be derived from this text)

EzVarText

public EzVarText(java.lang.String varName,
                 java.lang.String defaultText,
                 int nbLines)
Creates a new Text variable

Parameters:
varName - the name of the variable (as it will appear on the interface)
defaultText - the default text to enter
nbLines - the number of lines to display on the interface

EzVarText

public EzVarText(java.lang.String varName,
                 java.lang.String[] defaultValues,
                 java.lang.Boolean allowUserInput)
Creates a new Text input variable with a list of default values

Parameters:
varName - the variable name
defaultValues - the list of default values the user may choose from
allowUserInput - set to true if the user may input text manually instead of selecting a default value, or false to forbid user input

EzVarText

public EzVarText(java.lang.String varName,
                 java.lang.String[] defaultValues,
                 int defaultValueIndex,
                 java.lang.Boolean allowUserInput)
Creates a new Text input variable with a list of default values and a default selection

Parameters:
varName - the variable name
defaultValues - the list of default values the user may choose from
defaultValueIndex - the index of the default selected value
allowUserInput - set to true if the user may input text manually instead of selecting a default value, or false to forbid user input