Package gaiasky.gui

Class DateDialog

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 DateDialog extends GenericDialog
  • Constructor Details

    • DateDialog

      public DateDialog(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
  • Method Details

    • build

      protected void build()
      Description copied from class: GenericDialog
      Build the content here.
      Specified by:
      build 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
    • checkField

      public boolean checkField(com.badlogic.gdx.scenes.scene2d.ui.TextField f, int min, int max)
      Returns true if all is good
      Parameters:
      f - The text field
      min - The minimum value
      max - The maximum value
      Returns:
      The boolean indicating whether the value in this field is between min and max
    • updateTime

      public void updateTime(Instant instant, ZoneId zid)
      Updates the time
    • dispose

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