org.drools.guvnor.client.packages
Class AssetAttachmentFileWidget

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.Composite
              extended by org.drools.guvnor.client.packages.AssetAttachmentFileWidget
All Implemented Interfaces:
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.IsWidget, EditorWidget
Direct Known Subclasses:
DecisionTableXLSWidget, DefaultContentUploadEditor, ModelAttachmentFileWidget, POJOModelUploadWidget, PropertiesWidget, RuleFlowUploadWidget, XmlFileWidget

public abstract class AssetAttachmentFileWidget
extends com.google.gwt.user.client.ui.Composite
implements EditorWidget

This wraps a file uploader utility for model packages. Model packages are jar files.


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
 
Field Summary
protected  RuleAsset asset
           
protected  FormStyleLayout layout
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AssetAttachmentFileWidget(RuleAsset asset, RuleViewer viewer, ClientFactory clientFactory, com.google.gwt.event.shared.EventBus eventBus)
           
 
Method Summary
 void addDescription(com.google.gwt.user.client.ui.Widget d)
           
abstract  com.google.gwt.resources.client.ImageResource getIcon()
           
abstract  String getOverallStyleName()
          return the overall style name to use.
protected  void initWidgets(String uuid, String formName)
           
protected  void showUploadingBusy()
           
protected  void submitUpload()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, 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.user.client.ui.IsWidget
asWidget
 

Field Detail

layout

protected FormStyleLayout layout

asset

protected RuleAsset asset
Constructor Detail

AssetAttachmentFileWidget

public AssetAttachmentFileWidget(RuleAsset asset,
                                 RuleViewer viewer,
                                 ClientFactory clientFactory,
                                 com.google.gwt.event.shared.EventBus eventBus)
Method Detail

initWidgets

protected void initWidgets(String uuid,
                           String formName)

getIcon

public abstract com.google.gwt.resources.client.ImageResource getIcon()
Returns:
The path to the icon to use.

getOverallStyleName

public abstract String getOverallStyleName()
return the overall style name to use.


submitUpload

protected void submitUpload()

showUploadingBusy

protected void showUploadingBusy()

addDescription

public void addDescription(com.google.gwt.user.client.ui.Widget d)


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