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 defaults
or other properties defined on a paletteNode.
Like a
Palette, an EditContext may use properties such as icon
or 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
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 . |
FormItem |
getFormItemDefaults()
Properties required to recreate the current
liveObject . |
FormItem |
getFormItemLiveObject()
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". |
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 |
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". |
getIcon, getTitle, setIcon, setTitle
convertToRecordArray, copyAttributes, copyAttributesInto, getAttributeAsRecordArray, getAttributeAsRecordList, isARecord, toMap
getRef, getRef, internalSetID
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, 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
public 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 PaletteNode
defaults
- Default value is nullpublic Canvas getCanvasDefaults()
liveObject
.getCanvasDefaults
in class PaletteNode
public void setCanvasLiveObject(Canvas liveObject)
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.setCanvasLiveObject
in class PaletteNode
liveObject
- Default value is nullpublic Canvas getCanvasLiveObject()
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.getCanvasLiveObject
in class PaletteNode
public void setDrawItemDefaults(DrawItem defaults)
liveObject
.setDrawItemDefaults
in class PaletteNode
defaults
- Default value is nullpublic DrawItem getDrawItemDefaults()
liveObject
.getDrawItemDefaults
in class PaletteNode
public void setDrawItemLiveObject(DrawItem liveObject)
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.setDrawItemLiveObject
in class PaletteNode
liveObject
- Default value is nullpublic DrawItem getDrawItemLiveObject()
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.getDrawItemLiveObject
in class PaletteNode
public void setFormItemDefaults(FormItem defaults)
liveObject
.setFormItemDefaults
in class PaletteNode
defaults
- Default value is nullpublic FormItem getFormItemDefaults()
liveObject
.getFormItemDefaults
in class PaletteNode
public void setFormItemLiveObject(FormItem liveObject)
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.setFormItemLiveObject
in class PaletteNode
liveObject
- Default value is nullpublic FormItem getFormItemLiveObject()
defaults
. For
example, if type
is "ListGrid", liveObject
would be a
ListGrid.getFormItemLiveObject
in class PaletteNode
public void setType(java.lang.String type)
canvasLiveObject
, for example, "ListGrid".setType
in class PaletteNode
type
- See SCClassName
. Default value is nullpublic java.lang.String getType()
canvasLiveObject
, for example, "ListGrid".getType
in class PaletteNode
SCClassName