Package gaiasky.interafce.components
Class BookmarksComponent
java.lang.Object
gaiasky.interafce.components.GuiComponent
gaiasky.interafce.components.BookmarksComponent
- All Implemented Interfaces:
IObserver
public class BookmarksComponent extends GuiComponent implements IObserver
-
Field Summary
Fields Modifier and Type Field Description protected OwnScrollPane
bookmarksScrollPane
protected com.badlogic.gdx.scenes.scene2d.ui.Tree<gaiasky.interafce.components.BookmarksComponent.TreeNode,java.lang.String>
bookmarksTree
protected com.badlogic.gdx.scenes.scene2d.ui.Cell
infoCell1
protected com.badlogic.gdx.scenes.scene2d.ui.Cell
infoCell2
protected OwnLabel
infoMessage1
protected OwnLabel
infoMessage2
protected com.badlogic.gdx.scenes.scene2d.ui.Table
infoTable
protected com.badlogic.gdx.scenes.scene2d.ui.TextField
searchBox
protected ISceneGraph
sg
-
Constructor Summary
Constructors Constructor Description BookmarksComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
Method Summary
Modifier and Type Method Description void
dispose()
Disposes the componentvoid
initialize()
Initialises the componentvoid
notify(Events event, java.lang.Object... data)
void
reloadBookmarksTree()
void
selectBookmark(java.lang.String bookmark, boolean fire)
void
setSceneGraph(ISceneGraph sg)
Methods inherited from class gaiasky.interafce.components.GuiComponent
getActor, group
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
sg
-
bookmarksTree
protected com.badlogic.gdx.scenes.scene2d.ui.Tree<gaiasky.interafce.components.BookmarksComponent.TreeNode,java.lang.String> bookmarksTree -
searchBox
protected com.badlogic.gdx.scenes.scene2d.ui.TextField searchBox -
bookmarksScrollPane
-
infoTable
protected com.badlogic.gdx.scenes.scene2d.ui.Table infoTable -
infoCell1
protected com.badlogic.gdx.scenes.scene2d.ui.Cell infoCell1 -
infoCell2
protected com.badlogic.gdx.scenes.scene2d.ui.Cell infoCell2 -
infoMessage1
-
infoMessage2
-
-
Constructor Details
-
BookmarksComponent
public BookmarksComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
-
Method Details
-
initialize
public void initialize()Description copied from class:GuiComponent
Initialises the component- Specified by:
initialize
in classGuiComponent
-
reloadBookmarksTree
public void reloadBookmarksTree() -
selectBookmark
public void selectBookmark(java.lang.String bookmark, boolean fire) -
setSceneGraph
-
notify
-
dispose
public void dispose()Description copied from class:GuiComponent
Disposes the component- Specified by:
dispose
in classGuiComponent
-