public class HiddenPalette extends BaseClass implements Palette
Dashboards & Tools Framework Overview
config, configOnly, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
HiddenPalette() |
HiddenPalette(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.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".
|
com.google.gwt.core.client.JavaScriptObject |
getJsObj() |
com.google.gwt.core.client.JavaScriptObject |
getOrCreateJsObj() |
static HiddenPalette |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
boolean |
isCreated() |
EditNode |
makeEditNode(PaletteNode paletteNode)
Given a
PaletteNode , make an EditNode from it by
creating a liveObject from the PaletteNode.defaults and copying presentation properties (eg title to the editNode. |
EditNode |
makeEditNode(PaletteNode paletteNode,
EditContext editContext)
Given a
PaletteNode , make an EditNode from it by
creating a liveObject from the PaletteNode.defaults and copying presentation properties (eg title to the editNode. |
HiddenPalette |
setData(PaletteNode... data)
A list of
PaletteNodes for component creation. |
HiddenPalette |
setDefaultEditContext(EditContext defaultEditContext)
Default EditContext that this palette should use.
|
HiddenPalette |
setDefaultEditContext(EditPane defaultEditContext)
Default EditContext that this palette should use.
|
HiddenPalette |
setDefaultEditContext(EditTree defaultEditContext)
Default EditContext that this palette should use.
|
HiddenPalette |
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(com.google.gwt.core.client.JavaScriptObject jsObj) |
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, 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, setConfigOnly, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
public HiddenPalette()
public HiddenPalette(com.google.gwt.core.client.JavaScriptObject jsObj)
public static HiddenPalette getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class BaseClass
public com.google.gwt.core.client.JavaScriptObject create()
public com.google.gwt.core.client.JavaScriptObject getJsObj()
public com.google.gwt.core.client.JavaScriptObject getOrCreateJsObj()
getOrCreateJsObj
in class BaseClass
public HiddenPalette setData(PaletteNode... data) throws java.lang.IllegalStateException
PaletteNodes
for component creation.data
- New data value. Default value is nullHiddenPalette
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic PaletteNode[] getData()
PaletteNodes
for component creation.public HiddenPalette setDefaultEditContext(EditContext defaultEditContext)
setDefaultEditContext
in interface Palette
defaultEditContext
- the default EditContext used by this Palette. Default value is nullHiddenPalette
instance, for chaining setter callspublic EditContext getDefaultEditContext()
getDefaultEditContext
in interface Palette
public HiddenPalette setDefaultEditContext(EditTree defaultEditContext)
setDefaultEditContext
in interface Palette
defaultEditContext
- the default EditContext used by this Palette. Default value is nullHiddenPalette
instance, for chaining setter callspublic EditTree getDefaultEditContextAsEditTree()
getDefaultEditContextAsEditTree
in interface Palette
public HiddenPalette setDefaultEditContext(EditPane defaultEditContext)
setDefaultEditContext
in interface Palette
defaultEditContext
- the default EditContext used by this Palette. Default value is nullHiddenPalette
instance, for chaining setter callspublic EditPane getDefaultEditContextAsEditPane()
getDefaultEditContextAsEditPane
in interface Palette
public HiddenPalette setGenerateNames(boolean generateNames) throws java.lang.IllegalStateException
setGenerateNames
in interface Palette
generateNames
- New generateNames value. Default value is trueHiddenPalette
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdDashboards & Tools Framework Overview
public boolean getGenerateNames()
getGenerateNames
in interface Palette
Dashboards & Tools Framework Overview
public EditNode makeEditNode(PaletteNode paletteNode)
PaletteNode
, make an EditNode
from it by
creating a liveObject
from the PaletteNode.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 frompublic EditNode makeEditNode(PaletteNode paletteNode, EditContext editContext)
PaletteNode
, make an EditNode
from it by
creating a liveObject
from the PaletteNode.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 fromeditContext
- the EditContext
where the node will be added. Only
required in +{EditContext.screenMode,screenMode}.