org.xith3d.ui.hud.dialogs
Class InputBox

java.lang.Object
  extended by org.xith3d.ui.hud.base.Widget
      extended by org.xith3d.ui.hud.base.Window
          extended by org.xith3d.ui.hud.widgets.Frame
              extended by org.xith3d.ui.hud.widgets.Dialog
                  extended by org.xith3d.ui.hud.dialogs.InputBox
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.types.twodee.Positioned2f, org.openmali.types.twodee.Positioned2fRO, org.openmali.types.twodee.Sized2f, org.openmali.types.twodee.Sized2fRO

public class InputBox
extends Dialog

This is a simple Dialog querying for a String to be inputed.


Nested Class Summary
static interface InputBox.Factory
           
static interface InputBox.InputBoxListener
           
 
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
 
Method Summary
 Button getCancelButton()
           
static InputBox.Factory getFactory()
           
 TextWidget getMessageWidget()
           
 Button getOKButton()
           
 java.lang.String getText()
           
 TextField getTextField()
           
 boolean isCancelled()
           
 void setCancelButton(Button button)
           
static void setFactory(InputBox.Factory factory)
           
 void setMessage(java.lang.String message)
           
 void setMessageWidget(TextWidget widget)
           
 void setOKButton(Button button)
           
 void setText(java.lang.String text)
           
 void setTextField(TextField textField)
           
static InputBox show(java.lang.String initialValue, HUD hud)
           
static InputBox show(java.lang.String initialValue, HUD hud, DialogListener listener)
           
static InputBox show(java.lang.String initialValue, HUD hud, InputBox.InputBoxListener listener)
           
static InputBox show(java.lang.String message, java.lang.String initialValue, HUD hud)
           
static InputBox show(java.lang.String message, java.lang.String initialValue, HUD hud, DialogListener listener)
           
static InputBox show(java.lang.String message, java.lang.String initialValue, HUD hud, InputBox.InputBoxListener listener)
           
static InputBox show(java.lang.String title, java.lang.String message, java.lang.String initialValue, HUD hud, DialogListener listener)
           
static InputBox show(java.lang.String title, java.lang.String message, java.lang.String initialValue, HUD hud, InputBox.InputBoxListener listener)
           
 
Methods inherited from class org.xith3d.ui.hud.widgets.Dialog
addDialogListener, getCloseCommand, notifyDialogListeners, notifyDialogListeners, onDetachedFromHUD, removeAllDialogListeners, removeDialogListener, setCloseCommand, waitForClose
 
Methods inherited from class org.xith3d.ui.hud.widgets.Frame
createContentPane, createDefaultContentPane, createHeaderWidget
 
Methods inherited from class org.xith3d.ui.hud.base.Window
addWindowListener, checkDragStartCondition, detach, drawAndUpdateWidget, drawBorder, drawWidget, getContentHeightPX, getContentPane, getContentWidthPX, getDefaultCloseOperation, getHeaderHeight, getHeaderWidget, getResX, getResY, getTitle, init, isCloseButtonVisible, isDecorated, isPaneDraggingEnabled, onCloseButtonClicked, onFocusLost, onKeyPressed, onKeyReleased, onKeyTyped, onMouseButtonPressed, onMouseButtonReleased, onMouseExited, onMouseMoved, onMouseWheelMoved, onSizeChanged, onVisibilityChanged, pick, removeWindowListener, setCloseButtonVisible, setContentSize, setDefaultCloseOperation, setHostTextureDirty, setPaneDraggingEnabled, setTextureDirty, setTitle, startDragging, toString
 
