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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets 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.Element
Returns the widget element.protected String
getValue()
Returns the widget value.protected boolean
isActive()
Returns if the widget is active.protected void
Call when the widget was added into the window document.protected void
setActive
(boolean active) Sets the widget active.protected void
Sets the widget value.protected void
Sets the widget value.protected void
setWidgetInfo
(String label, String help) Sets the widget label and help text.boolean
static NativeEditWidget
wrapWidget
(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:
true
if the widget is active
-
onAttachWidget
Call when the widget was added into the window document. -
setActive
Sets the widget active.- Parameters:
active
-true
to activate the widget
-
setValue
Sets the widget value.- Parameters:
value
- the value
-
setValue
Sets the widget value.- Parameters:
value
- the valuefireEvent
-true
to fire the value change event
-
setWidgetInfo
Sets the widget label and help text.- Parameters:
label
- the widget label texthelp
- the widget help text
-