public interface Palette
PaletteNode
.Modifier and Type | Method and Description |
---|---|
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".
|
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. |
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 setDefaultEditContext(EditContext defaultEditContext)
defaultEditContext
- the default EditContext used by this Palette. Default value is nullEditContext getDefaultEditContext()
void setDefaultEditContext(EditTree defaultEditContext)
defaultEditContext
- the default EditContext used by this Palette. Default value is nullEditTree getDefaultEditContextAsEditTree()
void setDefaultEditContext(EditPane defaultEditContext)
defaultEditContext
- the default EditContext used by this Palette. Default value is nullEditPane getDefaultEditContextAsEditPane()
void setGenerateNames(boolean generateNames) throws java.lang.IllegalStateException
generateNames
- New generateNames value. Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdDevTools overview and related methods
boolean getGenerateNames()
DevTools overview and related methods
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.
paletteNode
- paletteNode to create from