Methods inherited from class org.xith3d.ui.hud.base.Widget
addContainerListener, addControllerListener, addFocusListener, addInputListener, addKeyboardListener, addLocationListener, addMouseListener, addSizeListener, addVisibilityListener, bindToGlobalMouseMovement, blocksFocusMoveDeviceComponent, calculateTransformHeight_Pixels2HUD, calculateTransformWidth_Pixels2HUD, compareAbsZIndex, createShape, drawBackground, drawWidgetAfterWidgetAssembler, drawWidgetContents, getAbsoluteLocationOnHUD_, getAspect, getAssembly, getBorder, getContainer, getContentAspect, getContentHeight, getContentLeftPX, getContentOffset, getContentTopPX, getContentWidth, getContextMenu, getCursor, getEqualHeight_, getEqualWidth_, getForcedRedrawFrequency, getHeight, getHeightPX, getHUD, getLeft, getLevel, getLocation, getLocation, getLocationHUD2Pixels_, getLocationHUD2SG_, getLocationPixels2HUD_, getLocationSG2HUD_, getMaxRedrawFrequency, getMinHeight, getMinWidth, getName, getParentWindow, getPickHeight, getPickWidth, getRelLocationHUD2Pixels_, getRootHostWidget, getShape, getSize, getSizeHUD2Pixels_, getSizeHUD2SG_, getSizeOfPixels_, getSizePixels2HUD_, getSizeSG2HUD_, getToolTip, getTop, getTransparency, getUserObject, getWidgetAssembler, getWidth, getWidthPX, getZIndex, hasDropShadow, hasFocus, hasFocus, hasToolTip, initSize, isAHostedWidgetDirty, isClickable, isDraggable, isFocussable, isHeavyWeight, isHovered, isInitialized, isInitializing, isPickable, isThisWidgetDirty, isVisible, notifyOnDragStopped, onAttachedToContainer, onAttachedToHUD, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetachedFromContainer, onFocusGained, onInputStateChanged, onLocationChanged, onMouseEntered, onMouseStopped, pickConditionsMatch, removeContainerListener, removeControllerListener, removeFocusListener, removeInputListener, removeKeyboardListener, removeLocationListener, removeMouseListener, removeSizeListener, removeVisibilityListener, requestFocus, resetWidgetDirty, setBorder, setBorder, setClickable, setContentClipRect, setContextMenu, setCursor, setDraggable, setFocussable, setForcedRedrawFrequency, setHasDropShadow, setHeight, setHostedWidgetDirty, setHostTextureDirty, setHostWidget, setLocation, setLocation, setLocation, setMaxRedrawFrequency, setName, setPickable, setSize, setSize, setSize, setSize, setTextureDirty, setToolTip, setTransparency, setTransparency, setUserObject, setVisible, setWidgetDirty, setWidth, setZIndex, update, updateAbsZIndex, updateSizeFactors, updateTranslation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setFactory

public static void setFactory(InputBox.Factory factory)

getFactory

public static final InputBox.Factory getFactory()

setMessageWidget

public void setMessageWidget(TextWidget widget)

getMessageWidget

public final TextWidget getMessageWidget()

setTextField

public void setTextField(TextField textField)

getTextField

public final TextField getTextField()

setOKButton

public void setOKButton(Button button)

getOKButton

public final Button getOKButton()

setCancelButton

public void setCancelButton(Button button)

getCancelButton

public final Button getCancelButton()

setMessage

public void setMessage(java.lang.String message)

setText

public void setText(java.lang.String text)

getText

public final java.lang.String getText()

isCancelled

public final boolean isCancelled()

show

public static final InputBox show(java.lang.String title,
                                  java.lang.String message,
                                  java.lang.String initialValue,
                                  HUD hud,
                                  DialogListener listener)

show

public static final InputBox show(java.lang.String message,
                                  java.lang.String initialValue,
                                  HUD hud,
                                  DialogListener listener)

show

public static final InputBox show(java.lang.String initialValue,
                                  HUD hud,
                                  DialogListener listener)

show

public static final InputBox show(java.lang.String title,
                                  java.lang.String message,
                                  java.lang.String initialValue,
                                  HUD hud,
                                  InputBox.InputBoxListener listener)

show

public static final InputBox show(java.lang.String message,
                                  java.lang.String initialValue,
                                  HUD hud,
                                  InputBox.InputBoxListener listener)

show

public static final InputBox show(java.lang.String initialValue,
                                  HUD hud,
                                  InputBox.InputBoxListener listener)

show

public static final InputBox show(java.lang.String message,
                                  java.lang.String initialValue,
                                  HUD hud)

show

public static final InputBox show(java.lang.String initialValue,
                                  HUD hud)