harmonic.mz.data.fields
Class ExclusiveIntField

java.lang.Object
  |
  +--harmonic.mz.data.ModelNode
        |
        +--harmonic.mz.data.fields.IntField
              |
              +--harmonic.mz.data.fields.ExclusiveIntField
All Implemented Interfaces:
java.awt.event.ActionListener, DataNode, Documentable, java.util.EventListener, Interpolater, harmonic.meshGeom.math.MarkableObject, NodeListener

public class ExclusiveIntField
extends IntField

This is the integer choice data field. It creates an ExclusiveIntEntry to control it. The value of this field stores a choice of a few possible values by the user, where each is presented as a string, in other words, the result of a choice box.


Field Summary
 
Fields inherited from class harmonic.mz.data.fields.IntField
max, min, widgetType
 
Fields inherited from class harmonic.mz.data.ModelNode
_fileRoot_, _thread_, ATTRIB_CONTROL_WIDGET, ATTRIB_LISTABLE, ATTRIB_PRESENTABLE, ATTRIB_PRIVATE, ATTRIB_REMOVEABLE, ATTRIB_RENAMEABLE, ATTRIB_SHOW_CONTEXT_MENU, ATTRIB_TYPE_FILTER, ATTRIB_USERGROUP, ATTRIB_VALUE_GROUP, ATTRIB_VE_LISTENER, bCustomCS, bDebug, bValid, name
 
Constructor Summary
ExclusiveIntField()
          Constructs an ExclusiveIntField
ExclusiveIntField(int value)
          Constructs an ExclusiveIntField
ExclusiveIntField(java.lang.String name, int value)
          Constructs an ExclusiveIntField
ExclusiveIntField(java.lang.String name, NodeListener listener, int value)
          Constructs an ExclusiveIntField
ExclusiveIntField(java.lang.String name, java.lang.Object listener, java.lang.String callback, int value)
          Constructs an ExclusiveIntField
 
Method Summary
 void addItem(java.lang.String name, int value)
          Adds an option
 java.awt.Component createControlWidget()
          Implements abstract control widget creator by returning an ExclusiveIntEntry
 ModelNode createCopy()
          Overrideable function to create and return a copy of this node Default version uses introspection to create a new copy using the newInstance() function, which requires a no argument public constructor.
 java.lang.String getCurrentOption()
           
 java.lang.String getTypeName()
           
 java.lang.String[] optionNames()
           
 int[] options()
           
 java.lang.String pythonString()
          String for represention in python.
 
Methods inherited from class harmonic.mz.data.fields.IntField
assignFromXMLString, assignToXMLString, debugString, getInt, getInterpolater, getValue, initControlWidget, interpolate_Linear, interpolate_Quadratic, set, setInt, setScrollRange, setValue
 
