org.oddjob.designer.view
Class DateInputView

java.lang.Object
  extended byorg.oddjob.designer.view.DateInputView
All Implemented Interfaces:
ViewProducer

public class DateInputView
extends java.lang.Object
implements ViewProducer

Produces views for DateInput.


Constructor Summary
DateInputView(DateInput di)
          Constructor.
 
Method Summary
 java.awt.Component cell()
          The component should be rendered for use in a table cell.
 java.awt.Component detailEdit()
          The component should be rendered for use as a detail edit.
 java.awt.Component dialog()
          The component should be rendered for use in a model dialog.
 java.awt.Component group()
          The component should be rendered as a group for use on the design panel, with a border.
 int inline(java.awt.Container container, int row, int column, boolean selectionInGroup)
          The class should add it's component to the container which has a GridBagLayout.
 void setEnabled(boolean enabled)
          Used when a component is part of a selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateInputView

public DateInputView(DateInput di)
Constructor.

Parameters:
di - The DateInput model that this is a view on.
Method Detail

dialog

public java.awt.Component dialog()
Description copied from interface: ViewProducer
The component should be rendered for use in a model dialog. With a border and sized correctly.

Specified by:
dialog in interface ViewProducer
Returns:
The component.

group

public java.awt.Component group()
Description copied from interface: ViewProducer
The component should be rendered as a group for use on the design panel, with a border.

Specified by:
group in interface ViewProducer
Returns:
The compoent.

detailEdit

public java.awt.Component detailEdit()
Description copied from interface: ViewProducer
The component should be rendered for use as a detail edit. Used for Field Element View.

Specified by:
detailEdit in interface ViewProducer
Returns:
The compoent.

cell

public java.awt.Component cell()
Description copied from interface: ViewProducer
The component should be rendered for use in a table cell.

Specified by:
cell in interface ViewProducer
Returns:
The compoent.

inline

public int inline(java.awt.Container container,
                  int row,
                  int column,
                  boolean selectionInGroup)
Description copied from interface: ViewProducer
The class should add it's component to the container which has a GridBagLayout.

Specified by:
inline in interface ViewProducer
Parameters:
container - The container to add the component to.
row - The row to add the component at.
Returns:
The row the next component should be added at.

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: ViewProducer
Used when a component is part of a selection.

Specified by:
setEnabled in interface ViewProducer
Parameters:
enabled -