plugins.adufour.vars.lang
Class VarIntegerArray

java.lang.Object
  extended by plugins.adufour.vars.lang.Var<A>
      extended by plugins.adufour.vars.lang.VarGenericArray<T[]>
          extended by plugins.adufour.vars.lang.VarArray<java.lang.Integer>
              extended by plugins.adufour.vars.lang.VarIntegerArray
All Implemented Interfaces:
icy.file.xml.XMLPersistent, java.lang.Iterable<java.lang.Integer>, ArrayType, VarListener<java.lang.Integer[]>

Deprecated. For optimized performances on large arrays, consider using the VarIntegerArrayNative instead

public class VarIntegerArray
extends VarArray<java.lang.Integer>

Class defining a variable holding an array of type Integer.

Author:
Alexandre Dufour

Field Summary
 
Fields inherited from class plugins.adufour.vars.lang.Var
listeners, NO_VALUE, type, XML_KEY_ID
 
Constructor Summary
VarIntegerArray(java.lang.String name, java.lang.Integer[] defaultValues)
          Deprecated.  
 
Method Summary
 VarEditor<java.lang.Integer[]> createVarEditor()
          Deprecated. Creates a new VarEditor object that allows the user to graphically adjust the value of this variable.
 java.lang.Object parseComponent(java.lang.String s)
          Deprecated. Parse a string representing an element of the underlying array.
 
Methods inherited from class plugins.adufour.vars.lang.VarArray
add, iterator
 
Methods inherited from class plugins.adufour.vars.lang.VarGenericArray
getDimensions, getInnerType, getSeparator, getValue, isAssignableFrom, parse, size, size
 
Methods inherited from class plugins.adufour.vars.lang.Var
addListener, createVarViewer, fireVariableChanged, fireVariableChanged, getDefaultEditorModel, getDefaultValue, getIterableReferrers, getName, getReference, getReferencingPolicy, getReferrers, getType, getTypeAsString, getValue, getValueAsString, getValueAsString, isEnabled, isOptional, isReferenced, loadFromXML, prettyPrint, referenceChanged, removeListener, removeListeners, saveToXML, setDefaultEditorModel, setEnabled, setOptional, setReference, setReferencingPolicy, setValue, toString, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VarIntegerArray

public VarIntegerArray(java.lang.String name,
                       java.lang.Integer[] defaultValues)
Deprecated. 
Method Detail

createVarEditor

public VarEditor<java.lang.Integer[]> createVarEditor()
Deprecated. 
Description copied from class: Var
Creates a new VarEditor object that allows the user to graphically adjust the value of this variable. By default this editor is an empty label for generic types, but this method can be overridden to provide a custom editor.

Overrides:
createVarEditor in class Var<java.lang.Integer[]>
Returns:
the variable editor embarking the graphical component

parseComponent

public java.lang.Object parseComponent(java.lang.String s)
Deprecated. 
Description copied from class: VarGenericArray
Parse a string representing an element of the underlying array. Note that this method throws an UnsupportedOperationException by default, therefore the implementation must be provided by overriding classes

Specified by:
parseComponent in interface ArrayType
Overrides:
parseComponent in class VarGenericArray<java.lang.Integer[]>
Parameters:
s - the string to parse
Returns:
a primitive type representing the given string