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. |
Palette |
setDefaultEditContext(EditContext defaultEditContext)
Default EditContext that this palette should use.
|
Palette |
setDefaultEditContext(EditPane defaultEditContext)
Default EditContext that this palette should use.
|
Palette |
setDefaultEditContext(EditTree defaultEditContext)
Default EditContext that this palette should use.
|
Palette |
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".
|
Palette setDefaultEditContext(EditContext defaultEditContext)
defaultEditContext
- the default EditContext used by this Palette. Default value is nullPalette
instance, for chaining setter callsEditContext getDefaultEditContext()
Palette setDefaultEditContext(EditTree defaultEditContext)
defaultEditContext
- the default EditContext used by this Palette. Default value is nullPalette
instance, for chaining setter callsEditTree getDefaultEditContextAsEditTree()
Palette setDefaultEditContext(EditPane defaultEditContext)
defaultEditContext
- the default EditContext used by this Palette. Default value is nullPalette
instance, for chaining setter callsEditPane getDefaultEditContextAsEditPane()
Palette setGenerateNames(boolean generateNames) throws java.lang.IllegalStateException
generateNames
- New generateNames value. Default value is truePalette
instance, for chaining setter callsjava.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