|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sos.reports.TemplateReportEditorModel
A report editor model that bases the editor model on the name of the report template.
DefaultReportEditorModel
,
TierReportEditorModel
Constructor Summary | |
TemplateReportEditorModel()
Creates an instance of TemplateReportEditorModel . |
|
TemplateReportEditorModel(java.lang.String templateName,
ReportEditorModel editorModel)
Creates an instance of TemplateReportEditorModel . |
Method Summary | |
ElementEditor |
getEditor(Element element)
Returns the editor that can edit the specified element, or null ,
if the element cannot be edited. |
void |
reportChanged(ReportEvent event)
Updates itself (if necessary) as a result of a report modification. |
void |
setTemplateEditorModel(java.lang.String templateName,
ReportEditorModel editorModel)
Associates the specified editor model with the specified template name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateReportEditorModel()
TemplateReportEditorModel
.
public TemplateReportEditorModel(java.lang.String templateName, ReportEditorModel editorModel)
TemplateReportEditorModel
.
with an initial mapping of editorModel
to templateName
.
templateName
- name of template for which to associate editorModel
editorModel
- editor model to use when elements belonging to
reports generated by a template named templateName
are editedMethod 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 void reportChanged(ReportEvent event)
ReportEditorModel
reportChanged
in interface ReportEditorModel
event
- the event describing how the report has changedpublic void setTemplateEditorModel(java.lang.String templateName, ReportEditorModel editorModel)
When the client tries to edit an element generated by a report template
named templateName, this editor model will use editorModel
.
A null
editorModel
unassociates any editor model from the template name.
templateName
- name of template for which to associate editorModel
editorModel
- editor model to use when elements belonging to
reports generated by a template named templateName
are edited
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |