|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sos.reports.AbstractReportEditorModel | +--sos.reports.DefaultReportEditorModel
A report editor model in which editors are associated with classes. When asked to edit an element, this class uses the class of the element's object to determine the editor. If the object is null, it uses the element's prototype object to determine the edior.
Constructor Summary | |
DefaultReportEditorModel()
Creates an instance of DefaultReportEditorModel . |
Method Summary | |
ElementEditor |
getClassEditor(java.lang.Class theClass)
Returns the editor associated with the specified class, or null ,
if there is no editor. |
ElementEditor |
getEditor(Element element)
Returns the editor that can edit the specified element, or null ,
if the element cannot be edited. |
void |
setClassEditor(java.lang.Class editableClass,
ElementEditor editor)
Sets the editor for the specified class. |
Methods inherited from class sos.reports.AbstractReportEditorModel |
reportChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sos.reports.ReportEditorModel |
reportChanged |
Constructor Detail |
public DefaultReportEditorModel()
DefaultReportEditorModel
.
Method Detail |
public ElementEditor getClassEditor(java.lang.Class theClass)
null
,
if there is no editor.
theClass
- the class for which the editor is requested
theClass
, or null
, if none
java.lang.NullPointerException
- if theClass
is null
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 setClassEditor(java.lang.Class editableClass, ElementEditor editor)
editor
is null
,
it removes the editor for the specified class.
editableClass
- class for which the editor should be usededitor
- editor to edit instances of editableClass
java.lang.NullPointerException
- if editableClass
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |