cct.amber
Class SanderVariable

java.lang.Object
  extended by cct.amber.SanderVariable

public class SanderVariable
extends java.lang.Object

Title: Molecular Structure Viewer/Editor

Description:

Copyright: Copyright (c) 2005

Company: ANU


Field Summary
(package private)  boolean currentValueIsNotDefault
           
(package private)  boolean defaultIsSet
           
(package private)  java.lang.String Description
           
(package private)  boolean enumerated
           
(package private)  java.lang.String newValue
           
(package private)  java.lang.Object nondefaultParsedValue
           
(package private)  java.lang.String nondefaultValue
           
(package private)  int selectedValue
           
(package private)  java.util.ArrayList Values
           
(package private)  int varType
           
 
Constructor Summary
SanderVariable(java.lang.String descr, boolean isEnum)
           
 
Method Summary
 void addValue(SanderVariableValue value)
           
 java.lang.String getDescription()
           
 int getNumberOfValues()
           
 java.lang.Object getParsedValue()
           
 int getSelectedIndex()
           
 int getType()
           
 java.lang.String getValue()
           
 SanderVariableValue getValue(int n)
           
 boolean isDefaultValue()
           
 boolean isEnumerated()
           
 void setDescription(java.lang.String newDescription)
           
 void setNewValue(java.lang.String new_value)
           
 void setSelectedIndex(int index)
           
 java.lang.String setValue(java.lang.String new_value)
           
(package private)  void setVarType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enumerated

boolean enumerated

varType

int varType

Description

java.lang.String Description

Values

java.util.ArrayList Values

selectedValue

int selectedValue

newValue

java.lang.String newValue

defaultIsSet

boolean defaultIsSet

currentValueIsNotDefault

boolean currentValueIsNotDefault

nondefaultParsedValue

java.lang.Object nondefaultParsedValue

nondefaultValue

java.lang.String nondefaultValue
Constructor Detail

SanderVariable

SanderVariable(java.lang.String descr,
               boolean isEnum)
Method Detail

getNumberOfValues

public int getNumberOfValues()

addValue

public void addValue(SanderVariableValue value)

getSelectedIndex

public int getSelectedIndex()

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String newDescription)

getValue

public java.lang.String getValue()
Returns:
String

getParsedValue

public java.lang.Object getParsedValue()
Returns:
Object

getValue

public SanderVariableValue getValue(int n)

isEnumerated

public boolean isEnumerated()

isDefaultValue

public boolean isDefaultValue()

setNewValue

public void setNewValue(java.lang.String new_value)

setSelectedIndex

public void setSelectedIndex(int index)
Parameters:
index - int

setVarType

void setVarType(int type)

setValue

public java.lang.String setValue(java.lang.String new_value)
Parameters:
value - String
Returns:
String

getType

public int getType()