org.drools.guvnor.client.packages
Class PackageBuilderWidget

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.PackageBuilderWidget
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

public class PackageBuilderWidget
extends com.google.gwt.user.client.ui.Composite

This is the widget for building packages, validating etc. Visually decorates or wraps a rule editor widget with buttons for this purpose.


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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
PackageBuilderWidget(PackageConfigData conf, ClientFactory clientFactory)
           
 
Method Summary
static void doBuildSource(String uuid, String name)
          Actually build the source, and display it.
static String getDownloadLink(PackageConfigData conf)
          Get a download link for the binary package.
static void showBuilderErrors(BuilderResult results, com.google.gwt.user.client.ui.Panel buildResults, ClientFactory clientFactory)
          This is called in the unhappy event of there being errors.
static void showSnapshotDialog(String packageName, com.google.gwt.user.client.Command refreshCmd)
          This will display a dialog for creating a snapshot.
static void showSource(String content, String name)
          Popup the view source dialog, showing the given content.
 
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
 

Constructor Detail

PackageBuilderWidget

public PackageBuilderWidget(PackageConfigData conf,
                            ClientFactory clientFactory)
Method Detail

doBuildSource

public static void doBuildSource(String uuid,
                                 String name)
Actually build the source, and display it.


showSource

public static void showSource(String content,
                              String name)
Popup the view source dialog, showing the given content.


getDownloadLink

public static String getDownloadLink(PackageConfigData conf)
Get a download link for the binary package.


showBuilderErrors

public static void showBuilderErrors(BuilderResult results,
                                     com.google.gwt.user.client.ui.Panel buildResults,
                                     ClientFactory clientFactory)
This is called in the unhappy event of there being errors.


showSnapshotDialog

public static void showSnapshotDialog(String packageName,
                                      com.google.gwt.user.client.Command refreshCmd)
This will display a dialog for creating a snapshot.



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