Class EditProxy
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
CanvasEditProxy
,DrawItemEditProxy
,FacetChartEditProxy
,FormItemEditProxy
- See Also:
-
Field Summary
Fields inherited from class com.smartgwt.client.core.BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
This property acts as a component-specific override for theEditContext.allowNestedDrops
property.When child nodes are added to an EditContext, should they be masked by settinguseEditMask
true
if not explicitly set?Should component be brought to front when selected? Applies whenuseEditMask
:true.Can this component be selected? Selection is allowed unless this property is set tofalse
.Whether to allow selection of the children of thisEditNode
.If not null theCanvas.childrenSnapResizeToGrid
on the component represented by this EditProxy is set to this value only while in edit mode.If not null theCanvas.childrenSnapToGrid
on the component represented by this EditProxy is set to this value only while in edit mode.An editMask is created for any component placed into editMode withuseEditMask
:true.Hoop selector canvas used for selecting multiple components.Event that triggers inline editing, showing theinlineEditForm
, which consists of a single text input (single or multi-line according toinlineEditMultiline
) shown in theinlineEditForm
AutoChild.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.Label AutoChild used to displayinlineEditInstructions
below the text entry area if provided.Instructions that appear below the text entry area if inline editing is enabled.Whether inline editing should be single or multi-line.Should the inline editor be shown when new component is first dropped?void
Returns the text based on the current component state to be edited inline.getJsObj()
static EditProxy
getOrCreateRef
(JavaScriptObject jsObj) Changes to all childliveObject
's position and size can be persisted to theirEditNodes
based on this attribute setting andEditContext.persistCoordinates
.Appearance that is applied to selected component.Set the CSS border to be applied to the selection outline of the selected components.The background color for the selection outline label.Mask color applied toeditMask
of selected component whenselectedAppearance
is "tintMask".Opacity applied toeditMask
of selected component whenselectedAppearance
is "tintMask".Should drag handles or thumb be shown when this component is selected? These are shown unless this property is set tofalse
.Whether this EditProxy has an inline edit behavior, which allows an end user to configure a component by editing a simple text representation of its configuration.Whentrue
aneditMask
will be auto-generated and placed over the component to allow selection, positioning and resizing.boolean
setAllowNestedDrops
(Boolean allowNestedDrops) This property acts as a component-specific override for theEditContext.allowNestedDrops
property.setAutoMaskChildren
(Boolean autoMaskChildren) When child nodes are added to an EditContext, should they be masked by settinguseEditMask
true
if not explicitly set?setBringToFrontOnSelect
(Boolean bringToFrontOnSelect) Should component be brought to front when selected? Applies whenuseEditMask
:true.setCanSelect
(Boolean canSelect) Can this component be selected? Selection is allowed unless this property is set tofalse
.setCanSelectChildren
(Boolean canSelectChildren) Whether to allow selection of the children of thisEditNode
.setChildrenSnapResizeToGrid
(Boolean childrenSnapResizeToGrid) If not null theCanvas.childrenSnapResizeToGrid
on the component represented by this EditProxy is set to this value only while in edit mode.setChildrenSnapToGrid
(Boolean childrenSnapToGrid) If not null theCanvas.childrenSnapToGrid
on the component represented by this EditProxy is set to this value only while in edit mode.setInlineEditEvent
(InlineEditEvent inlineEditEvent) Event that triggers inline editing, showing theinlineEditForm
, which consists of a single text input (single or multi-line according toinlineEditMultiline
) shown in theinlineEditForm
AutoChild.setInlineEditInstructions
(String inlineEditInstructions) Instructions that appear below the text entry area if inline editing is enabled.setInlineEditMultiline
(Boolean inlineEditMultiline) Whether inline editing should be single or multi-line.setInlineEditOnDrop
(Boolean inlineEditOnDrop) Should the inline editor be shown when new component is first dropped?void
setInlineEditText
(String newValue) Save the new value into the component's state.void
setPersistCoordinates
(Boolean persistCoordinates) Changes to all childliveObject
's position and size can be persisted to theirEditNodes
based on this attribute setting andEditContext.persistCoordinates
.setSelectedAppearance
(SelectedAppearance selectedAppearance) Appearance that is applied to selected component.setSelectedBorder
(String selectedBorder) Set the CSS border to be applied to the selection outline of the selected components.setSelectedLabelBackgroundColor
(String selectedLabelBackgroundColor) The background color for the selection outline label.setSelectedTintColor
(String selectedTintColor) Mask color applied toeditMask
of selected component whenselectedAppearance
is "tintMask".setSelectedTintOpacity
(Integer selectedTintOpacity) Opacity applied toeditMask
of selected component whenselectedAppearance
is "tintMask".setShowDragHandle
(Boolean showDragHandle) Should drag handles or thumb be shown when this component is selected? These are shown unless this property is set tofalse
.setSupportsInlineEdit
(Boolean supportsInlineEdit) Whether this EditProxy has an inline edit behavior, which allows an end user to configure a component by editing a simple text representation of its configuration.setUseCopyPasteShortcuts
(Boolean useCopyPasteShortcuts) setUseEditMask
(Boolean useEditMask) Whentrue
aneditMask
will be auto-generated and placed over the component to allow selection, positioning and resizing.void
showSelectedAppearance
(boolean show) This method applies theselectedAppearance
to the selected component or resets it to the non-selected appearance.void
Manual means of triggering inline editing.void
startInlineEditing
(String appendChar) Manual means of triggering inline editing.Methods inherited from class com.smartgwt.client.core.BaseClass
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getID, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, onInit, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setID, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
-
Constructor Details
-
EditProxy
public EditProxy() -
EditProxy
-
-
Method Details
-
getOrCreateRef
-
setJavaScriptObject
- Overrides:
setJavaScriptObject
in classBaseClass
-
create
-
isCreated
public boolean isCreated() -
getJsObj
-
getOrCreateJsObj
- Overrides:
getOrCreateJsObj
in classBaseClass
-
setAllowNestedDrops
This property acts as a component-specific override for theEditContext.allowNestedDrops
property. Unless explicitly set to false, theEditContext.allowNestedDrops
controls whether a drop can be made into this component.- Parameters:
allowNestedDrops
- New allowNestedDrops value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getAllowNestedDrops
This property acts as a component-specific override for theEditContext.allowNestedDrops
property. Unless explicitly set to false, theEditContext.allowNestedDrops
controls whether a drop can be made into this component.- Returns:
- Current allowNestedDrops value. Default value is null
-
setAutoMaskChildren
When child nodes are added to an EditContext, should they be masked by settinguseEditMask
true
if not explicitly set?- Parameters:
autoMaskChildren
- New autoMaskChildren value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getAutoMaskChildren
When child nodes are added to an EditContext, should they be masked by settinguseEditMask
true
if not explicitly set?- Returns:
- Current autoMaskChildren value. Default value is null
-
setBringToFrontOnSelect
Should component be brought to front when selected? Applies whenuseEditMask
:true.- Parameters:
bringToFrontOnSelect
- New bringToFrontOnSelect value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getBringToFrontOnSelect
Should component be brought to front when selected? Applies whenuseEditMask
:true.- Returns:
- Current bringToFrontOnSelect value. Default value is null
-
setCanSelect
Can this component be selected? Selection is allowed unless this property is set tofalse
.- Parameters:
canSelect
- New canSelect value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getCanSelect
Can this component be selected? Selection is allowed unless this property is set tofalse
.- Returns:
- Current canSelect value. Default value is null
-
setCanSelectChildren
Whether to allow selection of the children of thisEditNode
. The appearance and behavior of selected components is controlled bySelectedAppearance
, or centrally across anEditContext
viaEditContext.selectedAppearance
.Individual children can be marked non-selectable via setting
canSelect
tofalse
.Use the
EditContext
to access and manipulate the currently selected set of EditNodes, via APIs such asEditContext.getSelectedEditNode()
,EditContext.selectSingleEditNode()
andEditContext.selectedEditNodesUpdated()
.
If this method is called after the component has been drawn/initialized: Setter forcanSelectChildren
.- Parameters:
canSelectChildren
- the new canSelectChildren. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- See Also:
-
getCanSelectChildren
Whether to allow selection of the children of thisEditNode
. The appearance and behavior of selected components is controlled bySelectedAppearance
, or centrally across anEditContext
viaEditContext.selectedAppearance
.Individual children can be marked non-selectable via setting
canSelect
tofalse
.Use the
EditContext
to access and manipulate the currently selected set of EditNodes, via APIs such asEditContext.getSelectedEditNode()
,EditContext.selectSingleEditNode()
andEditContext.selectedEditNodesUpdated()
.- Returns:
- Current canSelectChildren value. Default value is null
- See Also:
-
setChildrenSnapResizeToGrid
If not null theCanvas.childrenSnapResizeToGrid
on the component represented by this EditProxy is set to this value only while in edit mode. This allows snapResizeToGrid functionality to be enforced during edit mode but not when live.- Parameters:
childrenSnapResizeToGrid
- New childrenSnapResizeToGrid value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- See Also:
-
getChildrenSnapResizeToGrid
If not null theCanvas.childrenSnapResizeToGrid
on the component represented by this EditProxy is set to this value only while in edit mode. This allows snapResizeToGrid functionality to be enforced during edit mode but not when live.- Returns:
- Current childrenSnapResizeToGrid value. Default value is null
- See Also:
-
setChildrenSnapToGrid
If not null theCanvas.childrenSnapToGrid
on the component represented by this EditProxy is set to this value only while in edit mode. This allows snapToGrid functionality to be enforced during edit mode but not when live.- Parameters:
childrenSnapToGrid
- New childrenSnapToGrid value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- See Also:
-
getChildrenSnapToGrid
If not null theCanvas.childrenSnapToGrid
on the component represented by this EditProxy is set to this value only while in edit mode. This allows snapToGrid functionality to be enforced during edit mode but not when live.- Returns:
- Current childrenSnapToGrid value. Default value is null
- See Also:
-
getEditMask
An editMask is created for any component placed into editMode withuseEditMask
:true.Common customization properties can be provided by
EditContext.editMaskProperties
.This component is an AutoChild named "editMask". For an overview of how to use and configure AutoChildren, see
Using AutoChildren
.- Returns:
- Current editMask value. Default value is null
- Throws:
IllegalStateException
- if the underlying component has not yet been created.
-
getHoopSelector
Hoop selector canvas used for selecting multiple components.Common customization properties can be provided by
EditContext.hoopSelectorProperties
.This component is an AutoChild named "hoopSelector". For an overview of how to use and configure AutoChildren, see
Using AutoChildren
.- Returns:
- Current hoopSelector value. Default value is null
- Throws:
IllegalStateException
- if the underlying component has not yet been created.
-
setInlineEditEvent
Event that triggers inline editing, showing theinlineEditForm
, which consists of a single text input (single or multi-line according toinlineEditMultiline
) shown in theinlineEditForm
AutoChild.The initial value in the form comes from
getInlineEditText()
and is applied viasetInlineEditText()
.Many
EditProxy
subclasses have built-in modes for inline editing.- Parameters:
inlineEditEvent
- New inlineEditEvent value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getInlineEditEvent
Event that triggers inline editing, showing theinlineEditForm
, which consists of a single text input (single or multi-line according toinlineEditMultiline
) shown in theinlineEditForm
AutoChild.The initial value in the form comes from
getInlineEditText()
and is applied viasetInlineEditText()
.Many
EditProxy
subclasses have built-in modes for inline editing.- Returns:
- Current inlineEditEvent value. Default value is null
-
getInlineEditForm
Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildren
for details.See
inlineEditEvent
.- Returns:
- null
-
getInlineEditInstructionLabel
Label AutoChild used to displayinlineEditInstructions
below the text entry area if provided. Defaults to the same styling as the systemHover
.This component is an AutoChild named "inlineEditInstructionLabel". For an overview of how to use and configure AutoChildren, see
Using AutoChildren
.- Returns:
- Current inlineEditInstructionLabel value. Default value is null
- Throws:
IllegalStateException
- if the underlying component has not yet been created.
-
setInlineEditInstructions
public EditProxy setInlineEditInstructions(String inlineEditInstructions) throws IllegalStateException Instructions that appear below the text entry area if inline editing is enabled. SeeinlineEditEvent
andinlineEditInstructionLabel
.- Parameters:
inlineEditInstructions
- New inlineEditInstructions value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created- See Also:
-
getInlineEditInstructions
Instructions that appear below the text entry area if inline editing is enabled. SeeinlineEditEvent
andinlineEditInstructionLabel
.- Returns:
- Current inlineEditInstructions value. Default value is null
- See Also:
-
setInlineEditMultiline
Whether inline editing should be single or multi-line.Single-line input appears at the control's top-left corner, multiline covers the control.
- Parameters:
inlineEditMultiline
- New inlineEditMultiline value. Default value is false- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getInlineEditMultiline
Whether inline editing should be single or multi-line.Single-line input appears at the control's top-left corner, multiline covers the control.
- Returns:
- Current inlineEditMultiline value. Default value is false
-
setInlineEditOnDrop
Should the inline editor be shown when new component is first dropped?- Parameters:
inlineEditOnDrop
- New inlineEditOnDrop value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getInlineEditOnDrop
Should the inline editor be shown when new component is first dropped?- Returns:
- Current inlineEditOnDrop value. Default value is null
-
setPersistCoordinates
Changes to all childliveObject
's position and size can be persisted to theirEditNodes
based on this attribute setting andEditContext.persistCoordinates
. This applies to both programmatic calls and user interaction (drag reposition or drag resize).The default value of
null
allowsEditContext.persistCoordinates
to control all coordinate persistence. An explicit value offalse
overrides the EditContext setting so that no children of the component save coordinates.All coordinate persisting can be disabled with
EditContext.persistCoordinates
. Additionally, all control of persistence can be deferred to each EditProxy by settingEditContext.persistCoordinates
tonull
.- Parameters:
persistCoordinates
- New persistCoordinates value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls
-
getPersistCoordinates
Changes to all childliveObject
's position and size can be persisted to theirEditNodes
based on this attribute setting andEditContext.persistCoordinates
. This applies to both programmatic calls and user interaction (drag reposition or drag resize).The default value of
null
allowsEditContext.persistCoordinates
to control all coordinate persistence. An explicit value offalse
overrides the EditContext setting so that no children of the component save coordinates.All coordinate persisting can be disabled with
EditContext.persistCoordinates
. Additionally, all control of persistence can be deferred to each EditProxy by settingEditContext.persistCoordinates
tonull
.- Returns:
- Current persistCoordinates value. Default value is null
-
setSelectedAppearance
public EditProxy setSelectedAppearance(SelectedAppearance selectedAppearance) throws IllegalStateException Appearance that is applied to selected component. Default value is determined fromEditContext.selectedAppearance
.When value is
null
the appearance is determined by:- If multiple selection is enabled, "tintMask" is used
- Otherwise, "outlineMask" is used
- Parameters:
selectedAppearance
- New selectedAppearance value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created- See Also:
-
getSelectedAppearance
Appearance that is applied to selected component. Default value is determined fromEditContext.selectedAppearance
.When value is
null
the appearance is determined by:- If multiple selection is enabled, "tintMask" is used
- Otherwise, "outlineMask" is used
- Returns:
- Current selectedAppearance value. Default value is null
- See Also:
-
setSelectedBorder
Set the CSS border to be applied to the selection outline of the selected components. Default value is determined fromEditContext.selectedBorder
. This property is used whenselectedAppearance
isoutlineMask
oroutlineEdges
.- Parameters:
selectedBorder
- New selectedBorder value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getSelectedBorder
Set the CSS border to be applied to the selection outline of the selected components. Default value is determined fromEditContext.selectedBorder
. This property is used whenselectedAppearance
isoutlineMask
oroutlineEdges
.- Returns:
- Current selectedBorder value. Default value is null
-
setSelectedLabelBackgroundColor
public EditProxy setSelectedLabelBackgroundColor(String selectedLabelBackgroundColor) throws IllegalStateException The background color for the selection outline label. The default is defined onSelectionOutline
orEditContext.selectedLabelBackgroundColor
.NOTE: A selected component label is only supported when
selectedAppearance
is "outlineEdges".- Parameters:
selectedLabelBackgroundColor
- New selectedLabelBackgroundColor value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getSelectedLabelBackgroundColor
The background color for the selection outline label. The default is defined onSelectionOutline
orEditContext.selectedLabelBackgroundColor
.NOTE: A selected component label is only supported when
selectedAppearance
is "outlineEdges".- Returns:
- Current selectedLabelBackgroundColor value. Default value is null
-
setSelectedTintColor
Mask color applied toeditMask
of selected component whenselectedAppearance
is "tintMask". Default value is determined fromEditContext.selectedTintColor
.- Parameters:
selectedTintColor
- New selectedTintColor value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created- See Also:
-
getSelectedTintColor
Mask color applied toeditMask
of selected component whenselectedAppearance
is "tintMask". Default value is determined fromEditContext.selectedTintColor
.- Returns:
- Current selectedTintColor value. Default value is null
- See Also:
-
setSelectedTintOpacity
Opacity applied toeditMask
of selected component whenselectedAppearance
is "tintMask".- Parameters:
selectedTintOpacity
- New selectedTintOpacity value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created- See Also:
-
getSelectedTintOpacity
Opacity applied toeditMask
of selected component whenselectedAppearance
is "tintMask".- Returns:
- Current selectedTintOpacity value. Default value is null
- See Also:
-
setShowDragHandle
Should drag handles or thumb be shown when this component is selected? These are shown unless this property is set tofalse
.- Parameters:
showDragHandle
- New showDragHandle value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getShowDragHandle
Should drag handles or thumb be shown when this component is selected? These are shown unless this property is set tofalse
.- Returns:
- Current showDragHandle value. Default value is null
-
setSupportsInlineEdit
Whether this EditProxy has an inline edit behavior, which allows an end user to configure a component by editing a simple text representation of its configuration.For example, when inline edit is enabled, a
SelectItem
allowsediting its valueMap
as a comma-separated string, and aListGrid
's columns and data can be edited as several lines of comma-separated headings and data values.See
inlineEditEvent
for more details and configuration options.- Parameters:
supportsInlineEdit
- New supportsInlineEdit value. Default value is true- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getSupportsInlineEdit
Whether this EditProxy has an inline edit behavior, which allows an end user to configure a component by editing a simple text representation of its configuration.For example, when inline edit is enabled, a
SelectItem
allowsediting its valueMap
as a comma-separated string, and aListGrid
's columns and data can be edited as several lines of comma-separated headings and data values.See
inlineEditEvent
for more details and configuration options.- Returns:
- Current supportsInlineEdit value. Default value is true
-
setUseCopyPasteShortcuts
public EditProxy setUseCopyPasteShortcuts(Boolean useCopyPasteShortcuts) throws IllegalStateException Whether to enable keyboard shortcuts tocopy
andpaste
editNodes
.Enabled by default if
selection of children
is also enabled.For pasting, if
EditContext.allowNestedDrops
is enabled, only one editNode is selected and it is a valid container for the contents of the clipboard, editNodes will be pasted as new children of the selected container. Otherwise, they will be pasted at the root level of theeditNodeTree
.useCopyPasteShortcuts
may only be set on the rooteditNode
within any oneeditNodeTree
.- Parameters:
useCopyPasteShortcuts
- New useCopyPasteShortcuts value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getUseCopyPasteShortcuts
Whether to enable keyboard shortcuts tocopy
andpaste
editNodes
.Enabled by default if
selection of children
is also enabled.For pasting, if
EditContext.allowNestedDrops
is enabled, only one editNode is selected and it is a valid container for the contents of the clipboard, editNodes will be pasted as new children of the selected container. Otherwise, they will be pasted at the root level of theeditNodeTree
.useCopyPasteShortcuts
may only be set on the rooteditNode
within any oneeditNodeTree
.- Returns:
- Current useCopyPasteShortcuts value. Default value is null
-
setUseEditMask
Whentrue
aneditMask
will be auto-generated and placed over the component to allow selection, positioning and resizing.If this property is not set it will enabled when added to an EditContext if its parent component has an editProxy and
autoMaskChildren
istrue
.- Parameters:
useEditMask
- New useEditMask value. Default value is null- Returns:
EditProxy
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getUseEditMask
Whentrue
aneditMask
will be auto-generated and placed over the component to allow selection, positioning and resizing.If this property is not set it will enabled when added to an EditContext if its parent component has an editProxy and
autoMaskChildren
istrue
.- Returns:
- Current useEditMask value. Default value is null
-
getInlineEditText
public void getInlineEditText()Returns the text based on the current component state to be edited inline. Called by theinlineEditForm
to obtain the starting edit value.For a canvas with
isGroup
enabled, thegroupTitle
is returned. Otherwise thecontents
is returned. -
setInlineEditText
Save the new value into the component's state. Called by theinlineEditForm
to commit the change.For a canvas with
isGroup
enabled, thegroupTitle
is updated. Otherwise thecontents
is updated.- Parameters:
newValue
- the new component state
-
showSelectedAppearance
public void showSelectedAppearance(boolean show) This method applies theselectedAppearance
to the selected component or resets it to the non-selected appearance. Override this method to create a custom appearance.- Parameters:
show
- true to show component as selected, false otherwise
-
startInlineEditing
public void startInlineEditing()Manual means of triggering inline editing. SeeInlineEditEvent
. -
startInlineEditing
Manual means of triggering inline editing. SeeInlineEditEvent
.- Parameters:
appendChar
- optional String to append to current value as editing starts
-