org.oddjob.arooa.design.screem
Class TextInput

java.lang.Object
  extended by org.oddjob.arooa.design.screem.TextInput
All Implemented Interfaces:
Form, FormItem

public final class TextInput
extends Object
implements FormItem, Form

A model for a visual component which is intended to be rendered as a large text area.

The text is retrieved and set via a text exchange object.


Nested Class Summary
static interface TextInput.TextSource
           
 
Constructor Summary
TextInput(String heading, TextInput.TextSource textSource)
           
 
Method Summary
 String getText()
           
 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 setText(String text)
           
 FormItem setTitle(String title)
          Set the title that will be displayed on the view for this form item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextInput

public TextInput(String heading,
                 TextInput.TextSource textSource)
Method Detail

setTitle

public FormItem setTitle(String title)
Description copied from interface: FormItem
Set the title that will be displayed on the view for this form item. This should really be set on the DesignProperty that creates this model.

Specified by:
setTitle in interface FormItem
Parameters:
title - The String title.
Returns:
this, for method chaining.

getTitle

public String getTitle()
Description copied from interface: FormItem
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 Form
Specified by:
getTitle in interface FormItem
Returns:
The title.

setText

public void setText(String text)

getText

public String getText()

isPopulated

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

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