org.drools.guvnor.client.decisiontable
Class AbstractBRLColumnViewImpl<T,C extends BaseColumn>

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.PopupPanel
                      extended by org.drools.guvnor.client.common.Popup
                          extended by org.drools.guvnor.client.decisiontable.AbstractBRLColumnViewImpl<T,C>
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, 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.SourcesPopupEvents, Iterable<com.google.gwt.user.client.ui.Widget>, TemplateVariablesChangedEvent.Handler, RuleModelEditor, EditorWidget
Direct Known Subclasses:
BRLActionColumnViewImpl, BRLConditionColumnViewImpl

public abstract class AbstractBRLColumnViewImpl<T,C extends BaseColumn>
extends Popup
implements RuleModelEditor, TemplateVariablesChangedEvent.Handler

An editor for BRL Column definitions


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
 
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
protected  ClientFactory clientFactory
           
protected  BRLColumn<T,C> editingCol
           
protected  com.google.gwt.event.shared.EventBus eventBus
           
protected  boolean isNew
           
protected  boolean isReadOnly
           
protected  int MIN_HEIGHT
           
protected  int MIN_WIDTH
           
protected  GuidedDecisionTable52 model
           
protected  BRLColumn<T,C> originalCol
           
protected  RuleModel ruleModel
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AbstractBRLColumnViewImpl(SuggestionCompletionEngine sce, GuidedDecisionTable52 model, boolean isNew, Asset asset, BRLColumn<T,C> column, ClientFactory clientFactory, com.google.gwt.event.shared.EventBus eventBus)
           
 
Method Summary
protected abstract  BRLColumn<T,C> cloneBRLColumn(BRLColumn<T,C> col)
           
protected abstract  List<C> convertInterpolationVariables(Map<InterpolationVariable,Integer> ivs)
           
protected abstract  void doInsertColumn()
           
protected abstract  void doUpdateColumn()
           
 com.google.gwt.user.client.ui.Widget getContent()
           
protected  int getPopupHeight()
          Height of pop-up, 75% of the client height or MIN_HEIGHT
protected abstract  RuleModel getRuleModel(BRLColumn<T,C> column)
           
 RuleModeller getRuleModeller()
           
protected abstract  RuleModellerConfiguration getRuleModellerConfiguration()
           
protected abstract  boolean isHeaderUnique(String header)
           
 void onTemplateVariablesChanged(TemplateVariablesChangedEvent event)
           
 void show()
           
 
Methods inherited from class org.drools.guvnor.client.common.Popup
getClientHeight, setAfterCloseEvent, setAfterShow, setPopupPosition
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, remove, 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, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, 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.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

MIN_WIDTH

protected int MIN_WIDTH

MIN_HEIGHT

protected int MIN_HEIGHT

isReadOnly

protected final boolean isReadOnly

model

protected final GuidedDecisionTable52 model

clientFactory

protected final ClientFactory clientFactory

eventBus

protected final com.google.gwt.event.shared.EventBus eventBus

isNew

protected final boolean isNew

editingCol

protected final BRLColumn<T,C extends BaseColumn> editingCol

originalCol

protected final BRLColumn<T,C extends BaseColumn> originalCol

ruleModel

protected final RuleModel ruleModel
Constructor Detail

AbstractBRLColumnViewImpl

public AbstractBRLColumnViewImpl(SuggestionCompletionEngine sce,
                                 GuidedDecisionTable52 model,
                                 boolean isNew,
                                 Asset asset,
                                 BRLColumn<T,C> column,
                                 ClientFactory clientFactory,
                                 com.google.gwt.event.shared.EventBus eventBus)
Method Detail

show

public void show()
Overrides:
show in class Popup

isHeaderUnique

protected abstract boolean isHeaderUnique(String header)

getRuleModel

protected abstract RuleModel getRuleModel(BRLColumn<T,C> column)

getRuleModellerConfiguration

protected abstract RuleModellerConfiguration getRuleModellerConfiguration()

doInsertColumn

protected abstract void doInsertColumn()

doUpdateColumn

protected abstract void doUpdateColumn()

convertInterpolationVariables

protected abstract List<C> convertInterpolationVariables(Map<InterpolationVariable,Integer> ivs)

cloneBRLColumn

protected abstract BRLColumn<T,C> cloneBRLColumn(BRLColumn<T,C> col)

getRuleModeller

public RuleModeller getRuleModeller()
Specified by:
getRuleModeller in interface RuleModelEditor

getContent

public com.google.gwt.user.client.ui.Widget getContent()
Specified by:
getContent in class Popup

getPopupHeight

protected int getPopupHeight()
Height of pop-up, 75% of the client height or MIN_HEIGHT

Returns:

onTemplateVariablesChanged

public void onTemplateVariablesChanged(TemplateVariablesChangedEvent event)
Specified by:
onTemplateVariablesChanged in interface TemplateVariablesChangedEvent.Handler


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