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.
id
factoryCreated, factoryProperties
Constructor and Description |
---|
EditNode() |
EditNode(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getCanDuplicate()
|
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()
Shortcut property to be applied to the
liveObject .editProxy when created. |
EditNode |
setCanDuplicate(java.lang.Boolean canDuplicate)
|
EditNode |
setCanvasDefaults(Canvas defaults)
Properties required to recreate the current
liveObject . |
EditNode |
setCanvasLiveObject(Canvas liveObject)
Live version of the object created from the
defaults . |
EditNode |
setDrawItemDefaults(DrawItem defaults)
Properties required to recreate the current
liveObject . |
EditNode |
setDrawItemLiveObject(DrawItem liveObject)
Live version of the object created from the
defaults . |
EditNode |
setDrawPaneDefaults(DrawPane defaults)
Properties required to recreate the current
liveObject . |
EditNode |
setDrawPaneLiveObject(DrawPane liveObject)
Live version of the object created from the
defaults . |
EditNode |
setEditProxyProperties(EditProxy editProxyProperties)
Properties to be applied to the
liveObject .editProxy when created. |
EditNode |
setFormItemDefaults(FormItem defaults)
Properties required to recreate the current
liveObject . |
EditNode |
setFormItemLiveObject(FormItem liveObject)
Live version of the object created from the
defaults . |
EditNode |
setType(java.lang.String type)
String of the
canvasLiveObject , for example, "ListGrid". |
EditNode |
setUseEditMask(java.lang.Boolean useEditMask)
Shortcut property to be applied to the
liveObject .editProxy when created. |
getAlwaysUsePlaceholder, getEditNodeProperties, getIcon, getIdName, getIdPrefix, getPlaceholderImage, getPlaceholderProperties, getRecreateOnChange, getRequiredProperties, getTitle, setAlwaysUsePlaceholder, setEditNodeProperties, setIcon, setIdName, setIdPrefix, setPlaceholderImage, setPlaceholderProperties, setRecreateOnChange, setRequiredProperties, setTitle
getCanAcceptDrop, getCanDrag, getEnabled, getIconPadding, getName, getShowDropIcon, getShowOpenIcon, getShowSelectedIcon, setCanAcceptDrop, setCanDrag, setChildren, setEnabled, setIconPadding, setID, setIsFolder, setName, setParentID, setShowDropIcon, setShowOpenIcon, setShowSelectedIcon
get_baseStyle, get_canEdit, get_canRemove, getBackgroundComponent, getCanExpand, getCanSelect, getCustomStyle, getDetailDS, getEmbeddedComponent, getEmbeddedComponentFields, getEmbeddedComponentPosition, getIncludeInSummary, getIsGridSummary, getIsGroupSummary, getIsSeparator, getLinkText, getShowRollOver, getSingleCellValue, set_baseStyle, set_canEdit, set_canRemove, setBackgroundComponent, setCanExpand, setCanSelect, setCustomStyle, setDetailDS, setEmbeddedComponent, setEmbeddedComponentFields, setEmbeddedComponentPosition, setIncludeInSummary, setIsGridSummary, setIsGroupSummary, setIsSeparator, setLinkText, setShowRollOver, setSingleCellValue
convertToRecordArray, copyAttributes, copyAttributesInto, getAttributeAsRecordArray, getAttributeAsRecordList, getPaletteDefaults, isARecord, toMap
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, 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
public EditNode()
public EditNode(com.google.gwt.core.client.JavaScriptObject jsObj)
public static EditNode getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public EditNode setCanDuplicate(java.lang.Boolean canDuplicate)
setCanDuplicate
in class PaletteNode
canDuplicate
- New canDuplicate value. Default value is nullEditNode
instance, for chaining setter callspublic java.lang.Boolean getCanDuplicate()
getCanDuplicate
in class PaletteNode
public EditNode setCanvasDefaults(Canvas defaults)
liveObject
.setCanvasDefaults
in class PaletteNode
defaults
- New defaults value. Default value is nullEditNode
instance, for chaining setter callsSGWTProperties
public Canvas getCanvasDefaults()
liveObject
.getCanvasDefaults
in class PaletteNode
public EditNode setCanvasLiveObject(Canvas liveObject)
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.setCanvasLiveObject
in class PaletteNode
liveObject
- New liveObject value. Default value is nullEditNode
instance, for chaining setter callspublic Canvas getCanvasLiveObject()
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.getCanvasLiveObject
in class PaletteNode
public EditNode setDrawItemDefaults(DrawItem defaults)
liveObject
.setDrawItemDefaults
in class PaletteNode
defaults
- New defaults value. Default value is nullEditNode
instance, for chaining setter callsSGWTProperties
public DrawItem getDrawItemDefaults()
liveObject
.getDrawItemDefaults
in class PaletteNode
public EditNode setDrawItemLiveObject(DrawItem liveObject)
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.setDrawItemLiveObject
in class PaletteNode
liveObject
- New liveObject value. Default value is nullEditNode
instance, for chaining setter callspublic DrawItem getDrawItemLiveObject()
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.getDrawItemLiveObject
in class PaletteNode
public EditNode setDrawPaneDefaults(DrawPane defaults)
liveObject
.setDrawPaneDefaults
in class PaletteNode
defaults
- New defaults value. Default value is nullEditNode
instance, for chaining setter callsSGWTProperties
public DrawPane getDrawPaneDefaults()
liveObject
.getDrawPaneDefaults
in class PaletteNode
public EditNode setDrawPaneLiveObject(DrawPane liveObject)
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.setDrawPaneLiveObject
in class PaletteNode
liveObject
- New liveObject value. Default value is nullEditNode
instance, for chaining setter callspublic DrawPane getDrawPaneLiveObject()
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.getDrawPaneLiveObject
in class PaletteNode
public EditNode 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 PaletteNode
editProxyProperties
- New editProxyProperties value. Default value is nullEditNode
instance, for chaining setter callsSGWTProperties
public 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 PaletteNode
public EditNode setFormItemDefaults(FormItem defaults)
liveObject
.setFormItemDefaults
in class PaletteNode
defaults
- New defaults value. Default value is nullEditNode
instance, for chaining setter callspublic FormItem getFormItemDefaults()
liveObject
.getFormItemDefaults
in class PaletteNode
public EditNode setFormItemLiveObject(FormItem liveObject)
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.setFormItemLiveObject
in class PaletteNode
liveObject
- New liveObject value. Default value is nullEditNode
instance, for chaining setter callspublic FormItem getFormItemLiveObject()
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.getFormItemLiveObject
in class PaletteNode
public EditNode setType(java.lang.String type)
canvasLiveObject
, for example, "ListGrid".setType
in class PaletteNode
type
- New type value. Default value is nullEditNode
instance, for chaining setter callsSCClassName
public java.lang.String getType()
canvasLiveObject
, for example, "ListGrid".getType
in class PaletteNode
SCClassName
public EditNode setUseEditMask(java.lang.Boolean useEditMask)
liveObject
.editProxy
when created.useEditMask
- New useEditMask value. Default value is nullEditNode
instance, for chaining setter callspublic java.lang.Boolean getUseEditMask()
liveObject
.editProxy
when created.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 PaletteNode
getCanvasLiveObject()
,
getDrawItemLiveObject()
,
getDrawPaneLiveObject()
,
getFormItemLiveObject()