|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.Index
This is the base class for all ID classes. All ID classes are used to access objects in the database.
DBList
,
Serialized FormField Summary | |
private int |
value
The value of the ID. |
Constructor Summary | |
protected |
Index(int in)
Used to create the Index object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
This method compares two Index objects. |
int |
get()
Returns the ID of this object. |
DisplayNode |
getDisplayNodeChildren(CivID AID)
Returns a DisplayNode that represents the children of this object. |
DisplayNodeColor |
getDisplayNodeColor(CivID AID)
Returns the color surrounding the image in the tree. |
java.lang.String |
getDisplayNodeImage()
Returns the Image used in the display tree |
abstract java.lang.String |
getDisplayNodeMessage()
Returns the message displayed in the tree for this Index. |
abstract DBItem |
getItem()
Returns the object from the database that this index is pointing. |
int |
hashCode()
Use the index to hash these objects. |
(package private) void |
increment()
Increments the ID of this object. |
protected void |
set(int in)
Sets the ID of this object. |
java.lang.String |
toString()
The String equivalent is just the ID number. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private int value
Constructor Detail |
protected Index(int in)
in
- ID for this objectMethod Detail |
public int get()
protected void set(int in)
in
- The IDvoid increment()
public abstract DBItem getItem()
public DisplayNode getDisplayNodeChildren(CivID AID)
AID
- The "viewer" of this tree.GUIDisplayTreeJFC
public abstract java.lang.String getDisplayNodeMessage()
GUIDisplayTreeJFC
public java.lang.String getDisplayNodeImage()
GUIDisplayTreeJFC
public DisplayNodeColor getDisplayNodeColor(CivID AID)
AID
- The viewer of this tree.GUIDisplayTreeJFC
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to compare.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |