@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public class EditingEvent
extends java.lang.Object
InplaceEditorCSSConstants.TYPE_BUTTON
doesn't give such a value. In this
case when the notification is received we will just invoke the action associated
with the button.
A custom form control that wants to perform more custom operation can wrap
these on a Runnable
and give then on the customEdit
field. This is the recommended way for performing custom changes.Modifier and Type | Field and Description |
---|---|
java.lang.Runnable |
customEdit
If the form control performs custom editing(
InplaceEditorCSSConstants.EDIT_CUSTOM )
it can give this custom editing wrapped inside this runnable. |
boolean |
requestFocusInHost
true if the focus should be requested inside the author component. |
IAuthorExtensionAction |
toInvoke
The action to be invoked as a result for the edit event.
|
java.lang.String |
val
The value that the user accepted when the editing stopped.
|
Constructor and Description |
---|
EditingEvent(IAuthorExtensionAction toInvoke)
Constructor.
|
EditingEvent(java.lang.Runnable toInvoke,
boolean requestFocus)
Constructor.
|
EditingEvent(java.lang.String val)
Constructor.
|
EditingEvent(java.lang.String value,
boolean requestFocus)
Constructor.
|
public java.lang.String val
public IAuthorExtensionAction toInvoke
public boolean requestFocusInHost
true
if the focus should be requested inside the author component.
Depending on how the editing was stopped it might be necessary to skip requesting
focus inside the author component. For example if the cause of the stop editing
was a focus lost event, we should skip requesting focus since the focus has already
a destination.public final java.lang.Runnable customEdit
InplaceEditorCSSConstants.EDIT_CUSTOM
)
it can give this custom editing wrapped inside this runnable. This will ensure
a more seamless integration by letting Oxygen decide when to make the custom changes.public EditingEvent(java.lang.String val)
val
- The value that the user accepted when the editing stopped.public EditingEvent(java.lang.Runnable toInvoke, boolean requestFocus)
toInvoke
- The action to be invoked as a result for the edit event.requestFocus
- true
if the focus should be requested inside the author component.
Depending on how the editing was stopped it might be necessary to skip requesting
focus inside the author component. For example if the cause of the stop editing
was a focus lost event, we should skip requesting focus since the focus has already
a destination.public EditingEvent(IAuthorExtensionAction toInvoke)
toInvoke
- The action to be invoked as a result for the edit event.public EditingEvent(java.lang.String value, boolean requestFocus)
value
- The value that the user accepted when the editing stopped.requestFocus
- true
if the focus should be requested inside the author component.
Depending on how the editing was stopped it might be necessary to skip requesting
focus inside the author component. For example if the cause of the stop editing
was a focus lost event, we should skip requesting focus since the focus has already
a destination.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.