Class Option
java.lang.Object
|
+--Option
- All Implemented Interfaces:
- java.io.Serializable
- public class Option
- extends java.lang.Object
- implements java.io.Serializable
Class to store information for an option.
Like "Lines", "VDW" for a representation, or "Name", "Index" for color
representation.
- See Also:
OptionsHolder
, Serialized Form
Constructor Summary |
Option(java.lang.String name,
int id)
Constructor |
Method Summary |
int |
getId()
Gets the id number |
java.lang.String |
getName()
Gets the name |
void |
setId(int id)
Sets the id number |
void |
setName(java.lang.String name)
Sets the name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Option
public Option(java.lang.String name,
int id)
- Constructor
- Parameters:
name
- the name for the Optionid
- the id number for the Option
getId
public int getId()
- Gets the id number
- Returns:
- the id number for this Option
getName
public java.lang.String getName()
- Gets the name
- Returns:
- the name for this Option
setId
public void setId(int id)
- Sets the id number
- Parameters:
id
- the new id for this Option
setName
public void setName(java.lang.String name)
- Sets the name
- Parameters:
name
- the new name for this Option