org.jbpm.model.formbuilder.client.form.items
Class ServerTransformationFormItem

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.google.gwt.user.client.ui.FocusPanel
                      extended by org.jbpm.model.formapi.client.form.FBFormItem
                          extended by org.jbpm.model.formbuilder.client.form.items.ServerTransformationFormItem
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasAllDragAndDropHandlers, com.google.gwt.event.dom.client.HasAllFocusHandlers, com.google.gwt.event.dom.client.HasAllGestureHandlers, com.google.gwt.event.dom.client.HasAllKeyHandlers, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasAllTouchHandlers, com.google.gwt.event.dom.client.HasBlurHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers, com.google.gwt.event.dom.client.HasDragEndHandlers, com.google.gwt.event.dom.client.HasDragEnterHandlers, com.google.gwt.event.dom.client.HasDragHandlers, com.google.gwt.event.dom.client.HasDragLeaveHandlers, com.google.gwt.event.dom.client.HasDragOverHandlers, com.google.gwt.event.dom.client.HasDragStartHandlers, com.google.gwt.event.dom.client.HasDropHandlers, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.dom.client.HasGestureChangeHandlers, com.google.gwt.event.dom.client.HasGestureEndHandlers, com.google.gwt.event.dom.client.HasGestureStartHandlers, com.google.gwt.event.dom.client.HasKeyDownHandlers, com.google.gwt.event.dom.client.HasKeyPressHandlers, com.google.gwt.event.dom.client.HasKeyUpHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, com.google.gwt.event.dom.client.HasTouchCancelHandlers, com.google.gwt.event.dom.client.HasTouchEndHandlers, com.google.gwt.event.dom.client.HasTouchMoveHandlers, com.google.gwt.event.dom.client.HasTouchStartHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasFocus, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesFocusEvents, com.google.gwt.user.client.ui.SourcesKeyboardEvents, com.google.gwt.user.client.ui.SourcesMouseEvents, com.google.gwt.user.client.ui.SourcesMouseWheelEvents, Iterable<com.google.gwt.user.client.ui.Widget>

public class ServerTransformationFormItem
extends FBFormItem

server-side form item. Represents a piece of server script


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ServerTransformationFormItem()
           
ServerTransformationFormItem(List<FBFormEffect> formEffects)
           
 
Method Summary
 com.google.gwt.user.client.ui.Widget cloneDisplay(Map<String,Object> data)
          Similar to FBFormItem.cloneItem(), but only clones the underlying UI GWT component.
 FBFormItem cloneItem()
          This methods is similar to Object.clone(), but returns a proper type and forces implementation
 FBInplaceEditor createInplaceEditor()
          If you wish that on clicking your UI component, it becomes replaced by a custom editor, this is where you must create it
 void eval0(String script)
           
 Map<String,Object> getFormItemPropertiesMap()
          This method must be defined to tell outside default editors what properties this UI component has.
 FormItemRepresentation getRepresentation()
          This method is used to create a POJO representation of the UI component that any java service can understand.
 String getScriptContent()
           
 void populate(FormItemRepresentation rep)
          This method must be overriden by each FBFormItem subclass to repopulate its properties from an outside POJO representation.
 void saveValues(Map<String,Object> asPropertiesMap)
          This method must be defined so that outside default editor can tell this UI component the new value of its properties.
 void setScriptContent(String value)
           
 
Methods inherited from class org.jbpm.model.formapi.client.form.FBFormItem
addEffect, cloneItem, createItem, extractBoolean, extractDouble, extractInt, extractString, fireSelectionEvent, getDesiredX, getDesiredY, getEventActions, getExternal, getFormEffects, getHeight, getInput, getInputValue, getOutput, getRepresentation, getValidations, getWidth, hasEffectOfType, isAlreadyEditing, onBrowserEvent, populateActions, removeEffect, removeEffectOfType, reset, setAlreadyEditing, setDesiredPosition, setDesiredX, setDesiredY, setEffects, setEventActions, setExternal, setHeight, setInput, setOutput, setValidations, setWidgetHeight, setWidgetWidth, setWidth
 
Methods inherited from class com.google.gwt.user.client.ui.FocusPanel
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getTabIndex, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setFocus, setTabIndex
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

ServerTransformationFormItem

public ServerTransformationFormItem()

ServerTransformationFormItem

public ServerTransformationFormItem(List<FBFormEffect> formEffects)
Method Detail

getFormItemPropertiesMap

public Map<String,Object> getFormItemPropertiesMap()
Description copied from class: FBFormItem
This method must be defined to tell outside default editors what properties this UI component has. Outside editors will then provide functionality to edit these properties and invoke FBFormItem.saveValues(Map)

Specified by:
getFormItemPropertiesMap in class FBFormItem
Returns:
a map of the properties of this UI component

saveValues

public void saveValues(Map<String,Object> asPropertiesMap)
Description copied from class: FBFormItem
This method must be defined so that outside default editor can tell this UI component the new value of its properties. It's the entire responsibility of this UI component to repopulate itself from these properties

Specified by:
saveValues in class FBFormItem
Parameters:
asPropertiesMap - a map of the proeprties to set on this UI component

getRepresentation

public FormItemRepresentation getRepresentation()
Description copied from class: FBFormItem
This method is used to create a POJO representation of the UI component that any java service can understand.

Specified by:
getRepresentation in class FBFormItem
Returns:
a POJO representation of this UI component

populate

public void populate(FormItemRepresentation rep)
              throws FormBuilderException
Description copied from class: FBFormItem
This method must be overriden by each FBFormItem subclass to repopulate its properties from an outside POJO representation.

Overrides:
populate in class FBFormItem
Parameters:
rep - the POJO representation of this UI component. It's the responsibility of each FBFormItem instance to validate the POJO representation for itself, call the superclass method, and define what and how properties of its UI component should be updated.
Throws:
FormBuilderException - in case of error or invalid content

cloneItem

public FBFormItem cloneItem()
Description copied from class: FBFormItem
This methods is similar to Object.clone(), but returns a proper type and forces implementation

Specified by:
cloneItem in class FBFormItem
Returns:
a clone of this very object

cloneDisplay

public com.google.gwt.user.client.ui.Widget cloneDisplay(Map<String,Object> data)
Description copied from class: FBFormItem
Similar to FBFormItem.cloneItem(), but only clones the underlying UI GWT component.

Specified by:
cloneDisplay in class FBFormItem
Returns:

eval0

public void eval0(String script)

createInplaceEditor

public FBInplaceEditor createInplaceEditor()
Description copied from class: FBFormItem
If you wish that on clicking your UI component, it becomes replaced by a custom editor, this is where you must create it

Overrides:
createInplaceEditor in class FBFormItem
Returns:
A custom subclass of FBInplaceEditor to replace component and be rechanged after lost of focus. Default returns null

setScriptContent

public void setScriptContent(String value)

getScriptContent

public String getScriptContent()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.