|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tensegrity.palowebviewer.modules.ui.client.AbstractXObjectEditor
com.tensegrity.palowebviewer.modules.ui.client.XCubeEditor
public class XCubeEditor
Model of the cube editor. Used to load and maintain state of displayed XCube) or {@link XView}.
Field Summary | |
---|---|
protected IEditorListener |
cubeEditorListener
|
Fields inherited from class com.tensegrity.palowebviewer.modules.ui.client.AbstractXObjectEditor |
---|
saveAction, saveAsAction |
Constructor Summary | |
---|---|
XCubeEditor(IEngine engine,
PaloTreeModel treeModel,
XCube cube)
|
|
XCubeEditor(IEngine engine,
PaloTreeModel treeModel,
XCube cube,
XView view)
|
Method Summary | |
---|---|
void |
dispose()
Dispose editor (Unsubscribe all listeners) |
protected void |
doSave(IEditorSaveCallback callback)
Call to this method is redirected from AbstractXObjectEditor.saveAction . |
protected void |
doSaveAs(IEditorSaveCallback callback)
Call to this method is redirected from AbstractXObjectEditor.saveAsAction . |
void |
doSaveModified(IEditorSaveCallback callback)
|
protected void |
executeCallback()
|
XCube |
getCube()
Return XCube of the editor. |
ICubeTableModel |
getCubeTableModel()
|
int |
getShowLevels()
|
java.lang.String |
getTitle()
Returns title for the editor. |
XView |
getView()
|
XObject |
getXObject()
Returns XObject for the editor. |
protected boolean |
hasChanged(XObject[] path,
XObject[] oldChildren,
int type)
|
boolean |
isInitialized()
|
boolean |
isLoaded()
|
protected boolean |
isObjectPart(XObject object)
|
void |
load()
|
protected boolean |
loadCube()
|
protected boolean |
loadDBDimensions()
|
protected boolean |
loadDimensions()
|
protected boolean |
loadView()
|
protected void |
onSourceChanged()
|
protected void |
reinitCubeTableModel()
|
void |
setLoaderCallback(ILoaderCallback callback)
|
void |
setModified(boolean value)
Marks the editor as modified or unmodified. |
void |
setShowLevels(int value)
|
java.lang.String |
toString()
|
Methods inherited from class com.tensegrity.palowebviewer.modules.ui.client.AbstractXObjectEditor |
---|
addEditorListener, close, fireModified, fireObjectRenamed, fireSourceChanged, fireUnmodified, getEngine, getPaloServerModel, getSaveAction, getSaveAsAction, isModified, removeEditorListener, setObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected IEditorListener cubeEditorListener
Constructor Detail |
---|
public XCubeEditor(IEngine engine, PaloTreeModel treeModel, XCube cube)
public XCubeEditor(IEngine engine, PaloTreeModel treeModel, XCube cube, XView view)
Method Detail |
---|
public XCube getCube()
public void setLoaderCallback(ILoaderCallback callback)
public void setShowLevels(int value)
public boolean isLoaded()
public void load()
public XView getView()
public void setModified(boolean value)
AbstractXObjectEditor
setModified
in class AbstractXObjectEditor
value
- - state to set;
If modified
is true then state changed to modified and AbstractXObjectEditor.saveAction
is enabled.
Else state changed to unmodified and AbstractXObjectEditor.saveAction
is disabled.
Listeners are notified about the event.public int getShowLevels()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTitle()
public boolean isInitialized()
isInitialized
in class AbstractXObjectEditor
protected void onSourceChanged()
onSourceChanged
in class AbstractXObjectEditor
protected boolean hasChanged(XObject[] path, XObject[] oldChildren, int type)
hasChanged
in class AbstractXObjectEditor
protected void executeCallback()
protected void reinitCubeTableModel()
protected boolean loadCube()
protected boolean loadView()
protected boolean loadDimensions()
protected boolean loadDBDimensions()
protected void doSave(IEditorSaveCallback callback)
AbstractXObjectEditor
AbstractXObjectEditor.saveAction
.
doSave
in class AbstractXObjectEditor
protected void doSaveAs(IEditorSaveCallback callback)
AbstractXObjectEditor
AbstractXObjectEditor.saveAsAction
.
doSaveAs
in class AbstractXObjectEditor
public final ICubeTableModel getCubeTableModel()
public XObject getXObject()
AbstractXObjectEditor
getXObject
in interface IXObjectEditor
getXObject
in class AbstractXObjectEditor
public void dispose()
IXObjectEditor
dispose
in interface IXObjectEditor
dispose
in class AbstractXObjectEditor
protected boolean isObjectPart(XObject object)
isObjectPart
in class AbstractXObjectEditor
public void doSaveModified(IEditorSaveCallback callback)
doSaveModified
in class AbstractXObjectEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |