Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.unibe.iam.scg.archie.ui.widgets
Class TextWidget.SmartField

java.lang.Object
  extended by ch.unibe.iam.scg.archie.ui.widgets.TextWidget.SmartField
Enclosing class:
TextWidget

protected class TextWidget.SmartField
extends java.lang.Object

A SmartField has a control (e.g. a text field) a decoration and optional a quick-fix menu. It is able to validate itself.


Field Summary
protected  org.eclipse.jface.fieldassist.IControlContentAdapter contentAdapter
           
protected  org.eclipse.jface.fieldassist.FieldDecoration fieldDecoration
           
protected  org.eclipse.swt.widgets.Menu quickFixMenu
           
 
Constructor Summary
TextWidget.SmartField()
          Constructs a SmartField with a TextContentAdapter
 
Method Summary
 java.lang.String getContents()
           
protected  java.lang.String getDecorationMessage(int type)
           
protected  java.lang.String getErrorMessage()
           
 org.eclipse.jface.fieldassist.FieldDecoration getFieldDecoration()
           
protected  java.lang.String getQuickfixMessage()
           
protected  java.lang.String getValidMessage()
           
protected  java.lang.String getWarningMessage()
           
 boolean hasQuickFix()
          No quick-fix by default.
 boolean isValid()
          Is valid if not empty by default.
 boolean isWarning()
          Is never in warning state by default.
 void setContents(java.lang.String contents)
           
 void setFieldDecoration(org.eclipse.jface.fieldassist.FieldDecoration fieldDecoration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentAdapter

protected org.eclipse.jface.fieldassist.IControlContentAdapter contentAdapter

fieldDecoration

protected org.eclipse.jface.fieldassist.FieldDecoration fieldDecoration

quickFixMenu

protected org.eclipse.swt.widgets.Menu quickFixMenu
Constructor Detail

TextWidget.SmartField

public TextWidget.SmartField()
Constructs a SmartField with a TextContentAdapter

Method Detail

isValid

public boolean isValid()
Is valid if not empty by default.

Returns:
true if valid, false else.

isWarning

public boolean isWarning()
Is never in warning state by default.

Returns:
false

hasQuickFix

public boolean hasQuickFix()
No quick-fix by default.

Returns:
false

getContents

public java.lang.String getContents()
Returns:
String Retrieves content of field.

setContents

public void setContents(java.lang.String contents)
Parameters:
contents - String Content to add to field.

getFieldDecoration

public org.eclipse.jface.fieldassist.FieldDecoration getFieldDecoration()

setFieldDecoration

public void setFieldDecoration(org.eclipse.jface.fieldassist.FieldDecoration fieldDecoration)

getDecorationMessage

protected java.lang.String getDecorationMessage(int type)
Returns:
decorator standard messages.

getErrorMessage

protected java.lang.String getErrorMessage()
Returns:
Default decoration error message.

getQuickfixMessage

protected java.lang.String getQuickfixMessage()
Returns:
Default decoration quickfix message.

getWarningMessage

protected java.lang.String getWarningMessage()
Returns:
Default decoration warning message.

getValidMessage

protected java.lang.String getValidMessage()
Returns:
Default decoration valid message.

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013