public static class PaletteLayoutDescriptor.Manager
extends java.lang.Object
PaletteLayoutDescriptor.Manager
class is used to access
(add and retrieve) PaletteLayoutDescriptor
instances. It will
automatically discover any descriptor instances declared using the
palette-layouts-hook
hook.Constructor and Description |
---|
PaletteLayoutDescriptor.Manager() |
Modifier and Type | Method and Description |
---|---|
static void |
addLayoutDescriptor(PaletteLayoutDescriptor descriptor)
Add the given layout descriptor.
|
static PaletteLayoutDescriptor |
getLayoutDescriptor(java.lang.String id)
Get the layout descriptor whose
ID
matches the given ID, if any. |
static java.util.Set<java.lang.String> |
getLayoutDescriptorKeys()
Get the set of keys for the known layout descriptors.
|
static java.util.List<PaletteLayoutDescriptor> |
getLayoutDescriptors()
Get a list of all current layout descriptors.
|
public static void addLayoutDescriptor(PaletteLayoutDescriptor descriptor)
null
this method has no effect. If another layout descriptor with the same
ID
has already been added, then it
will be replaced with the given layout descriptor.descriptor
- the layout descriptorpublic static PaletteLayoutDescriptor getLayoutDescriptor(java.lang.String id)
ID
matches the given ID, if any.id
- the ID to matchID
matches the given ID, or
null
if none is foundpublic static java.util.List<PaletteLayoutDescriptor> getLayoutDescriptors()
public static java.util.Set<java.lang.String> getLayoutDescriptorKeys()
unmodifiable
.