org.oddjob.arooa.design.view
Class TextInputView

java.lang.Object
  extended by org.oddjob.arooa.design.view.TextInputView
All Implemented Interfaces:
SwingFormView, SwingItemView

public class TextInputView
extends Object
implements SwingItemView, SwingFormView

A view for form and a form item that is a text area.


Constructor Summary
TextInputView(TextInput textInputModel)
          Constructor.
 
Method Summary
 Component cell()
          The component should be rendered for use in a table cell.
 Component dialog()
          The component should be rendered for use in a model dialog.
 int inline(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

TextInputView

public TextInputView(TextInput textInputModel)
Constructor.

Parameters:
textInputModel - The model.
Method Detail

dialog

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

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

cell

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

Specified by:
cell in interface SwingFormView
Returns:
The component.

inline

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

Specified by:
inline in interface SwingItemView
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: SwingItemView
Used when a component is part of a selection.

Specified by:
setEnabled in interface SwingItemView