org.oddjob.designer.view
Interface ViewProducer

All Known Implementing Classes:
DateInputView, ElementFieldView, FieldGroupView, FieldSelectionView, FileSelectionView, MultiTypeTableView, MultiTypeTreeView, SelectionListView, TextInputView, TypeSelectionView

public interface ViewProducer

Define something cabable of producing a a GUI Component in various situations.


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.
 

Method Detail

dialog

public java.awt.Component dialog()
The component should be rendered for use in a model dialog. With a border and sized correctly.

Returns:
The component.

group

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

Returns:
The compoent.

detailEdit

public java.awt.Component detailEdit()
The component should be rendered for use as a detail edit. Used for Field Element View.

Returns:
The compoent.

cell

public java.awt.Component cell()
The component should be rendered for use in a table cell.

Returns:
The compoent.

inline

public 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.

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)
Used when a component is part of a selection.

Parameters:
enabled -