Class NativeEditWidget
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.ade.contenteditor.widgetregistry.client.NativeEditWidget
Overlay object for native java script widgets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the display direction for popups used by this widget using the 'getDisplayingDirection' JavaScript method (or returns "none" if that method isn't available).protected com.google.gwt.dom.client.ElementReturns the widget element.protected StringgetValue()Returns the widget value.protected booleanisActive()Returns if the widget is active.protected voidCall when the widget was added into the window document.protected voidsetActive(boolean active) Sets the widget active.protected voidSets the widget value.protected voidSets the widget value.protected voidsetWidgetInfo(String label, String help) Sets the widget label and help text.booleanstatic NativeEditWidgetwrapWidget(I_CmsEditWidget widget, boolean isFormWidget) Wraps a GWT edit widget instance to be used from within another GWT module.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
NativeEditWidget
protected NativeEditWidget()Constructor.
-
-
Method Details
-
wrapWidget
Wraps a GWT edit widget instance to be used from within another GWT module.- Parameters:
widget- the widget to wrapisFormWidget- in case of a form widget- Returns:
- the wrapping native java script object
-
shouldSetDefaultWhenDisabled
-
getDisplayingDirection
Gets the display direction for popups used by this widget using the 'getDisplayingDirection' JavaScript method (or returns "none" if that method isn't available).- Returns:
- the direction in which this widget displays popups ('above', 'below' or 'none')
-
getElement
Returns the widget element.- Returns:
- the widget element
-
getValue
Returns the widget value.- Returns:
- the widget value
-
isActive
Returns if the widget is active.- Returns:
trueif the widget is active
-
onAttachWidget
Call when the widget was added into the window document. -
setActive
Sets the widget active.- Parameters:
active-trueto activate the widget
-
setValue
Sets the widget value.- Parameters:
value- the value
-
setValue
Sets the widget value.- Parameters:
value- the valuefireEvent-trueto fire the value change event
-
setWidgetInfo
Sets the widget label and help text.- Parameters:
label- the widget label texthelp- the widget help text
-