@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface InplaceEditorCSSConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_CONTEXT_CARET
Possible value for
PROPERTY_ACTION_CONTEXT . |
static java.lang.String |
ACTION_CONTEXT_ELEMENT
Possible value for
PROPERTY_ACTION_CONTEXT . |
static java.lang.String |
COMMA
The variable used to add a comma in property values.
|
static java.lang.String |
EDIT_CUSTOM
Value of the PROPERTY_EDIT that indicates that the editor is doing a custom
edit session and it's up to the editor to update the document.
|
static java.lang.String |
EDIT_TEXT_CONTENT
Value of the PROPERTY_EDIT that indicates that the text content of the
element must be edited.
|
static java.lang.String |
FALSE
Possible value for PROPERTY_EDITABLE that marks the combo as NOT being editable.
|
static java.lang.String |
INHERIT
Value constant used for the color property.
|
static java.lang.String |
PROPERTY_ACTION_CONTEXT
Only applies to the
TYPE_BUTTON and TYPE_BUTTON_GROUP . |
static java.lang.String |
PROPERTY_ACTION_DISPLAY_STYLE
Only applies to the
TYPE_BUTTON_GROUP and specifies what to display for an
action: icon, text or both. |
static java.lang.String |
PROPERTY_ACTION_ID
Only applies to the
TYPE_BUTTON and represents the ID of the action
that must be invoked when the button is pressed. |
static java.lang.String |
PROPERTY_ACTION_IDS
Only applies to the
TYPE_BUTTON_GROUP and contains a list of comma separated
IDs of the actions that are presented to the user in a pop-up menu. |
static java.lang.String |
PROPERTY_CLASSPATH
If the form control is a custom implementation this property can be used to
specify the class path where the custom implementation will loaded from.
|
static java.lang.String |
PROPERTY_COLOR
Property used to specify the foreground color.
|
static java.lang.String |
PROPERTY_COLUMNS
The number of columns that the editor should have.
|
static java.lang.String |
PROPERTY_CONTENT_TYPE
Property used to specify the content type of the edited string.
|
static java.lang.String |
PROPERTY_EDIT
Deprecated.
Use
InplaceEditorArgumentKeys.PROPERTY_EDIT_QUALIFIED instead.
In case of an attribute it will offer a clark name instead of the QName used in the CSS. |
static java.lang.String |
PROPERTY_EDITABLE
Only applies when the editor is a combo box and marks the combo as being
editable or not.
|
static java.lang.String |
PROPERTY_EDITOR_SORT
Used only when
PROPERTY_TYPE is set to TYPE_POPUP_SELECTION
and PROPERTY_SELECTION_MODE is set to SELECTION_MODE_MULTIPLE . |
static java.lang.String |
PROPERTY_FONT_INHERIT
Property used to specify that the font is inherited from the parent element.
|
static java.lang.String |
PROPERTY_FORMAT
It applies only on date picker form control.
|
static java.lang.String |
PROPERTY_ICON
Only applies to the
TYPE_BUTTON_GROUP and specifies the path to an Icon
to be displayed on the button. |
static java.lang.String |
PROPERTY_INDENT_ON_TAB
Controls the TAB behavior in the text area form control.
|
static java.lang.String |
PROPERTY_LABEL
Only applies to the
TYPE_BUTTON_GROUP and specifies the label of the button
that triggers the pop-up menu. |
static java.lang.String |
PROPERTY_LABELS
A set of labels to be associated with PROPERTY_VALUES.
|
static java.lang.String |
PROPERTY_RENDERER_CLASS_NAME
Class name of the renderer.
|
static java.lang.String |
PROPERTY_RENDERER_SEPARATOR
Used only when
PROPERTY_TYPE is set to TYPE_POPUP_SELECTION . |
static java.lang.String |
PROPERTY_RENDERER_SORT
Used only when
PROPERTY_TYPE is set to TYPE_POPUP_SELECTION . |
static java.lang.String |
PROPERTY_ROWS
The number of rows that the editor should have.
|
static java.lang.String |
PROPERTY_SELECTION_MODE
Used only when
PROPERTY_TYPE is set to TYPE_POPUP_SELECTION . |
static java.lang.String |
PROPERTY_SEPARATOR
|
static java.lang.String |
PROPERTY_SHOW_ICON
Only applies to the
TYPE_BUTTON and specifies if the icon should be displayed
on the button. |
static java.lang.String |
PROPERTY_SHOW_TEXT
Only applies to the
TYPE_BUTTON and specifies if the text should be displayed
on the button. |
static java.lang.String |
PROPERTY_SWING_EDITOR_CLASS_NAME
Class name of the editor.
|
static java.lang.String |
PROPERTY_SWT_EDITOR_CLASS_NAME
Class name of the editor.
|
static java.lang.String |
PROPERTY_TOOLTIP
Only applies to the
TYPE_BUTTON_GROUP and TYPE_TEXT and specifies the tooltip for the button
that triggers the pop-up menu with the actions in the group. |
static java.lang.String |
PROPERTY_TOOLTIPS
A set of tooltips to be associated with PROPERTY_VALUES.
|
static java.lang.String |
PROPERTY_TRANSPARENT
Only applies to the
TYPE_BUTTON and ensures whether the button
will have a more flat appearance (transparent). |
static java.lang.String |
PROPERTY_TYPE
Indicates the editor that should be used to edit.
|
static java.lang.String |
PROPERTY_UNCHECKED_VALUES
Used only when
PROPERTY_TYPE is set to TYPE_CHECKBOX . |
static java.lang.String |
PROPERTY_VALIDATE_INPUT
Controls the validation of the input.
|
static java.lang.String |
PROPERTY_VALUES
A set of values to be presented as choices.
|
static java.lang.String |
PROPERTY_VISIBLE
Property used to specify if an in-place editor is visible.
|
static java.lang.String |
PROPERTY_WEBAPP_RENDERER_CLASS_NAME
Class name of the server-side renderer used in the Author Webapp.
|
static java.lang.String |
SELECTION_MODE_MULTIPLE
Possible value for "selectionMode".
|
static java.lang.String |
SELECTION_MODE_SINGLE
Possible value for "selectionMode".
|
static java.lang.String |
SORT_ASCENDING
Value Used only when
PROPERTY_TYPE is set to TYPE_POPUP_SELECTION . |
static java.lang.String |
SORT_DESCENDING
Value Used only when
PROPERTY_TYPE is set to TYPE_POPUP_SELECTION . |
static java.lang.String |
TRUE
Possible value for PROPERTY_EDITABLE that marks the combo as being editable.
|
static java.lang.String |
TYPE_BUTTON
Possible value for PROPERTY_TYPE.
|
static java.lang.String |
TYPE_BUTTON_GROUP
Possible value for PROPERTY_TYPE.
|
static java.lang.String |
TYPE_CHECKBOX
Possible value for PROPERTY_TYPE.
|
static java.lang.String |
TYPE_COMBOBOX
Possible value for PROPERTY_TYPE.
|
static java.lang.String |
TYPE_DATE_PICKER
An editor that can be used to edit dates.
|
static java.lang.String |
TYPE_OLD_URL_CHOOSER
The old url chooser.
|
static java.lang.String |
TYPE_POPUP_SELECTION
The renderer presents a simple or compose value and the editor shows a
pop-up like panel in which we can choose the values.
|
static java.lang.String |
TYPE_TEXT
Possible value for PROPERTY_TYPE.
|
static java.lang.String |
TYPE_TEXT_AREA
Possible value for PROPERTY_TYPE.
|
static java.lang.String |
TYPE_URL_CHOOSER
Possible value for PROPERTY_TYPE.
|
static final java.lang.String PROPERTY_TYPE
@Deprecated static final java.lang.String PROPERTY_EDIT
InplaceEditorArgumentKeys.PROPERTY_EDIT_QUALIFIED
instead.
In case of an attribute it will offer a clark name instead of the QName used in the CSS.EDIT_TEXT_CONTENT
EDIT_CUSTOM
static final java.lang.String PROPERTY_VALUES
CIValue
.static final java.lang.String PROPERTY_UNCHECKED_VALUES
PROPERTY_TYPE
is set to TYPE_CHECKBOX
.
These are the values that are committed for a checkbox when it is un-checked.
If missing, an un-checked button will commit no value.
The processed value for this property is a list of CIValue
.static final java.lang.String PROPERTY_LABELS
static final java.lang.String PROPERTY_TOOLTIPS
static final java.lang.String PROPERTY_ROWS
static final java.lang.String PROPERTY_COLUMNS
static final java.lang.String PROPERTY_SEPARATOR
PROPERTY_TYPE
is set to TYPE_CHECKBOX
or
TYPE_POPUP_SELECTION
.
This is the separator that will be used to compose the values from the
check-boxes into one string that will be committed into the document.
If no separator is specified, a space will be used.static final java.lang.String PROPERTY_RENDERER_SEPARATOR
PROPERTY_TYPE
is set to TYPE_POPUP_SELECTION
.
This is the separator that will be used to compose the values from the
check-boxes into one string that will be rendered in the document.
If no separator is specified, PROPERTY_SEPARATOR
will be used to
identify tokens.static final java.lang.String PROPERTY_RENDERER_SORT
PROPERTY_TYPE
is set to TYPE_POPUP_SELECTION
.
This is the order in which the values in the element or attribute will appear rendered in the editor.
If no sort order is specified, the values will be rendered in the order in which they appear in the document.static final java.lang.String PROPERTY_EDITOR_SORT
PROPERTY_TYPE
is set to TYPE_POPUP_SELECTION
and PROPERTY_SELECTION_MODE
is set to SELECTION_MODE_MULTIPLE
.
This is the order in which the values specified for the element or attribute will be presented in the pop-up editor.
If no sort order is specified, the values will be presented in the order in which they appear in the document.static final java.lang.String SORT_ASCENDING
PROPERTY_TYPE
is set to TYPE_POPUP_SELECTION
.
Sort in ascending lexicographical order.static final java.lang.String SORT_DESCENDING
PROPERTY_TYPE
is set to TYPE_POPUP_SELECTION
.
Sort in descending lexicographical order.static final java.lang.String PROPERTY_EDITABLE
static final java.lang.String PROPERTY_ACTION_ID
TYPE_BUTTON
and represents the ID of the action
that must be invoked when the button is pressed. It's processed value is
an IAuthorExtensionAction
. If an action with the given ID wasn't found
the value remains the given string ID.static final java.lang.String PROPERTY_ACTION_CONTEXT
TYPE_BUTTON
and TYPE_BUTTON_GROUP
.
It specifies the context in which the action associated with the form control will be executed in.
The default value is ACTION_CONTEXT_ELEMENT
.static final java.lang.String PROPERTY_TRANSPARENT
TYPE_BUTTON
and ensures whether the button
will have a more flat appearance (transparent). The accepted values are true and false.
The default value is false which will determine a classic looking button.
When true, the SWING button will have no borders while the SWT one will be a tool item.
The processed values will be either Boolean.TRUE or Boolean.FALSE.static final java.lang.String PROPERTY_ACTION_IDS
TYPE_BUTTON_GROUP
and contains a list of comma separated
IDs of the actions that are presented to the user in a pop-up menu. It's processed
value is a list of IAuthorExtensionAction
. If one of the actions IDs wasn't
found the value remains the given string ID.static final java.lang.String PROPERTY_ICON
TYPE_BUTTON_GROUP
and specifies the path to an Icon
to be displayed on the button. The processed value is an Icon to be displayed on the button
or null if no icon is specified or the specified one cannot be loaded.static final java.lang.String PROPERTY_SHOW_TEXT
TYPE_BUTTON
and specifies if the text should be displayed
on the button. If missing, the button displays only the icon if it is available, or the
text if the icon is not available. This is a boolean property.static final java.lang.String PROPERTY_SHOW_ICON
TYPE_BUTTON
and specifies if the icon should be displayed
on the button. If missing, the button displays only the icon if it is available, or the
text if the icon is not available. This is a boolean property.static final java.lang.String PROPERTY_LABEL
TYPE_BUTTON_GROUP
and specifies the label of the button
that triggers the pop-up menu.static final java.lang.String PROPERTY_TOOLTIP
TYPE_BUTTON_GROUP
and TYPE_TEXT
and specifies the tooltip for the button
that triggers the pop-up menu with the actions in the group.static final java.lang.String PROPERTY_ACTION_DISPLAY_STYLE
TYPE_BUTTON_GROUP
and specifies what to display for an
action: icon, text or both.static final java.lang.String PROPERTY_RENDERER_CLASS_NAME
PROPERTY_CLASSPATH
.static final java.lang.String PROPERTY_SWING_EDITOR_CLASS_NAME
PROPERTY_CLASSPATH
.static final java.lang.String PROPERTY_SWT_EDITOR_CLASS_NAME
PROPERTY_CLASSPATH
.static final java.lang.String PROPERTY_WEBAPP_RENDERER_CLASS_NAME
PROPERTY_CLASSPATH
.static final java.lang.String PROPERTY_CLASSPATH
static final java.lang.String PROPERTY_SELECTION_MODE
PROPERTY_TYPE
is set to TYPE_POPUP_SELECTION
.
Its possible values are SELECTION_MODE_SINGLE
and SELECTION_MODE_MULTIPLE
.
The default value is SELECTION_MODE_MULTIPLE
.static final java.lang.String PROPERTY_FONT_INHERIT
static final java.lang.String PROPERTY_COLOR
static final java.lang.String PROPERTY_CONTENT_TYPE
ContentTypes
static final java.lang.String PROPERTY_VISIBLE
true
or false
.static final java.lang.String PROPERTY_VALIDATE_INPUT
static final java.lang.String PROPERTY_INDENT_ON_TAB
static final java.lang.String ACTION_CONTEXT_ELEMENT
PROPERTY_ACTION_CONTEXT
. The action will be executed
in the context of the element associated with the form control.
We want the form control below to delete the li
element
even if the caret is located in a descendant of li
.
li:before { content:oxy_button(actionID, 'delete.element', actionContext, 'element') }
static final java.lang.String ACTION_CONTEXT_CARET
PROPERTY_ACTION_CONTEXT
. The action will be executed
in the current selection context. The selection/caret must be inside the element
associated with the form control. Otherwise the action will be executed
in ACTION_CONTEXT_ELEMENT
context.
The form control is added on a 'para' element. Whenever the user makes a selection inside 'para' and clicks the button we want to wrap the existing selection in a 'b' element.
para:before { content:oxy_button(actionID, 'bold.wrap', actionContext, 'caret') }
static final java.lang.String TYPE_BUTTON
static final java.lang.String TYPE_COMBOBOX
static final java.lang.String TYPE_TEXT
static final java.lang.String TYPE_TEXT_AREA
static final java.lang.String TYPE_CHECKBOX
static final java.lang.String TYPE_POPUP_SELECTION
static final java.lang.String TYPE_URL_CHOOSER
static final java.lang.String TYPE_BUTTON_GROUP
static final java.lang.String EDIT_TEXT_CONTENT
static final java.lang.String EDIT_CUSTOM
Value of the PROPERTY_EDIT that indicates that the editor is doing a custom edit session and it's up to the editor to update the document.
In this situation it is recommended for the editor to give an EditingEvent.customEdit
on InplaceEditingListener.commitValue(EditingEvent)
. If that's not done the following apply:
In this case the notification InplaceEditingListener.commitValue(EditingEvent)
will
do nothing since it's not clear where should the given value be committed.
The notification InplaceEditingListener.editingStopped(EditingEvent)
will
also stop the editing session without committing any value. It's up to the custom
editor to make the necessary changes into the document (but only after the
previous mentioned notification was issued).
Warning:
All changes to the document (that the custom editor must do)
must be performed after the InplaceEditingListener.editingStopped(EditingEvent)
notification was fired. Because the editing is automatically
stopped on any document modification an infinite loop will happen if the previous condition is not met.
static final java.lang.String FALSE
static final java.lang.String TRUE
static final java.lang.String SELECTION_MODE_SINGLE
static final java.lang.String SELECTION_MODE_MULTIPLE
static final java.lang.String TYPE_DATE_PICKER
static final java.lang.String TYPE_OLD_URL_CHOOSER
static final java.lang.String PROPERTY_FORMAT
static final java.lang.String COMMA
static final java.lang.String INHERIT
© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.