|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.helpgui.page.Page
public class Page
Class where the date are showed
| Field Summary | |
|---|---|
protected boolean |
home
If this page is home |
protected PageList |
pages
subpages list |
protected Page |
parentPage
Page this page is a child of |
protected PageRoot |
rootPage
project this page belong to |
protected java.lang.Object |
userObject
User object |
| Constructor Summary | |
|---|---|
Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
boolean home,
Page parent)
Constructor |
|
Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
boolean home,
PageRoot root)
Constructor |
|
Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
java.lang.String key,
boolean home,
Page parent)
Constructor |
|
Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
java.lang.String key,
boolean home,
PageRoot root)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addSubPage(Page page)
Adds a sub page to this page. |
java.util.Enumeration |
children()
Returns the children of the receiver as an Enumeration. |
boolean |
equals(Page page)
Return true is the page is the same. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
javax.swing.tree.TreeNode |
getChildAt(int iChildIndex)
Returns the child TreeNode at index childIndex. |
int |
getChildCount()
Returns the number of children TreeNodes the receiver contains. |
boolean |
getHome()
Convert the Page into String. |
java.lang.String |
getImage()
Return the icon name for this page. |
int |
getIndex(javax.swing.tree.TreeNode node)
Returns the index of node in the receivers children. |
java.lang.String |
getKey()
Returns the key associated with this page, or null if none exists |
javax.swing.tree.TreeNode |
getParent()
Returns the parent TreeNode of the receiver. |
javax.swing.tree.TreePath |
getPath()
Return the path of the Page on the Tree |
java.lang.String |
getTarget()
Return the target of the page (the HTML URI). |
java.lang.String |
getText()
Return the Title of the Page. |
void |
insert(javax.swing.tree.MutableTreeNode child,
int index)
Adds child to the receiver at index. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
void |
remove(int index)
Removes the child at index from the receiver. |
void |
remove(javax.swing.tree.MutableTreeNode node)
Removes node from the receiver. |
void |
removeFromParent()
Removes the receiver from its parent. |
void |
setParent(javax.swing.tree.MutableTreeNode newParent)
Sets the parent of the receiver to newParent. |
void |
setUserObject(java.lang.Object object)
Resets the user object of the receiver to object. |
java.lang.String |
toString()
Convert the Page into String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PageList pages
protected PageRoot rootPage
protected Page parentPage
protected java.lang.Object userObject
protected boolean home
| Constructor Detail |
|---|
public Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
boolean home,
Page parent)
public Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
boolean home,
PageRoot root)
public Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
java.lang.String key,
boolean home,
Page parent)
public Page(java.lang.String text,
java.lang.String image,
java.lang.String target,
java.lang.String key,
boolean home,
PageRoot root)
| Method Detail |
|---|
public boolean equals(Page page)
public java.lang.String getText()
public java.lang.String getImage()
public java.lang.String getTarget()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getKey()
public boolean getHome()
public void insert(javax.swing.tree.MutableTreeNode child,
int index)
insert in interface javax.swing.tree.MutableTreeNodepublic void remove(int index)
remove in interface javax.swing.tree.MutableTreeNodepublic void remove(javax.swing.tree.MutableTreeNode node)
remove in interface javax.swing.tree.MutableTreeNodepublic void removeFromParent()
removeFromParent in interface javax.swing.tree.MutableTreeNodepublic void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent in interface javax.swing.tree.MutableTreeNodepublic void setUserObject(java.lang.Object object)
setUserObject in interface javax.swing.tree.MutableTreeNodepublic javax.swing.tree.TreeNode getChildAt(int iChildIndex)
getChildAt in interface javax.swing.tree.TreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreePath getPath()
protected void addSubPage(Page page)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||