com.sage.swt.client.widget.querypanel
Class OperatorChangedEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<FilterPanelHandler>
          extended by com.sage.swt.client.widget.querypanel.FilterPanelEvent
              extended by com.sage.swt.client.widget.querypanel.OperatorChangedEvent

public class OperatorChangedEvent
extends FilterPanelEvent


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Field Summary
 
Fields inherited from class com.sage.swt.client.widget.querypanel.FilterPanelEvent
TYPE
 
Constructor Summary
protected OperatorChangedEvent(SwtFilterPanel filterPanel, SwtFilterPanel.FilterOperator filterOperator, boolean isPreferenceStoreChange)
          The constructor
 
Method Summary
protected  void dispatch(FilterPanelHandler handler)
          
static
<S extends HasFilterPanelHandlers & com.google.gwt.event.shared.HasHandlers>
void
fire(S source, SwtFilterPanel filterPanel, SwtFilterPanel.FilterOperator filterOperator, boolean isPreferenceStoreChange)
          Fires a operator changed changed event on all registered handlers in the handler source.
 SwtFilterPanel.FilterOperator getFilterOperator()
          Returns the newly selected filter operator
 SwtFilterPanel getFilterPanel()
          Returns the filter panel that was the source of the event
 boolean isPreferenceStoreChange()
          Returns true if a preference store triggered the change
 
Methods inherited from class com.sage.swt.client.widget.querypanel.FilterPanelEvent
getAssociatedType, getType
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperatorChangedEvent

protected OperatorChangedEvent(SwtFilterPanel filterPanel,
                               SwtFilterPanel.FilterOperator filterOperator,
                               boolean isPreferenceStoreChange)
The constructor

Parameters:
filterPanel - the filter panel that is the source of the event
filterOperator - the newly selected filter operator
isPreferenceStoreChange - true is a Preference Store triggered this change
Method Detail

fire

public static <S extends HasFilterPanelHandlers & com.google.gwt.event.shared.HasHandlers> void fire(S source,
                                                                                                    SwtFilterPanel filterPanel,
                                                                                                    SwtFilterPanel.FilterOperator filterOperator,
                                                                                                    boolean isPreferenceStoreChange)
Fires a operator changed changed event on all registered handlers in the handler source.

Type Parameters:
S - The handler source
Parameters:
source - the source of the handlers
filterPanel - the filter panel that is the source of the event
filterOperator - the newly selected filter operator
isPreferenceStoreChange - true is a Preference Store triggered this change

getFilterPanel

public SwtFilterPanel getFilterPanel()
Returns the filter panel that was the source of the event

Returns:
the filter panel that was the source of the event

getFilterOperator

public SwtFilterPanel.FilterOperator getFilterOperator()
Returns the newly selected filter operator

Returns:
the newly selected filter operator

isPreferenceStoreChange

public boolean isPreferenceStoreChange()
Returns true if a preference store triggered the change

Returns:
true if a preference store triggered the change

dispatch

protected void dispatch(FilterPanelHandler handler)

Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<FilterPanelHandler>


Copyright © 2011 Sage Software, Inc. All rights reserved.