Methods inherited from class harmonic.mz.data.ModelNode
actionPerformed, addAll, addAlphaed, addField, addField, addField, addFields, addNetworkInput, addNetworkOutput, addNode, addNodeListener, addNodeListener, addNodes, addNodes, addToCurrent, addToGlobals, addToNetworkEditor, addToTemps, addWithUndo, allFieldsAreFinal, applyDataTransfer, areFieldsValid, assignFromMetaFields, assignFromXMLAttributes, assignToMetaFields, assignToXMLAttributes, at, bind, canSelect, castSelection, checkFileRead, checkNetworkInput, childCount, clean, clearAttrib, clearNotified, compare, copyFrom, createXMLElement, deepCopy, defeatNodeEvents, disableEvents, enableEvents, expectedValidationTime, fileRoot, finalize, findFieldElement, findNode, fromXMLNodes, getAttrib, getBound, getCatagory, getControlWidget, getCurrentNames, getDataTransfer, getDataTransferTypes, getDeleted, getDirectInputs, getDirectOutputs, getEffectors, getEntryListener, getErrorState, getFilterType, getFullName, getHandles, getInstanceURL, getIsLeaf, getListable, getMark, getMetaFields, getName, getNodeChildren_V, getNodeChildren, getNodeID, getNodeParent, getObjectRep, getPresentable, getPrivate, getReferencePoolName, getRemoteOwner, getRemoveable, getRenameable, getSaveable, getSavedChildren, getSelect, getSeparateDirectInputs, getSeparateDirectOutputs, getSequenced, getSerialNo, getTags, getTentativeSelect, getTransformable, getTransformableParent, getTransient, getTreeName, getTypeImage, getTypeURL, getUnfoldedChildren, getUpdateTime, getUserGroup, getValidates, getXMLNodes, hasDependants, hasExternalRef, hashKey, hasValidationLock, hideControlWidget, indexOf, initControlWidget, insertNode, invalidate, isField, isFinal, isInSubtree, isInTree, isLinked, isNotified, isPurged, isSet, isTemporary, isValid, linkedTo, linksChildren, makeContextMenu, makeFixed, makePrototype, makeReferenced, makeUnreferenced, makeVisibleInGUI, markNotified, mayValidate, nodeChanged, notifyListeners, postAssignFromXMLElement, preAssignToXMLElement, printChildren, printTags, printTree, printTree, purge, purgeFinal, remove, removeAll, removeAll, removeHandles, removeNetworkInput, removeNetworkOutput, removeNode, removeNode, removeNode, removeNodeListener, replace, selfNodeChanged, setActualName, setAttrib, setBound, setCatagory, setChildrenExcept, setCoordSystem, setCurrentControlWidget, setCurrentNames, setDeleted, setEntryListener, setErrorState, setFromPrototype, setIsField, setIsLeaf, setIsSet, setListable, setMark, setMetaFields, setName, setNodeParent, setPresentable, setPrivate, setRemoteOwner, setRemoveable, setRenameable, setSaveable, setSelect, setSelect, setSequenced, setSerialNo, setTentativeSelect, setTentativeSelect, setToLink, setTransient, setTransientChildren, setUpdateTime, setUserGroup, setValidates, setValidationLock, setValueGroup, showControlWidget, showControlWidget, showControlWidget, showHandles, startRename, tag, toString, unlinkListeners, unmarkNotified, untag, updateBindable, valChanged, valChanged, validate, valueString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExclusiveIntField

public ExclusiveIntField()
Constructs an ExclusiveIntField


ExclusiveIntField

public ExclusiveIntField(int value)
Constructs an ExclusiveIntField

Parameters:
value - Value of field

ExclusiveIntField

public ExclusiveIntField(java.lang.String name,
                         int value)
Constructs an ExclusiveIntField

Parameters:
name - Name of field
value - Value of field

ExclusiveIntField

public ExclusiveIntField(java.lang.String name,
                         NodeListener listener,
                         int value)
Constructs an ExclusiveIntField

Parameters:
name - Name of field
listener - Listener to update
value - Value of field

ExclusiveIntField

public ExclusiveIntField(java.lang.String name,
                         java.lang.Object listener,
                         java.lang.String callback,
                         int value)
Constructs an ExclusiveIntField

Parameters:
name - Name of field
listener - Listener to update
callback - Listeners callback function
value - Value of field
Method Detail

getTypeName

public java.lang.String getTypeName()
Overrides:
getTypeName in class IntField

getCurrentOption

public java.lang.String getCurrentOption()

options

public int[] options()

optionNames

public java.lang.String[] optionNames()

createCopy

public ModelNode createCopy()
Description copied from class: ModelNode
Overrideable function to create and return a copy of this node Default version uses introspection to create a new copy using the newInstance() function, which requires a no argument public constructor. It then uses the set() function to set the pieces of the copy to the original. Note this does not make a deep copy. Use deepCopy() for that.

Overrides:
createCopy in class IntField

createControlWidget

public java.awt.Component createControlWidget()
Implements abstract control widget creator by returning an ExclusiveIntEntry

Overrides:
createControlWidget in class IntField

addItem

public void addItem(java.lang.String name,
                    int value)
Adds an option


pythonString

public java.lang.String pythonString()
Description copied from class: ModelNode
String for represention in python. Thie is deprecated. Use valueString().

Overrides:
pythonString in class IntField