Package gaiasky.gui

Class SearchDialog

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
com.badlogic.gdx.scenes.scene2d.ui.Table
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable, com.badlogic.gdx.scenes.scene2d.utils.Layout

public class SearchDialog extends GenericDialog
Simple dialog to search for objects by name or ID.
  • Constructor Details

    • SearchDialog

      public SearchDialog(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage ui, Scene scene, boolean suggestions)
  • Method Details

    • build

      public void build()
      Description copied from class: GenericDialog
      Build the content here.
      Specified by:
      build in class GenericDialog
    • accept

      public boolean accept()
      Description copied from class: GenericDialog
      The accept function, if any.
      Specified by:
      accept in class GenericDialog
      Returns:
      True if the dialog must close after the call, false otherwise.
    • cancel

      public void cancel()
      Description copied from class: GenericDialog
      The cancel function, if any.
      Specified by:
      cancel in class GenericDialog
    • clearText

      public void clearText()
    • show

      public GenericDialog show(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.Action action)
      Description copied from class: GenericDialog
      Packs the dialog and adds it to the stage with custom action which can be null for instant show.
      Overrides:
      show in class GenericDialog
    • dispose

      public void dispose()
      Specified by:
      dispose in class GenericDialog