kiwi.ui
Interface WorkspaceEditorFactory


public abstract interface WorkspaceEditorFactory

This interface represents a factory that creates appropriate WorkspaceEditors for specified objects and classes.

Version:
1.0 (05/98)
Author:
Mark Lindner, PING Software Group

Method Summary
 WorkspaceEditor getEditorForObject(Object obj)
          General-purpose factory method for WorkspaceEditors.
 WorkspaceEditor getEditorForType(Class clazz)
          General-purpose factory method for WorkspaceEditors.
 

Method Detail

getEditorForObject

public WorkspaceEditor getEditorForObject(Object obj)
                                   throws NoAppropriateEditorException
General-purpose factory method for WorkspaceEditors. Returns a WorkspaceEditor instance that is appropriate for editing the specified object.
Parameters:
obj - The object to edit.
Throws:
NoAppropriateEditorException - If a suitable editor could not be found for the object.
See Also:
getEditorForType(java.lang.Class)

getEditorForType

public WorkspaceEditor getEditorForType(Class clazz)
                                 throws NoAppropriateEditorException
General-purpose factory method for WorkspaceEditors. Returns a WorkspaceEditor instance that is appropriate for editing the specified object.
Parameters:
obj - The object to edit.
Throws:
NoAppropriateEditorException - If a suitable editor could not be found for the class.
See Also:
getEditorForObject(java.lang.Object)