|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.base.Window
org.xith3d.ui.hud.widgets.Frame
org.xith3d.ui.hud.widgets.Dialog
public class Dialog
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Window |
|---|
Window.CloseOperation |
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| Constructor Summary | |
|---|---|
Dialog(float width,
float height)
Creates a new Dialog. |
|
Dialog(float width,
float height,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(WidgetContainer contentPane)
Creates a new Dialog. |
|
Dialog(WidgetContainer contentPane,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(WidgetContainer contentPane,
WindowHeaderWidget.Description headerDesc,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(WidgetContainer contentPane,
WindowHeaderWidget headerWidget)
Creates a new Dialog. |
|
| Method Summary | |
|---|---|
void |
addDialogListener(DialogListener l)
Adds a new DialogListener |
java.lang.Object |
getCloseCommand()
|
protected void |
notifyDialogListeners()
Use this method to notify all registered DialogListeners. |
protected void |
notifyDialogListeners(java.lang.Object command)
Use this method to notify all registered DialogListeners with a command String. |
void |
onDetachedFromHUD(HUD hud)
This event is fired, when this Widget is removed from the HUD live Widget hierarchy. |
void |
removeAllDialogListeners()
Removes all registered DialogListeners from this Dialog. |
void |
removeDialogListener(DialogListener l)
Removes a DialogListener |
void |
setCloseCommand(java.lang.Object closeCommand)
|
void |
waitForClose()
Waits in a separate Thread until this Dialog is set invisible or removed from its parent. |
| Methods inherited from class org.xith3d.ui.hud.widgets.Frame |
|---|
createContentPane, createDefaultContentPane, createHeaderWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dialog(WidgetContainer contentPane,
WindowHeaderWidget.Description headerDesc,
java.lang.String title)
contentPane - the Widget that visually defines the Window.headerDesc - the description of this Dialog's header (or null for an undecorated Dialog)title - this Dialog's title
public Dialog(WidgetContainer contentPane,
WindowHeaderWidget headerWidget)
contentPane - the Widget that visually defines the Window.headerWidget - a Widget, that defines this Window's header (or null for an undecorated Window)
public Dialog(WidgetContainer contentPane,
java.lang.String title)
contentPane - the Widget that visually defines the Window.title - this Dialog's titlepublic Dialog(WidgetContainer contentPane)
contentPane - the Widget that visually defines the Window.
public Dialog(float width,
float height,
java.lang.String title)
width - the width of the Windowheight - the height of the Windowtitle - this Dialog's title
public Dialog(float width,
float height)
width - the width of the Windowheight - the height of the Window| Method Detail |
|---|
public void setCloseCommand(java.lang.Object closeCommand)
public java.lang.Object getCloseCommand()
public void addDialogListener(DialogListener l)
l - the new DialogListenerpublic void removeDialogListener(DialogListener l)
l - the DialogListener to removepublic void removeAllDialogListeners()
DialogListeners from this Dialog.
protected void notifyDialogListeners(java.lang.Object command)
command - the fired commandprotected final void notifyDialogListeners()
public void waitForClose()
public void onDetachedFromHUD(HUD hud)
Window
onDetachedFromHUD in class Windowhud - the HUD, the Widget is removed from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||