Class Bookmark

java.lang.Object
com.inductiveautomation.snap.project.Bookmark

public class Bookmark extends Object
A class to represent a bookmark.
  • Constructor Details

    • Bookmark

      public Bookmark(String aName, String aURL)
      Creates a new bookmark.
  • Method Details

    • getName

      public String getName()
      Returns the name.
    • setName

      public void setName(String aName)
      Sets the name.
    • getURL

      public WebURL getURL()
      Returns the URL.
    • setURL

      public void setURL(WebURL aURL)
      Sets the URL.
    • getURLString

      public String getURLString()
      Returns the URL string.
    • setURLString

      public void setURLString(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 List<Bookmark> getChildren()
      Returns the children.
    • setChildren

      public void setChildren(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 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(String aName, boolean goDeep)
      Returns the child with given name.
    • toString

      public String toString()
      Standard toString implementation.
      Overrides:
      toString in class Object