|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sos.reports.TierReportEditorModel
A report editor model that uses editors that are registered with the row or column in which the element resides.
DefaultReportEditorModel
,
TemplateReportEditorModel
Constructor Summary | |
TierReportEditorModel(int tierType)
Creates an instance of TierReportEditorModel for the specified
tier type with headers and footers not editable. |
|
TierReportEditorModel(int tierType,
boolean headerEditable,
boolean footerEditable)
Creates an instance of TierReportEditorModel for the specified
tier type where the editability of headers and footers are specified. |
Method Summary | |
ElementEditor |
getEditor(Element element)
Returns the editor that can edit the specified element, or null ,
if the element cannot be edited. |
ElementEditor |
getTierEditor(int tierIndex)
Returns the editor associated with the specified tier, or null ,
if there is no editor. |
boolean |
isFooterEditable()
Returns true elements residing in a footer tier are editable. |
boolean |
isHeaderEditable()
Returns true elements residing in a header tier are editable. |
void |
reportChanged(ReportEvent event)
Updates itself (if necessary) as a result of a report modification. |
void |
setFooterEditable(boolean editable)
Specifies if elements residing in footer tiers are editable. |
void |
setHeaderEditable(boolean editable)
Specifies if elements residing in header tiers are editable. |
void |
setTierEditor(int tierIndex,
ElementEditor editor)
Sets the editor to use for elements residing in the specified tier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TierReportEditorModel(int tierType)
TierReportEditorModel
for the specified
tier type with headers and footers not editable.
tierType
- the type of tiers whose cell contents are editable
java.lang.IllegalArgumentException
- if tierType
is not
TableElement.ROW
or TableElement.COLUMN
TierReportEditorModel(int,boolean,boolean)
public TierReportEditorModel(int tierType, boolean headerEditable, boolean footerEditable)
TierReportEditorModel
for the specified
tier type where the editability of headers and footers are specified.
tierType
- the type of tiers whose cell contents are editableheaderEditable
- if header cells are editablefooterEditable
- if footer cells are editable
java.lang.IllegalArgumentException
- if tierType
is not
TableElement.ROW
or TableElement.COLUMN
Method Detail |
public ElementEditor getEditor(Element element)
ReportEditorModel
null
,
if the element cannot be edited.
getEditor
in interface ReportEditorModel
element
- report element to be edited
element
, or null
public ElementEditor getTierEditor(int tierIndex)
null
,
if there is no editor.
tierIndex
- index of row or column for which to fetch the registered editor
java.lang.IllegalArgumentException
- if tierIndex < 0
setTierEditor(int, sos.reports.ElementEditor)
public boolean isHeaderEditable()
true
elements residing in a header tier are editable.
true
if elements in a header tier are editablesetHeaderEditable(boolean)
public boolean isFooterEditable()
true
elements residing in a footer tier are editable.
true
if elements in a footer tier are editablesetFooterEditable(boolean)
public void reportChanged(ReportEvent event)
ReportEditorModel
reportChanged
in interface ReportEditorModel
event
- the event describing how the report has changedpublic void setFooterEditable(boolean editable)
editable
- true if elements in footer tiers can be editedisFooterEditable()
public void setHeaderEditable(boolean editable)
editable
- true if elements in header tiers can be editedisHeaderEditable()
public void setTierEditor(int tierIndex, ElementEditor editor)
editor
is null
, the editor is unset
for the specified tier.
tierIndex
- index of row or column for which to set the editoreditor
- editor to use for elements residing in tier tierIndex
java.lang.IllegalArgumentException
- if tierIndex < 0
getTierEditor(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |