config, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
HiddenPalette() |
HiddenPalette(JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
JavaScriptObject |
create() |
PaletteNode[] |
getData()
A list of
PaletteNodes for component creation. |
EditContext |
getDefaultEditContext()
Default EditContext that this palette should use.
|
EditPane |
getDefaultEditContextAsEditPane()
Default EditContext that this palette should use.
|
EditTree |
getDefaultEditContextAsEditTree()
Default EditContext that this palette should use.
|
boolean |
getGenerateNames()
Whether created components should have their "ID" or "name" property automatically set to a unique value based on the
component's type, eg, "ListGrid0".
|
JavaScriptObject |
getJsObj() |
JavaScriptObject |
getOrCreateJsObj() |
static HiddenPalette |
getOrCreateRef(JavaScriptObject jsObj) |
boolean |
isCreated() |
EditNode |
makeEditNode(PaletteNode paletteNode)
Given a
PaletteNode , make an EditNode from it by
creating a liveObject from the defaults and copying presentation properties (eg title to the editNode. |
void |
setData(PaletteNode... data)
A list of
PaletteNodes for component creation. |
void |
setDefaultEditContext(EditContext defaultEditContext)
Default EditContext that this palette should use.
|
void |
setDefaultEditContext(EditPane defaultEditContext)
Default EditContext that this palette should use.
|
void |
setDefaultEditContext(EditTree defaultEditContext)
Default EditContext that this palette should use.
|
void |
setGenerateNames(boolean generateNames)
Whether created components should have their "ID" or "name" property automatically set to a unique value based on the
component's type, eg, "ListGrid0".
|
void |
setJavaScriptObject(JavaScriptObject jsObj) |
applyFactoryProperties, asSGWTComponent, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getScClassName, getTestInstance, hasAutoAssignedID, internalSetID, internalSetID, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setScClassName
public HiddenPalette()
public HiddenPalette(JavaScriptObject jsObj)
public static HiddenPalette getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject
in class BaseClass
public JavaScriptObject create()
public JavaScriptObject getJsObj()
public JavaScriptObject getOrCreateJsObj()
getOrCreateJsObj
in class BaseClass
public void setData(PaletteNode... data) throws java.lang.IllegalStateException
PaletteNodes
for component creation.data
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic PaletteNode[] getData()
PaletteNodes
for component creation.public void setDefaultEditContext(EditContext defaultEditContext)
setDefaultEditContext
in interface Palette
defaultEditContext
- the default EditContext used by this Palette. Default value is nullpublic EditContext getDefaultEditContext()
getDefaultEditContext
in interface Palette
public void setDefaultEditContext(EditTree defaultEditContext)
setDefaultEditContext
in interface Palette
defaultEditContext
- the default EditContext used by this Palette. Default value is nullpublic EditTree getDefaultEditContextAsEditTree()
getDefaultEditContextAsEditTree
in interface Palette
public void setDefaultEditContext(EditPane defaultEditContext)
setDefaultEditContext
in interface Palette
defaultEditContext
- the default EditContext used by this Palette. Default value is nullpublic EditPane getDefaultEditContextAsEditPane()
getDefaultEditContextAsEditPane
in interface Palette
public void setGenerateNames(boolean generateNames) throws java.lang.IllegalStateException
setGenerateNames
in interface Palette
generateNames
- Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdDevTools overview and related methods
public boolean getGenerateNames()
getGenerateNames
in interface Palette
DevTools overview and related methods
public EditNode makeEditNode(PaletteNode paletteNode)
PaletteNode
, make an EditNode
from it by
creating a liveObject
from the defaults
and copying presentation properties (eg title
to the editNode. If editNodeProperties
is
specified as an object on on the paletteNode, each property in this object will also be copied across to the editNode.
makeEditNode
in interface Palette
paletteNode
- paletteNode to create from