org.jaffa.presentation.portlet.widgets.model
Class EditBoxModel

java.lang.Object
  extended byorg.jaffa.presentation.portlet.widgets.model.WidgetModel
      extended byorg.jaffa.presentation.portlet.widgets.model.EditBoxModel

public class EditBoxModel
extends WidgetModel

Model for the EditBox widget.


Constructor Summary
EditBoxModel()
          Default constructor.
EditBoxModel(FieldMetaData meta)
          Creates a model..
EditBoxModel(Object obj)
          Creates a model initialized to the input value.
EditBoxModel(Object obj, FieldMetaData meta)
          Creates a model initialized to the input value.
 
Method Summary
 String getDataType()
          Getter for property dataType.
 int getMaxLen()
          Getter for property maxLen.
 FieldMetaData getMetaData()
          Getter for property metaData.
 int getMinLen()
          Getter for property minLen.
 String getStringCase()
          Getter for property stringCase.
 String getValue()
          Getter for property value.
 boolean isMandatory()
          Getter for property mandatory.
 boolean isModelChanged()
          See if model has changed, in the process reset the changed flag.
 void setMandatory(boolean mandatory)
          Setter for property mandatory.
 void setMaxLen(int maxLen)
          Setter for property maxLen.
 void setMinLen(int minLen)
          Setter for property minLen.
 void setStringCase(String stringCase)
          Setter for property stringCase.
 void setValue(String value)
          Setter for property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditBoxModel

public EditBoxModel()
Default constructor.


EditBoxModel

public EditBoxModel(FieldMetaData meta)
Creates a model..

Parameters:
meta - The meta object to use for getting the layout info. This may throw the UnknownDataTypeRuntimeException in case the input 'meta' object has an unsupported DataType.

EditBoxModel

public EditBoxModel(Object obj)
Creates a model initialized to the input value.

Parameters:
obj - The initial value.

EditBoxModel

public EditBoxModel(Object obj,
                    FieldMetaData meta)
Creates a model initialized to the input value.

Parameters:
obj - The initial value.
meta - The meta object to use for getting the layout info. This may throw the UnknownDataTypeRuntimeException in case the input 'meta' object has an unsupported DataType. This may throw the DataTypeMismatchRuntimeException in case there is a mismatch in the Datatypes of the inputs.
Method Detail

getValue

public String getValue()
Getter for property value.

Returns:
Value of property value.

setValue

public void setValue(String value)
Setter for property value.

Parameters:
value - New value of property value.

isModelChanged

public boolean isModelChanged()
See if model has changed, in the process reset the changed flag.

Returns:
true if the model was changed.

setStringCase

public void setStringCase(String stringCase)
Setter for property stringCase.

Parameters:
stringCase - New value of property stringCase.

getStringCase

public String getStringCase()
Getter for property stringCase.

Returns:
Value of property stringCase.

setMaxLen

public void setMaxLen(int maxLen)
Setter for property maxLen.

Parameters:
maxLen - New value of property maxLen.

getMaxLen

public int getMaxLen()
Getter for property maxLen.

Returns:
Value of property maxLen.

setMinLen

public void setMinLen(int minLen)
Setter for property minLen.

Parameters:
minLen - New value of property minLen.

getMinLen

public int getMinLen()
Getter for property minLen.

Returns:
Value of property minLen.

getDataType

public String getDataType()
Getter for property dataType.

Returns:
Value of property dataType.

getMetaData

public FieldMetaData getMetaData()
Getter for property metaData.

Returns:
Value of property metaData.

isMandatory

public boolean isMandatory()
Getter for property mandatory.

Returns:
Value of property mandatory.

setMandatory

public void setMandatory(boolean mandatory)
Setter for property mandatory.



Copyright © 2002-2004 JAFFA Project.