|
||||||||||
| 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 editorModeleditorModel - editor model to use when elements belonging to
reports generated by a template named templateName are edited| Method Detail |
public ElementEditor getEditor(Element element)
ReportEditorModelnull,
if the element cannot be edited.
getEditor in interface ReportEditorModelelement - report element to be edited
element, or nullpublic void reportChanged(ReportEvent event)
ReportEditorModel
reportChanged in interface ReportEditorModelevent - the event describing how the report has changed
public 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 editorModeleditorModel - 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 | |||||||||