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

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

public class DateTimeModel
extends WidgetModel

Model for the DateTime widget.


Constructor Summary
DateTimeModel()
          Default constructor.
DateTimeModel(DateOnly value)
          Creates a model initialized to the input value.
DateTimeModel(DateOnly value, DateOnlyFieldMetaData meta)
          Creates a model initialized to the input value.
DateTimeModel(DateTime value)
          Creates a model initialized to the input value.
DateTimeModel(DateTime value, DateTimeFieldMetaData meta)
          Creates a model initialized to the input value.
 
Method Summary
 DateOnly getDateOnlyValue()
          Returns the value as a DateOnly object.
 DateTimeFieldMetaData getMeta()
          Getter for property meta.
 DateTime 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 setMeta(DateTimeFieldMetaData meta)
          Setter for property meta.
 void setValue(DateTime 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

DateTimeModel

public DateTimeModel()
Default constructor.


DateTimeModel

public DateTimeModel(DateOnly value)
Creates a model initialized to the input value.

Parameters:
value - The initial value.

DateTimeModel

public DateTimeModel(DateOnly value,
                     DateOnlyFieldMetaData meta)
Creates a model initialized to the input value.

Parameters:
value - The initial value.
meta - The meta object to use for getting the layout info.

DateTimeModel

public DateTimeModel(DateTime value)
Creates a model initialized to the input value.

Parameters:
value - The initial value.

DateTimeModel

public DateTimeModel(DateTime value,
                     DateTimeFieldMetaData meta)
Creates a model initialized to the input value.

Parameters:
value - The initial value.
meta - The meta object to use for getting the layout info.
Method Detail

getValue

public DateTime getValue()
Getter for property value.

Returns:
Value of property value.

setValue

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

Parameters:
value - New value of property value.

getMeta

public DateTimeFieldMetaData getMeta()
Getter for property meta.

Returns:
Value of property meta.

setMeta

public void setMeta(DateTimeFieldMetaData meta)
Setter for property meta.

Parameters:
meta - New value of property meta.

getDateOnlyValue

public DateOnly getDateOnlyValue()
Returns the value as a DateOnly object.

Returns:
the value as a DateOnly object.

isModelChanged

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

Returns:
true if the model was changed.

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.