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