Package gaiasky.gui.components
Class BookmarksComponent
java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.BookmarksComponent
- All Implemented Interfaces:
IObserver
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected OwnScrollPane
protected com.badlogic.gdx.scenes.scene2d.ui.Tree<BookmarksComponent.TreeNode,
String> protected OwnLabel
protected OwnLabel
protected com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup
protected Scene
protected com.badlogic.gdx.scenes.scene2d.ui.TextField
protected FocusView
-
Constructor Summary
ConstructorDescriptionBookmarksComponent
(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes the component.void
initialize
(float componentWidth) Initialises the component.void
Event notification call.void
void
selectBookmark
(String bookmark, boolean fire) void
Methods inherited from class gaiasky.gui.components.GuiComponent
getActor, group
-
Field Details
-
scene
-
view
-
bookmarksTree
-
searchBox
protected com.badlogic.gdx.scenes.scene2d.ui.TextField searchBox -
bookmarksScrollPane
-
infoTable
protected com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup infoTable -
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(float componentWidth) Description copied from class:GuiComponent
Initialises the component.- Specified by:
initialize
in classGuiComponent
- Parameters:
componentWidth
- The target width of the component.
-
reloadBookmarksTree
public void reloadBookmarksTree() -
selectBookmark
-
setScene
-
notify
Description copied from interface:IObserver
Event notification call. -
dispose
public void dispose()Description copied from class:GuiComponent
Disposes the component.- Specified by:
dispose
in classGuiComponent
-