net.refractions.udig.project.ui.summary
Class SummaryData

java.lang.Object
  extended by net.refractions.udig.project.ui.summary.SummaryData

public class SummaryData
extends java.lang.Object

Simple data object that has title and information fields. If the modifier is set then the data can be edited. Th cell editor is always a TextCellEditor so the modifier should aways return a string. The validator by default always accept the result. For custom validation cell validator can be set.

Since:
1.1.0
Author:
Jesse

Constructor Summary
SummaryData(java.lang.String title, java.lang.Object info)
          new instance.
 
Method Summary
 SummaryData[] getChildren()
          gets the items to display as children of this object
 java.lang.String getInfo()
           
 ICellModifier getModifier()
           
 SummaryData getParent()
           
 java.lang.String getTitle()
           
 ICellEditorValidator getValidator()
           
 void setChildren(SummaryData[] children)
           
 void setInfo(java.lang.String info)
           
 void setModifier(ICellModifier modifier)
          Sets the cell modifier used for this data item.
 void setParent(SummaryData parent)
           
 void setTitle(java.lang.String title)
           
 void setValidator(ICellEditorValidator validator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummaryData

public SummaryData(java.lang.String title,
                   java.lang.Object info)
new instance. data has no children and no parent and is not editable

Parameters:
title - title/property name of the data item
info - the information to display. toString is called on the item to display it.
Method Detail

getInfo

public java.lang.String getInfo()

setInfo

public void setInfo(java.lang.String info)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getChildren

public SummaryData[] getChildren()
gets the items to display as children of this object

Returns:
the items to display as children of this object

setChildren

public void setChildren(SummaryData[] children)

getModifier

public ICellModifier getModifier()
Returns:
the cell modifier that can edit this data.

setModifier

public void setModifier(ICellModifier modifier)
Sets the cell modifier used for this data item. The property can be ignored and the element will always be the SummaryData object. The newValue passed to the modify methods will always be a String

Parameters:
modifier -

getValidator

public ICellEditorValidator getValidator()

setValidator

public void setValidator(ICellEditorValidator validator)

getParent

public SummaryData getParent()

setParent

public void setParent(SummaryData parent)