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

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.modeldriven.ui.CEPWindowOperatorsDropdown
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<OperatorSelection>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class CEPWindowOperatorsDropdown
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.HasValueChangeHandlers<OperatorSelection>

Drop-down Widget for Operators including supplementary controls for CEP operator parameters


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  CEPWindow window
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
CEPWindowOperatorsDropdown(List<String> operators, HasCEPWindow hcw)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<OperatorSelection> handler)
          Allow parent Widgets to register for events when the operator changes
 int getSelectedIndex()
          Gets the index of the currently-selected item.
 String getValue(int index)
          Gets the value associated with the item at a given index.
 
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, 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, 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

window

protected CEPWindow window
Constructor Detail

CEPWindowOperatorsDropdown

public CEPWindowOperatorsDropdown(List<String> operators,
                                  HasCEPWindow hcw)
Method Detail

getSelectedIndex

public int getSelectedIndex()
Gets the index of the currently-selected item.

Returns:

getValue

public String getValue(int index)
Gets the value associated with the item at a given index.

Parameters:
index -
Returns:

addValueChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<OperatorSelection> handler)
Allow parent Widgets to register for events when the operator changes

Specified by:
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<OperatorSelection>


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.