Class Bookmark
- java.lang.Object
- 
- com.inductiveautomation.snap.project.Bookmark
 
- 
 public class Bookmark extends java.lang.ObjectA class to represent a bookmark.
- 
- 
Constructor SummaryConstructors Constructor Description Bookmark(java.lang.String aName, java.lang.String aURL)Creates a new bookmark.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(Bookmark aBM)Adds a child bookmark.voidaddChild(Bookmark aBM, int anIndex)Adds a child bookmark.BookmarkgetChild(int anIndex)Returns the child bookmark at given index.BookmarkgetChild(java.lang.String aName, boolean goDeep)Returns the child with given name.intgetChildCount()Returns the number of child bookmarks.java.util.List<Bookmark>getChildren()Returns the children.java.lang.StringgetName()Returns the name.BookmarkgetParent()Returns the bookmark parent.WebURLgetURL()Returns the URL.java.lang.StringgetURLString()Returns the URL string.booleanisFolder()Returns whether this bookmark is a folder of bookmarks.java.lang.ObjectremoveChild(int anIndex)Removes the child bookmark at given index.intremoveChild(Bookmark aBM)Removes the child bookmark at given index.voidsetChildren(java.util.List<Bookmark> theBMs)Sets the children.voidsetFolder(boolean aFlag)Sets whether this bookmark is a folder of bookmarks.voidsetName(java.lang.String aName)Sets the name.voidsetURL(WebURL aURL)Sets the URL.voidsetURLString(java.lang.String aURLS)Sets the URL string.java.lang.StringtoString()Standard toString implementation.
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Returns the name.
 - 
setNamepublic void setName(java.lang.String aName) Sets the name.
 - 
getURLpublic WebURL getURL() Returns the URL.
 - 
setURLpublic void setURL(WebURL aURL) Sets the URL.
 - 
getURLStringpublic java.lang.String getURLString() Returns the URL string.
 - 
setURLStringpublic void setURLString(java.lang.String aURLS) Sets the URL string.
 - 
isFolderpublic boolean isFolder() Returns whether this bookmark is a folder of bookmarks.
 - 
setFolderpublic void setFolder(boolean aFlag) Sets whether this bookmark is a folder of bookmarks.
 - 
getParentpublic Bookmark getParent() Returns the bookmark parent.
 - 
getChildCountpublic int getChildCount() Returns the number of child bookmarks.
 - 
getChildpublic Bookmark getChild(int anIndex) Returns the child bookmark at given index.
 - 
getChildrenpublic java.util.List<Bookmark> getChildren() Returns the children.
 - 
setChildrenpublic void setChildren(java.util.List<Bookmark> theBMs) Sets the children.
 - 
addChildpublic void addChild(Bookmark aBM) Adds a child bookmark.
 - 
addChildpublic void addChild(Bookmark aBM, int anIndex) Adds a child bookmark.
 - 
removeChildpublic java.lang.Object removeChild(int anIndex) Removes the child bookmark at given index.
 - 
removeChildpublic int removeChild(Bookmark aBM) Removes the child bookmark at given index.
 - 
getChildpublic Bookmark getChild(java.lang.String aName, boolean goDeep) Returns the child with given name.
 - 
toStringpublic java.lang.String toString() Standard toString implementation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-