| 
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
ch.unibe.iam.scg.archie.ui.widgets.AbstractWidget
ch.unibe.iam.scg.archie.ui.widgets.TextWidget
public class TextWidget
 Serves as a base for implementing field composites with a text control. They
 have an inner SmartField. The smartField is an inner class,
 which is able to validate itself, decorate itself, provide content assistance
 and a quick-fix.
 
| Nested Class Summary | |
|---|---|
protected  class | 
TextWidget.SmartField
A SmartField has a control (e.g. a text field) a decoration and optional a quick-fix menu.  | 
| Field Summary | |
|---|---|
protected  org.eclipse.jface.fieldassist.ControlDecoration | 
controlDecoration
 | 
protected static int | 
DECORATION_HORIZONTAL_MARGIN
 | 
protected  TextWidget.SmartField | 
smartField
 | 
| Fields inherited from class ch.unibe.iam.scg.archie.ui.widgets.AbstractWidget | 
|---|
control, label, layout, regexValidation, STD_COLUMN_HORIZONTAL_SPACING | 
| Fields inherited from class org.eclipse.swt.widgets.Control | 
|---|
view | 
| Constructor Summary | |
|---|---|
TextWidget(org.eclipse.swt.widgets.Composite parent,
           int style,
           java.lang.String labelText,
           RegexValidation regex)
 | 
|
| Method Summary | |
|---|---|
 void | 
addListener(int eventType,
            org.eclipse.swt.widgets.Listener listener)
 | 
protected  void | 
createSmartField()
Default implementation, subclasses may override.  | 
 java.lang.Object | 
getValue()
Returns a widget's value.  | 
protected  void | 
handleModify(TextWidget.SmartField smartField)
Every time the field gets modified this gets run.  | 
protected  void | 
hideError(TextWidget.SmartField smartField)
 | 
protected  void | 
hideQuickfix(TextWidget.SmartField smartField)
 | 
protected  void | 
hideValid(TextWidget.SmartField smartField)
 | 
protected  void | 
hideWarning(TextWidget.SmartField smartField)
 | 
 boolean | 
isValid()
Returns true if the value in a widget's control field is valid.  | 
 void | 
setDescription(java.lang.String description)
Describes this FieldComposites (e.g. for a ToolTip)  | 
 void | 
setValue(java.lang.Object value)
Sets the text (contents) of the containing smart field.  | 
protected  void | 
showError(TextWidget.SmartField smartField)
 | 
protected  void | 
showQuickfix(TextWidget.SmartField smartField)
 | 
protected  void | 
showValid(TextWidget.SmartField smartField)
 | 
protected  void | 
showWarning(TextWidget.SmartField smartField)
 | 
| Methods inherited from class ch.unibe.iam.scg.archie.ui.widgets.AbstractWidget | 
|---|
createLayout, getLabel, hasRegexValidation, setEnabled | 
| Methods inherited from class org.eclipse.swt.widgets.Composite | 
|---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList | 
| Methods inherited from class org.eclipse.swt.widgets.Scrollable | 
|---|
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar | 
| Methods inherited from class org.eclipse.swt.widgets.Control | 
|---|
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update | 
| Methods inherited from class org.eclipse.swt.widgets.Widget | 
|---|
addDisposeListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected static final int DECORATION_HORIZONTAL_MARGIN
protected org.eclipse.jface.fieldassist.ControlDecoration controlDecoration
protected TextWidget.SmartField smartField
| Constructor Detail | 
|---|
public TextWidget(org.eclipse.swt.widgets.Composite parent,
                  int style,
                  java.lang.String labelText,
                  RegexValidation regex)
parent - Compositestyle - IntegerlabelText - Stringregex - String Optional RegexValidation,
 can be null if not desired.| Method Detail | 
|---|
protected void createSmartField()
public java.lang.Object getValue()
AbstractWidgettrue, combo
 string etc.).
getValue in class AbstractWidgetAbstractSmartFieldpublic void setValue(java.lang.Object value)
setValue in class AbstractWidgetvalue - public boolean isValid()
AbstractWidget
isValid in class AbstractWidgettrue if the contents of this objects smartField are
         valid, false else.
public void addListener(int eventType,
                        org.eclipse.swt.widgets.Listener listener)
addListener in class org.eclipse.swt.widgets.WidgetWidget.addListener(int, org.eclipse.swt.widgets.Listener)protected void handleModify(TextWidget.SmartField smartField)
smartField - protected void showError(TextWidget.SmartField smartField)
smartField - protected void hideError(TextWidget.SmartField smartField)
smartField - protected void showQuickfix(TextWidget.SmartField smartField)
smartField - protected void hideQuickfix(TextWidget.SmartField smartField)
smartField - protected void showWarning(TextWidget.SmartField smartField)
smartField - protected void hideWarning(TextWidget.SmartField smartField)
smartField - protected void showValid(TextWidget.SmartField smartField)
smartField - protected void hideValid(TextWidget.SmartField smartField)
smartField - public void setDescription(java.lang.String description)
AbstractWidget
setDescription in class AbstractWidgetAbstractWidget.setDescription(java.lang.String)
  | 
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||