org.oddjob.arooa.design.screem
Class MultiTypeTable

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

public class MultiTypeTable
extends Object
implements FormItem

A model for a DesignElement which can contain multiple child DesignElements of various types. This model supports both name types, as used in a Map or unnamed types as used in a List.


Nested Class Summary
static interface MultiTypeTable.KeyAccess
           
 
Constructor Summary
MultiTypeTable(DesignElementProperty designProperty)
           
MultiTypeTable(String heading, DesignElementProperty designProperty)
           
 
Method Summary
 String getChildName(int index)
           
 DesignElementProperty getDesignProperty()
           
 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.
 int getVisibleRows()
           
 boolean isKeyed()
           
 boolean isPopulated()
          Used by certain summary views to indicate that there is more detail.
 void setChildName(int index, String key)
           
 void setKeyAccess(MultiTypeTable.KeyAccess keyAccess)
           
 MultiTypeTable setTitle(String title)
          Set the title that will be displayed on the view for this form item.
 MultiTypeTable setVisibleRows(int visibleRows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTypeTable

public MultiTypeTable(DesignElementProperty designProperty)

MultiTypeTable

public MultiTypeTable(String heading,
                      DesignElementProperty designProperty)
Method Detail

setTitle

public MultiTypeTable 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 FormItem
Returns:
The title.

isKeyed

public boolean isKeyed()

setKeyAccess

public void setKeyAccess(MultiTypeTable.KeyAccess keyAccess)

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.

getDesignProperty

public DesignElementProperty getDesignProperty()

getChildName

public String getChildName(int index)

setChildName

public void setChildName(int index,
                         String key)

getVisibleRows

public int getVisibleRows()
Returns:
Returns the visibleRows.

setVisibleRows

public MultiTypeTable setVisibleRows(int visibleRows)
Parameters:
visibleRows - The visibleRows to set.