Class BookmarksComponent

java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.BookmarksComponent
All Implemented Interfaces:
IObserver

public class BookmarksComponent extends GuiComponent implements IObserver
  • Field Details

    • scene

      protected Scene scene
    • view

      protected FocusView view
    • bookmarksTree

      protected com.badlogic.gdx.scenes.scene2d.ui.Tree<BookmarksComponent.TreeNode,String> bookmarksTree
    • bookmarksScrollPane

      protected OwnScrollPane bookmarksScrollPane
    • infoTable

      protected com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup infoTable
    • infoMessage1

      protected OwnLabel infoMessage1
    • infoMessage2

      protected OwnLabel 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 class GuiComponent
      Parameters:
      componentWidth - The target width of the component.
    • reloadBookmarksTree

      public void reloadBookmarksTree()
    • selectBookmark

      public void selectBookmark(String bookmark, boolean fire)
    • setScene

      public void setScene(Scene scene)
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.
    • dispose

      public void dispose()
      Description copied from class: GuiComponent
      Disposes the component.
      Specified by:
      dispose in class GuiComponent