@ExtensionPoint public interface ToggleableReferenceFieldLabelDecorator extends ReferenceFieldLabelDecorator
ReferenceFieldLabelDecorator
which can be enabled and disabled, so that the decorations
it applies to reference fields do not need to always be applied.Modifier and Type | Interface and Description |
---|---|
static class |
ToggleableReferenceFieldLabelDecorator.StatusEvent
Represents this decorator's status changing from enabled to disabled or vice-versa.
|
ORDER_CODE_GROUP, ORDER_CPU_GROUP, ORDER_DEFAULT_GROUP, ORDER_FIRST, ORDER_IO_GROUP, ORDER_LAST, ORDER_MEMORY_GROUP, ORDER_NETWORK_GROUP, ORDER_THREAD_GROUP, ORDER_USER_GROUP
Modifier and Type | Method and Description |
---|---|
void |
addStatusEventListener(ActionListener<ToggleableReferenceFieldLabelDecorator.StatusEvent> listener)
Add a listener which will be notified when this decorator's enabled/disabled status changes.
|
boolean |
isEnabled()
Check whether or not this decorator is currently enabled.
|
void |
removeStatusEventListener(ActionListener<ToggleableReferenceFieldLabelDecorator.StatusEvent> listener)
Remove a status listener.
|
void |
setEnabled(boolean enabled)
Set whether or not this decorator should apply its decoration to reference fields.
|
getLabel
getOrderValue
void setEnabled(boolean enabled)
boolean isEnabled()
void addStatusEventListener(ActionListener<ToggleableReferenceFieldLabelDecorator.StatusEvent> listener)
void removeStatusEventListener(ActionListener<ToggleableReferenceFieldLabelDecorator.StatusEvent> listener)
Copyright © 2017. All rights reserved.