Class AbstractRuleModellerSelectorPopup
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.ComplexPanel
-
- org.gwtbootstrap3.client.ui.base.ComplexWidget
-
- org.gwtbootstrap3.client.ui.html.Div
-
- org.gwtbootstrap3.client.ui.Modal
-
- org.uberfire.ext.widgets.common.client.common.popups.BaseModal
-
- org.drools.workbench.screens.guided.rule.client.editor.AbstractRuleModellerSelectorPopup
-
- 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.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>,org.gwtbootstrap3.client.ui.base.HasId,org.gwtbootstrap3.client.ui.base.HasInlineStyle,org.gwtbootstrap3.client.ui.base.HasPull,org.gwtbootstrap3.client.ui.base.HasResponsiveness,org.gwtbootstrap3.client.ui.IsClosable
- Direct Known Subclasses:
RuleModellerActionSelectorPopup,RuleModellerConditionSelectorPopup
public abstract class AbstractRuleModellerSelectorPopup extends org.uberfire.ext.widgets.common.client.common.popups.BaseModalBase class for Pop-ups used by RuleModeller
-
-
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 Modifier and Type Field Description protected org.gwtbootstrap3.client.ui.ListBoxchoicesprotected com.google.gwt.user.client.ui.SimplePanelchoicesPanelprotected Map<String,com.google.gwt.user.client.Command>cmdsprotected org.uberfire.ext.widgets.common.client.common.FormStyleLayoutlayoutPanelprotected intMIN_HEIGHTprotected intMIN_WIDTHprotected org.drools.workbench.models.datamodel.rule.RuleModelmodelprotected booleanonlyShowDSLStatementsprotected org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracleoracleprotected Integerpositionprotected org.gwtbootstrap3.client.ui.ListBoxpositionCboprotected RuleModellerruleModellerstatic StringSECTION_SEPARATOR
-
Constructor Summary
Constructors Constructor Description AbstractRuleModellerSelectorPopup(org.drools.workbench.models.datamodel.rule.RuleModel model, RuleModeller ruleModeller, Integer position, org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleananyItemsMatch(Predicate<String> predicate, String[] items)Returns true if any items match the filter.protected intgetChoicesHeight()Height of pop-up, 1/2 of the client height or MIN_HEIGHTprotected intgetChoicesWidth()Width of pop-up, 1/4 of the client width or MIN_WIDTHprotected abstract com.google.gwt.user.client.ui.WidgetgetContent()Get content for the pop-upprotected abstract StringgetPopupTitle()Get a title for the pop-upprotected voidselectSomething()Executed when a selection has been made.-
Methods inherited from class org.uberfire.ext.widgets.common.client.common.popups.BaseModal
getEnterDomHandler, handleDefaultAction, handleDefaultAction, setBody, setFocus, show
-
Methods inherited from class org.gwtbootstrap3.client.ui.Modal
add, addHiddenHandler, addHideHandler, addShowHandler, addShownHandler, hide, isClosable, onHidden, onHide, onLoad, onShow, onShown, onUnload, setClosable, setDataBackdrop, setDataKeyboard, setFade, setHideOtherModals, setRemoveOnHide, setSize, setTitle, setWidth, toggle
-
Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget
getId, getPull, insert, insert, remove, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
-
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, 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, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
SECTION_SEPARATOR
public static final String SECTION_SEPARATOR
- See Also:
- Constant Field Values
-
MIN_WIDTH
protected int MIN_WIDTH
-
MIN_HEIGHT
protected int MIN_HEIGHT
-
onlyShowDSLStatements
protected boolean onlyShowDSLStatements
-
model
protected final org.drools.workbench.models.datamodel.rule.RuleModel model
-
ruleModeller
protected final RuleModeller ruleModeller
-
oracle
protected final org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle
-
position
protected Integer position
-
choicesPanel
protected final com.google.gwt.user.client.ui.SimplePanel choicesPanel
-
layoutPanel
protected final org.uberfire.ext.widgets.common.client.common.FormStyleLayout layoutPanel
-
positionCbo
protected final org.gwtbootstrap3.client.ui.ListBox positionCbo
-
choices
protected org.gwtbootstrap3.client.ui.ListBox choices
-
-
Constructor Detail
-
AbstractRuleModellerSelectorPopup
public AbstractRuleModellerSelectorPopup(org.drools.workbench.models.datamodel.rule.RuleModel model, RuleModeller ruleModeller, Integer position, org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle)
-
-
Method Detail
-
getPopupTitle
protected abstract String getPopupTitle()
Get a title for the pop-up- Returns:
-
getContent
protected abstract com.google.gwt.user.client.ui.Widget getContent()
Get content 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:
-
-