public class JsonSchemaPolicyConfigurationForm extends com.google.gwt.user.client.ui.FlowPanel implements IPolicyConfigurationForm
IPolicyConfigurationForm that gets used when the
policy definition came from a plugin and has an associated JSON Schema. The
JSON Schema specification can be found here: http://json-schema.org/com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
JsonSchemaPolicyConfigurationForm()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_cleanup()
Native code to shut down the JSON Editor.
|
String |
_getEditorValue() |
void |
_initEditor(String jsonSchema,
String holderId)
Native code to initialize the JSON Editor.
|
void |
_setEditorValue(String value) |
com.google.gwt.event.shared.HandlerRegistration |
addIsFormValidHandler(IsFormValidEvent.Handler handler)
Adds a handler to the widget.
|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler) |
protected com.google.gwt.core.client.JavaScriptObject |
getEditor() |
String |
getValue() |
void |
init(String jsonSchema)
Initialize the form with the given JSON Schema.
|
protected void |
onInvalid() |
protected void |
onValid() |
protected void |
setEditor(com.google.gwt.core.client.JavaScriptObject editor) |
void |
setValue(String value) |
void |
setValue(String value,
boolean fireEvents) |
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic JsonSchemaPolicyConfigurationForm()
public void init(String jsonSchema)
jsonSchema - public String getValue()
public void setValue(String value)
public void setValue(String value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<String>HasValue.setValue(java.lang.Object, boolean)public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>HasValueChangeHandlers.addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler)public com.google.gwt.event.shared.HandlerRegistration addIsFormValidHandler(IsFormValidEvent.Handler handler)
IsFormValidEvent.HasIsFormValidHandlersprotected void onValid()
protected void onInvalid()
public final void _initEditor(String jsonSchema, String holderId)
jsonSchema - holderId - public final String _getEditorValue()
public final void _setEditorValue(String value)
public final void _cleanup()
protected com.google.gwt.core.client.JavaScriptObject getEditor()
protected void setEditor(com.google.gwt.core.client.JavaScriptObject editor)
editor - the editor to setCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.