C# Class Nez.UI.Dialog

Displays a dialog, which is a modal window containing a content table with a button table underneath it. Methods are provided to add a label to the content table and buttons to the button table, but any widgets can be added. When a button is clicked, {@link #result(Object)} is called and the dialog is removed from the stage.
Inheritance: Window
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Méthode Description
Dialog ( string title, Skin skin, string styleName = null ) : System
Dialog ( string title, WindowStyle windowStyle ) : System
addButton ( Button button ) : Button
addButton ( string text, TextButtonStyle buttonStyle ) : Button
addText ( Label label ) : Dialog

Adds the given Label to the content table

addText ( string text ) : Dialog

Adds a label to the content table

getButtonTable ( ) : Table
getContentTable ( ) : Table
hide ( ) : void

Hides the dialog

show ( Stage stage ) : Dialog

{@link #pack() Packs} the dialog and adds it to the stage

Private Methods

Méthode Description
initialize ( ) : void

Method Details

Dialog() public méthode

public Dialog ( string title, Skin skin, string styleName = null ) : System
title string
skin Skin
styleName string
Résultat System

Dialog() public méthode

public Dialog ( string title, WindowStyle windowStyle ) : System
title string
windowStyle WindowStyle
Résultat System

addButton() public méthode

public addButton ( Button button ) : Button
button Button
Résultat Button

addButton() public méthode

public addButton ( string text, TextButtonStyle buttonStyle ) : Button
text string
buttonStyle TextButtonStyle
Résultat Button

addText() public méthode

Adds the given Label to the content table
public addText ( Label label ) : Dialog
label Label Label.
Résultat Dialog

addText() public méthode

Adds a label to the content table
public addText ( string text ) : Dialog
text string Text.
Résultat Dialog

getButtonTable() public méthode

public getButtonTable ( ) : Table
Résultat Table

getContentTable() public méthode

public getContentTable ( ) : Table
Résultat Table

hide() public méthode

Hides the dialog
public hide ( ) : void
Résultat void

show() public méthode

{@link #pack() Packs} the dialog and adds it to the stage
public show ( Stage stage ) : Dialog
stage Stage Stage.
Résultat Dialog