C# Класс 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.
Наследование: Window
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
initialize ( ) : void

Описание методов

Dialog() публичный Метод

public Dialog ( string title, Skin skin, string styleName = null ) : System
title string
skin Skin
styleName string
Результат System

Dialog() публичный Метод

public Dialog ( string title, WindowStyle windowStyle ) : System
title string
windowStyle WindowStyle
Результат System

addButton() публичный Метод

public addButton ( Button button ) : Button
button Button
Результат Button

addButton() публичный Метод

public addButton ( string text, TextButtonStyle buttonStyle ) : Button
text string
buttonStyle TextButtonStyle
Результат Button

addText() публичный Метод

Adds the given Label to the content table
public addText ( Label label ) : Dialog
label Label Label.
Результат Dialog

addText() публичный Метод

Adds a label to the content table
public addText ( string text ) : Dialog
text string Text.
Результат Dialog

getButtonTable() публичный Метод

public getButtonTable ( ) : Table
Результат Table

getContentTable() публичный Метод

public getContentTable ( ) : Table
Результат Table

hide() публичный Метод

Hides the dialog
public hide ( ) : void
Результат void

show() публичный Метод

{@link #pack() Packs} the dialog and adds it to the stage
public show ( Stage stage ) : Dialog
stage Stage Stage.
Результат Dialog