public final class LabelEditingEventArgs extends InputModeEventArgs
LabelAdding
and LabelEditing events, as
well as the IEditLabelHelper interface.EMPTY| Constructor and Description |
|---|
LabelEditingEventArgs(IInputModeContext context,
ILabelOwner owner,
ILabel label)
Initializes a new instance of the
LabelEditingEventArgs class with the given context, owner, and label. |
| Modifier and Type | Method and Description |
|---|---|
ILabel |
getLabel()
Gets the label to edit.
|
ILabelModelParameter |
getLayoutParameter()
Gets the
LayoutParameter of the label to add. |
ILabelOwner |
getOwner()
Gets the owner of the label.
|
SizeD |
getPreferredSize()
Gets the
PreferredSize of the label to add. |
ILabelStyle |
getStyle()
Gets the
Style of the label to add. |
Object |
getTag()
Gets the
Tag of the label to add. |
ITextEditorInputModeConfigurationHandler |
getTextEditorInputModeConfigurator()
Configures the
TextEditorInputMode for editing the provided label instance. |
boolean |
isCancel()
Gets a value indicating whether the action (adding or editing a label) should be canceled.
|
boolean |
isHandled()
Gets a value indicating whether this event has been handled.
|
void |
setCancel(boolean value)
Sets a value indicating whether the action (adding or editing a label) should be canceled.
|
void |
setHandled(boolean value)
Sets a value indicating whether this event has been handled.
|
void |
setLabel(ILabel value)
Sets the label to edit.
|
void |
setLayoutParameter(ILabelModelParameter value)
Sets the
LayoutParameter of the label to add. |
void |
setOwner(ILabelOwner value)
Sets the owner of the label.
|
void |
setPreferredSize(SizeD value)
Sets the
PreferredSize of the label to add. |
void |
setStyle(ILabelStyle value)
Sets the
Style of the label to add. |
void |
setTag(Object value)
Sets the
Tag of the label to add. |
void |
setTextEditorInputModeConfigurator(ITextEditorInputModeConfigurationHandler value)
Configures the
TextEditorInputMode for editing the provided label instance. |
getContextpublic LabelEditingEventArgs(IInputModeContext context, ILabelOwner owner, ILabel label)
LabelEditingEventArgs class with the given context, owner, and label.context - The input mode context to use.owner - The ILabelOwner whose label should be edited.label - The ILabel that should be edited.public final ILabel getLabel()
This can be set to an exiting label to edit a specific one, or set to null to add a new label instead (e.g. for
ILabelOwners that have no label yet).
If this property is set to null, the properties Style,
PreferredSize, LayoutParameter, and Tag
are used for the newly-added label, just like with LabelEditingEventArgs.
Setting this property implicitly also sets Handled to true.
setLabel(ILabel)public final ILabelModelParameter getLayoutParameter()
LayoutParameter of the label to add.
Setting this property implicitly also sets Handled to true.
setLayoutParameter(ILabelModelParameter)public final ILabelOwner getOwner()
This property can be null if there is no owner known, e.g. if the event is raised for
non-ILabelOwners. Otherwise it is initially set to the item for which the event is raised.
Setting this property implicitly also sets Handled to true.
setOwner(ILabelOwner)public final SizeD getPreferredSize()
PreferredSize of the label to add.
Setting this property implicitly also sets Handled to true.
setPreferredSize(SizeD)public final ILabelStyle getStyle()
setStyle(ILabelStyle)public final Object getTag()
setTag(Object)public final ITextEditorInputModeConfigurationHandler getTextEditorInputModeConfigurator()
TextEditorInputMode for editing the provided label instance.
Setting this property implicitly also sets Handled to true.
setTextEditorInputModeConfigurator(ITextEditorInputModeConfigurationHandler)public final boolean isCancel()
Setting this property implicitly also sets Handled to true.
setCancel(boolean)public final boolean isHandled()
A handled instance of LabelEditingEventArgs will not be passed to further event handlers or an IEditLabelHelper
instance.
Setting any of the other properties implicitly also sets this to true.
setHandled(boolean)public final void setCancel(boolean value)
Setting this property implicitly also sets Handled to true.
value - The Cancel to set.isCancel()public final void setHandled(boolean value)
A handled instance of LabelEditingEventArgs will not be passed to further event handlers or an IEditLabelHelper
instance.
Setting any of the other properties implicitly also sets this to true.
value - The Handled to set.isHandled()public final void setLabel(ILabel value)
This can be set to an exiting label to edit a specific one, or set to null to add a new label instead (e.g. for
ILabelOwners that have no label yet).
If this property is set to null, the properties Style,
PreferredSize, LayoutParameter, and Tag
are used for the newly-added label, just like with LabelEditingEventArgs.
Setting this property implicitly also sets Handled to true.
value - The Label to set.getLabel()public final void setLayoutParameter(ILabelModelParameter value)
LayoutParameter of the label to add.
Setting this property implicitly also sets Handled to true.
value - The LayoutParameter to set.getLayoutParameter()public final void setOwner(ILabelOwner value)
This property can be null if there is no owner known, e.g. if the event is raised for
non-ILabelOwners. Otherwise it is initially set to the item for which the event is raised.
Setting this property implicitly also sets Handled to true.
value - The Owner to set.getOwner()public final void setPreferredSize(SizeD value)
PreferredSize of the label to add.
Setting this property implicitly also sets Handled to true.
value - The PreferredSize to set.getPreferredSize()public final void setStyle(ILabelStyle value)
value - The Style to set.getStyle()public final void setTag(Object value)
value - The Tag to set.getTag()public final void setTextEditorInputModeConfigurator(ITextEditorInputModeConfigurationHandler value)
TextEditorInputMode for editing the provided label instance.
Setting this property implicitly also sets Handled to true.
value - The TextEditorInputModeConfigurator to set.getTextEditorInputModeConfigurator()