public class EditNode extends PaletteNode
EditContext. An EditNode is essentially a copy of a PaletteNode, initially with the same properties as the PaletteNode from which it was
generated. However unlike a PaletteNode, an EditNode always has a liveObject - the object created from the PaletteNode.defaults or other properties defined on a paletteNode.
Like a Palette, an EditContext may use properties such as PaletteNode.icon or PaletteNode.title to display EditNodes.
An EditContext generally offers some means of editing EditNodes and, as edits are made, updates defaults with the information required to re-create the component.
idfactoryCreated, factoryProperties, readOnly| Constructor and Description |
|---|
EditNode() |
EditNode(com.google.gwt.core.client.JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
Canvas |
getCanvasDefaults()
Properties required to recreate the current
liveObject. |
Canvas |
getCanvasLiveObject()
Live version of the object created from the
defaults. |
DrawItem |
getDrawItemDefaults()
Properties required to recreate the current
liveObject. |
DrawItem |
getDrawItemLiveObject()
Live version of the object created from the
defaults. |
DrawPane |
getDrawPaneDefaults()
Properties required to recreate the current
liveObject. |
DrawPane |
getDrawPaneLiveObject()
Live version of the object created from the
defaults. |
EditProxy |
getEditProxyProperties()
Properties to be applied to the
liveObject.editProxy when created. |
FormItem |
getFormItemDefaults()
Properties required to recreate the current
liveObject. |
FormItem |
getFormItemLiveObject()
Live version of the object created from the
defaults. |
java.lang.Object |
getLiveObject()
Live version of the object created from the
defaults. |
static EditNode |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getType()
String of the
canvasLiveObject, for example, "ListGrid". |
java.lang.Boolean |
getUseEditMask()
When
true an EditProxy.editMask will be
auto-generated and placed over the component to allow selection, positioning and resizing. |
void |
setCanvasDefaults(Canvas defaults)
Properties required to recreate the current
liveObject. |
void |
setCanvasLiveObject(Canvas liveObject)
Live version of the object created from the
defaults. |
void |
setDrawItemDefaults(DrawItem defaults)
Properties required to recreate the current
liveObject. |
void |
setDrawItemLiveObject(DrawItem liveObject)
Live version of the object created from the
defaults. |
void |
setDrawPaneDefaults(DrawPane defaults)
Properties required to recreate the current
liveObject. |
void |
setDrawPaneLiveObject(DrawPane liveObject)
Live version of the object created from the
defaults. |
void |
setEditProxyProperties(EditProxy editProxyProperties)
Properties to be applied to the
liveObject.editProxy when created. |
void |
setFormItemDefaults(FormItem defaults)
Properties required to recreate the current
liveObject. |
void |
setFormItemLiveObject(FormItem liveObject)
Live version of the object created from the
defaults. |
void |
setType(java.lang.String type)
String of the
canvasLiveObject, for example, "ListGrid". |
void |
setUseEditMask(java.lang.Boolean useEditMask)
When
true an EditProxy.editMask will be
auto-generated and placed over the component to allow selection, positioning and resizing. |
getEditNodeProperties, getIcon, getIdPrefix, getTitle, setEditNodeProperties, setIcon, setIdPrefix, setTitlegetCanAcceptDrop, getCanDrag, getEnabled, getName, getShowDropIcon, getShowOpenIcon, setCanAcceptDrop, setCanDrag, setChildren, setEnabled, setID, setIsFolder, setName, setParentID, setShowDropIcon, setShowOpenIconget_baseStyle, get_canEdit, get_canRemove, getBackgroundComponent, getCanExpand, getCanSelect, getCustomStyle, getDetailDS, getIncludeInSummary, getIsGridSummary, getIsGroupSummary, getIsSeparator, getLinkText, getSingleCellValue, set_baseStyle, set_canEdit, set_canRemove, setBackgroundComponent, setCanExpand, setCanSelect, setCustomStyle, setDetailDS, setIncludeInSummary, setIsGridSummary, setIsGroupSummary, setIsSeparator, setLinkText, setSingleCellValueconvertToRecordArray, copyAttributes, copyAttributesInto, getAttributeAsRecordArray, getAttributeAsRecordList, isARecord, toMapgetRef, getRef, internalSetIDapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getReadOnly, isFactoryCreated, logConfiguration, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated, setReadOnlypublic EditNode()
public EditNode(com.google.gwt.core.client.JavaScriptObject jsObj)
public static EditNode getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setCanvasDefaults(Canvas defaults)
liveObject.setCanvasDefaults in class PaletteNodedefaults - Default value is nullSGWTPropertiespublic Canvas getCanvasDefaults()
liveObject.getCanvasDefaults in class PaletteNodepublic void setCanvasLiveObject(Canvas liveObject)
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.setCanvasLiveObject in class PaletteNodeliveObject - Default value is nullpublic Canvas getCanvasLiveObject()
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.getCanvasLiveObject in class PaletteNodepublic void setDrawItemDefaults(DrawItem defaults)
liveObject.setDrawItemDefaults in class PaletteNodedefaults - Default value is nullSGWTPropertiespublic DrawItem getDrawItemDefaults()
liveObject.getDrawItemDefaults in class PaletteNodepublic void setDrawItemLiveObject(DrawItem liveObject)
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.setDrawItemLiveObject in class PaletteNodeliveObject - Default value is nullpublic DrawItem getDrawItemLiveObject()
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.getDrawItemLiveObject in class PaletteNodepublic void setDrawPaneDefaults(DrawPane defaults)
liveObject.setDrawPaneDefaults in class PaletteNodedefaults - Default value is nullSGWTPropertiespublic DrawPane getDrawPaneDefaults()
liveObject.getDrawPaneDefaults in class PaletteNodepublic void setDrawPaneLiveObject(DrawPane liveObject)
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.setDrawPaneLiveObject in class PaletteNodeliveObject - Default value is nullpublic DrawPane getDrawPaneLiveObject()
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.getDrawPaneLiveObject in class PaletteNodepublic void setEditProxyProperties(EditProxy editProxyProperties)
liveObject.editProxy when created. Note that the editProxy is
created the first time a component is placed into editMode, so any editProxyProperties must be set before
then.
setEditProxyProperties in class PaletteNodeeditProxyProperties - Default value is nullSGWTPropertiespublic EditProxy getEditProxyProperties()
liveObject.editProxy when created. Note that the editProxy is
created the first time a component is placed into editMode, so any editProxyProperties must be set before
then.
getEditProxyProperties in class PaletteNodepublic void setFormItemDefaults(FormItem defaults)
liveObject.setFormItemDefaults in class PaletteNodedefaults - Default value is nullpublic FormItem getFormItemDefaults()
liveObject.getFormItemDefaults in class PaletteNodepublic void setFormItemLiveObject(FormItem liveObject)
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.setFormItemLiveObject in class PaletteNodeliveObject - Default value is nullpublic FormItem getFormItemLiveObject()
defaults. For
example, if type is "ListGrid", liveObject would be a
ListGrid.getFormItemLiveObject in class PaletteNodepublic void setType(java.lang.String type)
canvasLiveObject, for example, "ListGrid".setType in class PaletteNodetype - See SCClassName . Default value is nullpublic java.lang.String getType()
canvasLiveObject, for example, "ListGrid".getType in class PaletteNodeSCClassNamepublic void setUseEditMask(java.lang.Boolean useEditMask)
true an EditProxy.editMask will be
auto-generated and placed over the component to allow selection, positioning and resizing. If this property is not
set it will enabled when added to an EditContext if its parent component has an editProxy and EditProxy.autoMaskChildren is true.
useEditMask - Default value is nullpublic java.lang.Boolean getUseEditMask()
true an EditProxy.editMask will be
auto-generated and placed over the component to allow selection, positioning and resizing. If this property is not
set it will enabled when added to an EditContext if its parent component has an editProxy and EditProxy.autoMaskChildren is true.
public java.lang.Object getLiveObject()
defaults. For example, if
type is "ListGrid",
liveObject would be a ListGrid. Use the more specific live object getter
API, such as
getCanvasLiveObject()
if you are sure of the type.getLiveObject in class PaletteNodegetCanvasLiveObject(),
getDrawItemLiveObject(),
getDrawPaneLiveObject(),
getFormItemLiveObject()