com.tensegrity.palowebviewer.modules.ui.client
Class XEditorFactory

java.lang.Object
  extended by com.tensegrity.palowebviewer.modules.ui.client.XEditorFactory
All Implemented Interfaces:
IXEditorFactory

public class XEditorFactory
extends java.lang.Object
implements IXEditorFactory


Constructor Summary
XEditorFactory(IEngine engine, PaloTreeModel treeModel)
           
 
Method Summary
 IXObjectEditor getEditor(XObject object)
          Create editor for given XObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XEditorFactory

public XEditorFactory(IEngine engine,
                      PaloTreeModel treeModel)
Method Detail

getEditor

public IXObjectEditor getEditor(XObject object)
                         throws java.lang.IllegalArgumentException
Description copied from interface: IXEditorFactory
Create editor for given XObject.

Specified by:
getEditor in interface IXEditorFactory
Parameters:
object - object for which to create editor.
Returns:
editor for the object.
Throws:
java.lang.IllegalArgumentException - if object is null or it's class is different from XCube