org.oddjob.designer.model
Class DateInput

java.lang.Object
  extended byjava.util.Observable
      extended byorg.oddjob.designer.model.DateInput
All Implemented Interfaces:
DesignDefinition, FormDefinition

public class DateInput
extends java.util.Observable
implements DesignDefinition, FormDefinition

A model for a visual component is a file name that can be populated via a file selection.


Constructor Summary
DateInput(java.lang.String heading, SimpleAttribute de)
           
 
Method Summary
 void accept(DesignProcessor processor)
          Visitor pattern.
 java.util.Date getDate()
          Used by the view to get the text value for the field.
 java.lang.String getTitle()
          The title will either be the title for a field or the title round a group or the title on a dialog depending on how the visual component is presented.
 boolean isPopulated()
          Used by certain summary views to indicate that there is more detail.
 void setDate(java.util.Date date)
          Used by the view to set text value of the field.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateInput

public DateInput(java.lang.String heading,
                 SimpleAttribute de)
Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: DesignDefinition
The title will either be the title for a field or the title round a group or the title on a dialog depending on how the visual component is presented.

Specified by:
getTitle in interface DesignDefinition
Returns:
The title.

setDate

public void setDate(java.util.Date date)
Used by the view to set text value of the field.

Parameters:
date - The date.

getDate

public java.util.Date getDate()
Used by the view to get the text value for the field.

Returns:
The date.

accept

public void accept(DesignProcessor processor)
Description copied from interface: DesignDefinition
Visitor pattern. Implementations will call the appropriate method on the processor passing themselves as the argument.

Specified by:
accept in interface DesignDefinition
Parameters:
processor - A design processor which will typically produce visual components for the model.

isPopulated

public boolean isPopulated()
Description copied from interface: DesignDefinition
Used by certain summary views to indicate that there is more detail.

Specified by:
isPopulated in interface DesignDefinition
Returns:
true if the model has some data, false if it doesn't.