|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
anecho.gui.EasyIconTreeNode
anecho.JamochaMUD.World
public class World
This class is used to store information about Worlds in JamochaMUD. It is a extends a node so that it can easily be added and manipulated in a JTree.
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
World()
The constructor for the World class. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAddress()
|
javax.swing.Icon |
getIcon()
Returns the icon assigned to this node. |
int |
getLoginStyle()
|
java.lang.String |
getNotes()
|
int |
getPort()
|
long |
getWorldID()
Returns an ID unique to this world. |
java.lang.String |
getWorldName()
|
boolean |
isAutoLogin()
|
boolean |
isSSL()
|
void |
setAddress(java.lang.String addy)
|
void |
setLoginStyle(int style)
|
void |
setNotes(java.lang.String notes)
|
void |
setPort(int port)
|
void |
setSSL(boolean state)
|
void |
setWorldID(long newID)
This method should only be used if setting up a previously existing world. |
void |
setWorldName(java.lang.String newName)
|
java.lang.String |
toString()
Return a string listing the name, address, and port |
void |
useAutoLogin(boolean state)
|
| Methods inherited from class anecho.gui.EasyIconTreeNode |
|---|
setIcon |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public World()
| Method Detail |
|---|
public void setWorldName(java.lang.String newName)
newName - public java.lang.String getWorldName()
public void setAddress(java.lang.String addy)
addy - public java.lang.String getAddress()
public void setPort(int port)
port - public int getPort()
public long getWorldID()
public void setWorldID(long newID)
newID - public void setSSL(boolean state)
state - public boolean isSSL()
public void useAutoLogin(boolean state)
state - public boolean isAutoLogin()
public void setLoginStyle(int style)
style - public int getLoginStyle()
public void setNotes(java.lang.String notes)
notes - public java.lang.String getNotes()
public javax.swing.Icon getIcon()
EasyIconTreeNode
getIcon in class EasyIconTreeNodepublic java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||