result(Object) is called and the dialog is removed from the stage.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Table | |
| pack-priv boolean | |
| pack-priv Table | |
| pack-priv FocusListener | |
| protected InputListener | |
| pack-priv Actor | |
| pack-priv Actor | |
| private Skin | |
| pack-priv ObjectMap |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Dialog | |
| public Dialog | button(String text, Object
The object that will be passed to object)result(Object) if this button is clicked. May be null.Adds a text button to the button table. |
| public Dialog | button(String text, Object
The object that will be passed to object, TextButton.result(Object) if this button is clicked. May be null.Adds a text button to the button table. |
| public Dialog | |
| public Dialog | button(Button button, Object
The object that will be passed to object)result(Object) if this button is clicked. May be null.Adds the given button to the button table. |
| public void | |
| public Table | |
| public Table | |
| public void | hide(Action
If null, the dialog is removed immediately. Otherwise, the dialog is removed when the action completes. The
dialog will not respond to touch down events during the action. action)Removes the dialog from the stage, restoring the previous keyboard and scroll focus, and adds the specified action to the dialog. |
| public void | |
| private void | |
| public Dialog | key(final int keycode, final Object object)
If this key is pressed, |
| protected void | |
| public void | |
| protected void | setStage(Stage stage)
Overrides com. Called by the framework when this actor or any ascendant is added to a group that is in the stage. |
| public Dialog | |
| public Dialog | show(Stage stage)
Centers the dialog in the stage and calls |
| public Dialog | |
| public Dialog | |
| public Dialog |
| buttonTable | back to summary |
|---|---|
| pack-priv Table buttonTable | |
| cancelHide | back to summary |
|---|---|
| pack-priv boolean cancelHide | |
| contentTable | back to summary |
|---|---|
| pack-priv Table contentTable | |
| focusListener | back to summary |
|---|---|
| pack-priv FocusListener focusListener | |
| ignoreTouchDown | back to summary |
|---|---|
| protected InputListener ignoreTouchDown | |
| previousKeyboardFocus | back to summary |
|---|---|
| pack-priv Actor previousKeyboardFocus | |
| previousScrollFocus | back to summary |
|---|---|
| pack-priv Actor previousScrollFocus | |
| skin | back to summary |
|---|---|
| private Skin skin Hides com. | |
| values | back to summary |
|---|---|
| pack-priv ObjectMap<Actor, Object> values | |
| Dialog | back to summary |
|---|---|
| public Dialog(String title, Skin skin) | |
| Dialog | back to summary |
|---|---|
| public Dialog(String title, Skin skin, String windowStyleName) | |
| Dialog | back to summary |
|---|---|
| public Dialog(String title, Window. | |
| button | back to summary |
|---|---|
| public Dialog button(String text) Adds a text button to the button table. Null will be passed to | |
| button | back to summary |
|---|---|
| public Dialog button(String text, Object object) Adds a text button to the button table. The dialog must have been constructed with a skin to use this method.
| |
| button | back to summary |
|---|---|
| public Dialog button(String text, Object object, TextButton. Adds a text button to the button table.
| |
| button | back to summary |
|---|---|
| public Dialog button(Button button) Adds the given button to the button table. | |
| button | back to summary |
|---|---|
| public Dialog button(Button button, Object object) Adds the given button to the button table.
| |
| cancel | back to summary |
|---|---|
| public void cancel() | |
| getButtonTable | back to summary |
|---|---|
| public Table getButtonTable() | |
| getContentTable | back to summary |
|---|---|
| public Table getContentTable() | |
| hide | back to summary |
|---|---|
| public void hide(Action action) Removes the dialog from the stage, restoring the previous keyboard and scroll focus, and adds the specified action to the dialog.
| |
| hide | back to summary |
|---|---|
| public void hide() Hides the dialog. Called automatically when a button is clicked. The default implementation fades out the dialog over 400 milliseconds. | |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| key | back to summary |
|---|---|
| public Dialog key(final int keycode, final Object object) If this key is pressed,
| |
| result | back to summary |
|---|---|
| protected void result(Object object) Called when a button is clicked. The dialog will be hidden after this method returns unless
| |
| setObject | back to summary |
|---|---|
| public void setObject(Actor actor, Object object) | |
| setStage | back to summary |
|---|---|
| protected void setStage(Stage stage) Overrides com. Doc from com. Called by the framework when this actor or any ascendant is added to a group that is in the stage. | |
| show | back to summary |
|---|---|
| public Dialog show(Stage stage, Action action)
| |
| show | back to summary |
|---|---|
| public Dialog show(Stage stage) Centers the dialog in the stage and calls | |
| text | back to summary |
|---|---|
| public Dialog text(String text) Adds a label to the content table. The dialog must have been constructed with a skin to use this method. | |
| text | back to summary |
|---|---|
| public Dialog text(String text, Label. Adds a label to the content table. | |
| text | back to summary |
|---|---|
| public Dialog text(Label label) Adds the given Label to the content table | |