ee.quest.widget.form
Class TextDataType

java.lang.Object
  extended by ee.quest.widget.form.TextDataType
All Implemented Interfaces:
DataType

public class TextDataType
extends Object
implements DataType

Author:
Kaido Kalda

Nested Class Summary
 
Nested classes/interfaces inherited from interface ee.quest.widget.form.DataType
DataType.ModifiedCallback
 
Constructor Summary
TextDataType()
           
TextDataType(boolean readOnly)
           
TextDataType(int minLength, int maxLength)
           
 
Method Summary
 org.eclipse.swt.widgets.Control getControl()
           
 String getError()
           
 int getMaxLength()
           
 int getMinLength()
           
 Object getValue()
           
 void initControl(org.eclipse.swt.widgets.Composite composite, DataType.ModifiedCallback callback)
           
 boolean isReadOnly()
           
 void setMaxLength(int maxLength)
           
 void setMinLength(int minLength)
           
 void setReadOnly(boolean readOnly)
           
 void setValue(Object value)
           
 boolean validateControl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextDataType

public TextDataType(int minLength,
                    int maxLength)

TextDataType

public TextDataType(boolean readOnly)

TextDataType

public TextDataType()
Method Detail

getMinLength

public int getMinLength()

setMinLength

public void setMinLength(int minLength)

getMaxLength

public int getMaxLength()

setMaxLength

public void setMaxLength(int maxLength)

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean readOnly)
Specified by:
setReadOnly in interface DataType

getControl

public org.eclipse.swt.widgets.Control getControl()
Specified by:
getControl in interface DataType

validateControl

public boolean validateControl()
Specified by:
validateControl in interface DataType

getError

public String getError()
Specified by:
getError in interface DataType

getValue

public Object getValue()
Specified by:
getValue in interface DataType

setValue

public void setValue(Object value)
Specified by:
setValue in interface DataType

initControl

public void initControl(org.eclipse.swt.widgets.Composite composite,
                        DataType.ModifiedCallback callback)
Specified by:
initControl in interface DataType


Copyright © 2013. All Rights Reserved.