org.sadun.swt.widgets
Class InputBox

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Scrollable
              extended byorg.eclipse.swt.widgets.Composite
                  extended byorg.sadun.swt.widgets.InputBox
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class InputBox
extends org.eclipse.swt.widgets.Composite

Author:
Cristiano Sadun

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
InputBox(org.eclipse.swt.widgets.Composite parent, java.lang.String prompt)
           
InputBox(org.eclipse.swt.widgets.Composite parent, java.lang.String prompt, java.lang.String defaultText)
           
 
Method Summary
 java.lang.String getText()
           
static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent, int x, int y, java.lang.String prompt)
           
static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent, int x, int y, java.lang.String prompt, java.lang.String defaultText)
           
static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent, java.lang.String prompt)
           
static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent, java.lang.String prompt, java.lang.String defaultText)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputBox

public InputBox(org.eclipse.swt.widgets.Composite parent,
                java.lang.String prompt,
                java.lang.String defaultText)
Parameters:
parent -

InputBox

public InputBox(org.eclipse.swt.widgets.Composite parent,
                java.lang.String prompt)
Method Detail

getText

public java.lang.String getText()

prompt

public static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent,
                                      int x,
                                      int y,
                                      java.lang.String prompt,
                                      java.lang.String defaultText)

prompt

public static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent,
                                      int x,
                                      int y,
                                      java.lang.String prompt)

prompt

public static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent,
                                      java.lang.String prompt,
                                      java.lang.String defaultText)

prompt

public static java.lang.String prompt(org.eclipse.swt.widgets.Shell parent,
                                      java.lang.String prompt)