Class Bookmark
- java.lang.Object
-
- com.inductiveautomation.snap.project.Bookmark
-
public class Bookmark extends java.lang.ObjectA class to represent a bookmark.
-
-
Constructor Summary
Constructors Constructor Description Bookmark(java.lang.String aName, java.lang.String aURL)Creates a new bookmark.
-
Method Summary
All 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
-
getName
public java.lang.String getName()
Returns the name.
-
setName
public void setName(java.lang.String aName)
Sets the name.
-
getURL
public WebURL getURL()
Returns the URL.
-
setURL
public void setURL(WebURL aURL)
Sets the URL.
-
getURLString
public java.lang.String getURLString()
Returns the URL string.
-
setURLString
public void setURLString(java.lang.String aURLS)
Sets the URL string.
-
isFolder
public boolean isFolder()
Returns whether this bookmark is a folder of bookmarks.
-
setFolder
public void setFolder(boolean aFlag)
Sets whether this bookmark is a folder of bookmarks.
-
getParent
public Bookmark getParent()
Returns the bookmark parent.
-
getChildCount
public int getChildCount()
Returns the number of child bookmarks.
-
getChild
public Bookmark getChild(int anIndex)
Returns the child bookmark at given index.
-
getChildren
public java.util.List<Bookmark> getChildren()
Returns the children.
-
setChildren
public void setChildren(java.util.List<Bookmark> theBMs)
Sets the children.
-
addChild
public void addChild(Bookmark aBM)
Adds a child bookmark.
-
addChild
public void addChild(Bookmark aBM, int anIndex)
Adds a child bookmark.
-
removeChild
public java.lang.Object removeChild(int anIndex)
Removes the child bookmark at given index.
-
removeChild
public int removeChild(Bookmark aBM)
Removes the child bookmark at given index.
-
getChild
public Bookmark getChild(java.lang.String aName, boolean goDeep)
Returns the child with given name.
-
toString
public java.lang.String toString()
Standard toString implementation.- Overrides:
toStringin classjava.lang.Object
-
-