public class Bookmark extends Object
Constructor and Description |
---|
Bookmark(String title,
boolean show,
AbstractAction action)
Creates a new bookmark.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildBookmark(Bookmark bookmark)
Adds a child bookmark.
|
AbstractAction |
getAction()
Returns the action performed when the bookmark is clicked.
|
List |
getChildBookmarks()
Returns a list of child bookmarks.
|
String |
getTitle()
Returns the bookmark's title.
|
boolean |
isShown()
Indicates whether the bookmark shall be shown initially.
|
void |
setAction(AbstractAction action)
Sets the action performed when the bookmark is clicked.
|
public Bookmark(String title, boolean show, AbstractAction action)
title
- the bookmark's titleshow
- true if the bookmark shall be shown, false for hiddenaction
- the action performed when the bookmark is clickedpublic String getTitle()
public boolean isShown()
public AbstractAction getAction()
public void setAction(AbstractAction action)
action
- the actionpublic void addChildBookmark(Bookmark bookmark)
bookmark
- the child bookmarkpublic List getChildBookmarks()
Copyright © 2025 Apache Software Foundation. All rights reserved.