close()
Close the editor when calling the close function on this field
<Any> getValue()
Returned the previously stored value
Returns:
<Any>
The value of the subfield
initEvents()
Adds the events for the editor and color animations
onCancelEditor(e)
Close the editor on cancel (cancel button, blur event or escape key)
Parameters:
e <Event>
- The original event (click, blur or keydown)
onKeyDown(e)
Handle the tabulation key to close the editor
Parameters:
e <Event>
- The original keydown event
onKeyUp(e)
Handle some keys events to close the editor
Parameters:
e <Event>
- The original keyup event
onOkEditor()
Validate the editor (ok button, enter key or tabulation key)
onVisuMouseOut(e)
Start the color animation when hovering the field
Parameters:
e <Event>
- The original mouseout event
onVisuMouseOver(e)
Set the color when hovering the field
Parameters:
e <Event>
- The original mouseover event
openEditor()
Display the editor
renderComponent()
Override renderComponent to create 2 divs: the visualization one, and the edit in place form
renderEditor()
Render the editor
renderVisuDiv()
Create the div that will contain the visualization of the value
setOptions(options)
Set the default values of the options
Parameters:
options <Object>
- Options object (inputEx inputParams) as passed to the constructor
setValue(value[,sendUpdatedEvt])
Set the value and update the display
Parameters:
value <Any>
- The value to set
sendUpdatedEvt <boolean>
optional
- (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)