Class SesameResultWindow

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, IScreen

public class SesameResultWindow extends GenericDialog
Displays the result of a Sesame name resolver query: the resolved name, the object type, the sky coordinates, and the list of aliases of the object.
  • Constructor Details

    • SesameResultWindow

      public SesameResultWindow(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, String query, SesameResolver.Result result)
  • Method Details

    • setRunning

      public void setRunning()
      Marks the window as running, i.e. the query has been launched and no result is available yet.
    • setResult

      public void setResult(SesameResolver.Result result, String error)
      Sets the result of the query, and updates the contents of the window.
      Parameters:
      result - The result, which may be null if the object was not found.
      error - The error message, which may be null if the query succeeded.
    • build

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

      public void touch()
      Description copied from class: GenericDialog
      Override this method to update the contents of this dialog before displaying it.
      Overrides:
      touch in class GenericDialog
    • setKeyboardFocus

      public void setKeyboardFocus()
      Description copied from class: GenericDialog
      Sets the keyboard focus, override in case you want to set the focus to a specific item.
      Overrides:
      setKeyboardFocus in class GenericDialog
    • accept

      protected 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

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

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