org.drools.guvnor.client.modeldriven.ui
Class AbstractRuleModellerSelectorPopup

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.modeldriven.ui.AbstractRuleModellerSelectorPopup
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.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.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>
Direct Known Subclasses:
RuleModellerActionSelectorPopup, RuleModellerConditionSelectorPopup

public abstract class AbstractRuleModellerSelectorPopup
extends Popup

Base class for Pop-ups used by RuleModeller


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  boolean bOnlyShowDSLConditions
           
protected  com.google.gwt.user.client.ui.ListBox choices
           
protected  com.google.gwt.user.client.ui.SimplePanel choicesPanel
           
protected  Map<String,com.google.gwt.user.client.Command> cmds
           
protected  SuggestionCompletionEngine completions
           
protected static Constants constants
           
protected  FormStyleLayout layoutPanel
           
protected  int MIN_HEIGHT
           
protected  int MIN_WIDTH
           
protected  RuleModel model
           
protected  Integer position
           
protected  com.google.gwt.user.client.ui.ListBox positionCbo
           
protected  RuleModeller ruleModeller
           
protected  String SECTION_SEPARATOR
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AbstractRuleModellerSelectorPopup(RuleModel model, RuleModeller ruleModeller, String packageName, Integer position)
           
 
Method Summary
protected  int getChoicesHeight()
          Height of pop-up, 1/2 of the client height or MIN_HEIGHT
protected  int getChoicesWidth()
          Width of pop-up, 1/4 of the client width or MIN_WIDTH
protected abstract  String getPopupTitle()
          Get a title for the pop-up
protected  void selectSomething()
          Executed when a selection has been made.
 
Methods inherited from class org.drools.guvnor.client.common.Popup
getContent, setAfterCloseEvent, setAfterShow, setPopupPosition, show
 
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, 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.event.shared.HasHandlers
fireEvent
 

Field Detail

constants

protected static final Constants constants

SECTION_SEPARATOR

protected String SECTION_SEPARATOR

MIN_WIDTH

protected int MIN_WIDTH

MIN_HEIGHT

protected int MIN_HEIGHT

bOnlyShowDSLConditions

protected boolean bOnlyShowDSLConditions

model

protected RuleModel model

ruleModeller

protected RuleModeller ruleModeller

completions

protected SuggestionCompletionEngine completions

cmds

protected Map<String,com.google.gwt.user.client.Command> cmds

position

protected Integer position

choicesPanel

protected com.google.gwt.user.client.ui.SimplePanel choicesPanel

layoutPanel

protected FormStyleLayout layoutPanel

positionCbo

protected com.google.gwt.user.client.ui.ListBox positionCbo

choices

protected com.google.gwt.user.client.ui.ListBox choices
Constructor Detail

AbstractRuleModellerSelectorPopup

public AbstractRuleModellerSelectorPopup(RuleModel model,
                                         RuleModeller ruleModeller,
                                         String packageName,
                                         Integer position)
Method Detail

getPopupTitle

protected abstract String getPopupTitle()
Get a title for the pop-up

Returns:

selectSomething

protected void selectSomething()
Executed when a selection has been made. Refreshes the underlying RuleModeller widget


getChoicesWidth

protected int getChoicesWidth()
Width of pop-up, 1/4 of the client width or MIN_WIDTH

Returns:

getChoicesHeight

protected int getChoicesHeight()
Height of pop-up, 1/2 of the client height or MIN_HEIGHT

Returns:


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