org.sadun.swt.widgets
Class LabelledText

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.LabelledText
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

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

A text with a label attached

Author:
Cristiano Sadun

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
LabelledText(org.eclipse.swt.widgets.Composite parent, java.lang.String labelText)
           
LabelledText(org.eclipse.swt.widgets.Composite parent, java.lang.String labelText, int style)
           
 
Method Summary
 java.lang.String getLabelText()
           
 java.lang.String getText()
           
 org.eclipse.swt.widgets.Text getTextWidget()
           
 void setLabelText(java.lang.String text)
           
 void setText(java.lang.String s)
           
 
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

LabelledText

public LabelledText(org.eclipse.swt.widgets.Composite parent,
                    java.lang.String labelText)

LabelledText

public LabelledText(org.eclipse.swt.widgets.Composite parent,
                    java.lang.String labelText,
                    int style)
Parameters:
parent -
style -
Method Detail

getTextWidget

public org.eclipse.swt.widgets.Text getTextWidget()

getText

public java.lang.String getText()

setText

public void setText(java.lang.String s)

getLabelText

public java.lang.String getLabelText()

setLabelText

public void setLabelText(java.lang.String text)