|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.WidgetBase
org.xith3d.ui.hud.base.RectangularWidget
org.xith3d.ui.hud.base.RectangularContentPaneWrapper
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 interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
Dialog(ContentPaneWrapper contentPaneWrapper)
Creates a new undecorated Dialog. |
|
Dialog(ContentPaneWrapper contentPaneWrapper,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(ContentPaneWrapper contentPaneWrapper,
java.lang.String titleBackground,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(ContentPaneWrapper contentPaneWrapper,
Texture titleBackground,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(ContentPaneWrapper contentPaneWrapper,
WindowHeaderWidget.Description headerDesc,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(ContentPaneWrapper contentPaneWrapper,
WindowHeaderWidget headerWidget)
Creates a new Dialog. |
|
Dialog(float width,
float height)
Creates a new undecorated Dialog with the given width and height. |
|
Dialog(float width,
float height,
java.lang.String title)
Creates a new Dialog with the given width and height. |
|
Dialog(float width,
float height,
java.lang.String titleBackground,
java.lang.String title)
Creates a new Dialog with the given width and height. |
|
Dialog(float width,
float height,
Texture titleBackground,
java.lang.String title)
Creates a new Dialog with the given width and height. |
|
Dialog(float width,
float height,
WindowHeaderWidget headerWidget)
Creates a new Dialog. |
|
Dialog(org.openmali.types.twodee.Sized2fRO size)
Creates a new undecorated Dialog with the given size. |
|
Dialog(org.openmali.types.twodee.Sized2fRO size,
java.lang.String title)
Creates a new Dialog with the given size. |
|
Dialog(org.openmali.types.twodee.Sized2fRO size,
java.lang.String titleBackground,
java.lang.String title)
Creates a new Dialog with the given size. |
|
Dialog(org.openmali.types.twodee.Sized2fRO size,
Texture titleBackground,
java.lang.String title)
Creates a new Dialog with the given size. |
|
Dialog(org.openmali.types.twodee.Sized2fRO size,
WindowHeaderWidget headerWidget)
Creates a new Dialog. |
|
Dialog(WidgetContainer contentPane)
Creates a new undecorated Dialog. |
|
Dialog(WidgetContainer contentPane,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(WidgetContainer contentPane,
java.lang.String titleBackground,
java.lang.String title)
Creates a new Dialog. |
|
Dialog(WidgetContainer contentPane,
Texture titleBackground,
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 |
void |
detach(boolean delayed)
Removes the Widget from its Container. |
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 |
onDetached()
This method is called right before the Widget has been detached from its WidgetContainer. |
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 |
|---|
createHeaderWidget, getBorder, getHeaderDescWithTexture, getHeaderDescWithTexture, setBorder, setBorder |
| Methods inherited from class org.xith3d.ui.hud.base.RectangularContentPaneWrapper |
|---|
pick |
| Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget |
|---|
getPickHeight, getPickSGZPosition, getPickWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmali.types.twodee.Sized2f |
|---|
setHeight, setWidth |
| 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 Dialog)
public Dialog(WidgetContainer contentPane,
Texture titleBackground,
java.lang.String title)
contentPane - the Widget that visually defines the Window.titleBackground - the background Texture for the header bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(WidgetContainer contentPane,
java.lang.String titleBackground,
java.lang.String title)
contentPane - the Widget that visually defines the Window.titleBackground - the background Texture for the header bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(WidgetContainer contentPane,
java.lang.String title)
contentPane - the Widget that visually defines the Window.title - this Dialog's title (or null for an undecorated Dialog)public Dialog(WidgetContainer contentPane)
contentPane - the Widget that visually defines the Window.
public Dialog(ContentPaneWrapper contentPaneWrapper,
WindowHeaderWidget.Description headerDesc,
java.lang.String title)
contentPaneWrapper - 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 (unappreciated, if headerDesc is null)
public Dialog(ContentPaneWrapper contentPaneWrapper,
WindowHeaderWidget headerWidget)
contentPaneWrapper - the Widget that visually defines the Window.headerWidget - a Widget, that defines this Window's header (or null for an undecorated Dialog)
public Dialog(ContentPaneWrapper contentPaneWrapper,
Texture titleBackground,
java.lang.String title)
contentPaneWrapper - the Widget that visually defines the Window.titleBackground - the background Texture for the header bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(ContentPaneWrapper contentPaneWrapper,
java.lang.String titleBackground,
java.lang.String title)
contentPaneWrapper - the Widget that visually defines the Window.titleBackground - the background Texture for the header bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(ContentPaneWrapper contentPaneWrapper,
java.lang.String title)
contentPaneWrapper - the Widget that visually defines the Window.title - this Dialog's title (or null for an undecorated Dialog)public Dialog(ContentPaneWrapper contentPaneWrapper)
contentPaneWrapper - the Widget that visually defines the Window.
public Dialog(float width,
float height,
Texture titleBackground,
java.lang.String title)
width - the width of the Dialogheight - the height of the DialogtitleBackground - the background Texture for the header bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(float width,
float height,
java.lang.String titleBackground,
java.lang.String title)
width - the width of the Dialogheight - the height of the DialogtitleBackground - the background Texture for the header bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(float width,
float height,
java.lang.String title)
width - the width of the Dialogheight - the height of the Dialogtitle - this Frame's title (or null for an undecorated Dialog)
public Dialog(float width,
float height,
WindowHeaderWidget headerWidget)
width - the width of the Dialogheight - the height of the DialogheaderWidget - a Widget, that defines this Window's header (or null for an undecorated Window)
public Dialog(float width,
float height)
width - the width of the Dialogheight - the height of the Dialog
public Dialog(org.openmali.types.twodee.Sized2fRO size,
Texture titleBackground,
java.lang.String title)
size - the size of the DialogtitleBackground - the background Texture for the header bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(org.openmali.types.twodee.Sized2fRO size,
java.lang.String titleBackground,
java.lang.String title)
size - the size of the DialogtitleBackground - the background Texture for the title bar's backgroundtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(org.openmali.types.twodee.Sized2fRO size,
java.lang.String title)
size - the size of the Dialogtitle - this Dialog's title (or null for an undecorated Dialog)
public Dialog(org.openmali.types.twodee.Sized2fRO size,
WindowHeaderWidget headerWidget)
size - the size of the DialogheaderWidget - a Widget, that defines this Window's header (or null for an undecorated Window)public Dialog(org.openmali.types.twodee.Sized2fRO size)
size - the size of the Dialog| 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 void notifyDialogListeners()
public void waitForClose()
public void detach(boolean delayed)
detach in interface Widgetdetach in class Windowdelayed - if true, the widget is detached with the next frame, but not instantly.public void onDetached()
Window
onDetached in interface WidgetonDetached in class Window
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||