com.sencha.gxt.widget.core.client.grid.filters
Class RangeMenu<M,V extends java.lang.Number>

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.sencha.gxt.widget.core.client.Component
              extended by com.sencha.gxt.widget.core.client.container.Container
                  extended by com.sencha.gxt.widget.core.client.container.InsertContainer
                      extended by com.sencha.gxt.widget.core.client.menu.Menu
                          extended by com.sencha.gxt.widget.core.client.grid.filters.RangeMenu<M,V>
Type Parameters:
M - the model type
V - the numeric type of the NumericFilter.
All Implemented Interfaces:
HasAttachHandlers, HasBeforeSelectionHandlers<Item>, HasResizeHandlers, HasSelectionHandlers<Item>, HasHandlers, EventListener, HasEnabled, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, InsertPanel, InsertPanel.ForIsWidget, IsWidget, AddEvent.HasAddHandlers, BeforeAddEvent.HasBeforeAddHandlers, BeforeHideEvent.HasBeforeHideHandlers, BeforeRemoveEvent.HasBeforeRemoveHandlers, BeforeShowContextMenuEvent.HasBeforeShowContextMenuHandler, BeforeShowEvent.HasBeforeShowHandlers, BlurEvent.HasBlurHandlers, ContainerHandler.HasContainerHandlers, DisableEvent.HasDisableHandlers, EnableEvent.HasEnableHandlers, FocusEvent.HasFocusHandlers, HideEvent.HasHideHandlers, MoveEvent.HasMoveHandlers, RemoveEvent.HasRemoveHandlers, ShowContextMenuEvent.HasShowContextMenuHandler, ShowEvent.HasShowHandlers, HasFocusSupport, HasItemId, java.lang.Iterable<Widget>

public class RangeMenu<M,V extends java.lang.Number>
extends Menu

A menu of numeric range items for use with a NumericFilter.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.menu.Menu
Menu.MenuAppearance
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
InsertPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
RangeMenu(NumericFilter<M,V> filter)
          Creates a range menu for use with the specified numeric filter.
 
Method Summary
 java.util.List<com.sencha.gxt.widget.core.client.grid.filters.RangeMenu.RangeItem> getRangeItems()
          Returns the menu's range items.
 java.util.List<FilterConfig> getValue()
          Returns the menu's value.
 void setEmptyText(java.lang.String emptyText)
          Sets the text to display in the menu's range fields if they do not contain a value.
 void setFieldWidth(int width)
          Sets the width of this range menu.
 void setRangeItems(java.util.List<com.sencha.gxt.widget.core.client.grid.filters.RangeMenu.RangeItem> rangeItems)
          Sets the menu's range items (defaults to EQUAL, GREATERTHAN, LESSTHAN).
 void setValue(java.util.List<FilterConfig> values)
          Sets the menu's values
 
Methods inherited from class com.sencha.gxt.widget.core.client.menu.Menu
addBeforeSelectionHandler, addSelectionHandler, getDefaultAlign, getMaxHeight, getMinWidth, getParentItem, getSubMenuAlign, hide, hide, isConstrainViewport, isEnableScrolling, isFocusOnShow, isVisible, onBrowserEvent, setActiveItem, setConstrainViewport, setDefaultAlign, setEnableScrolling, setFocusOnShow, setMaxHeight, setMinWidth, setSubMenuAlign, show, show, show, showAt
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.InsertContainer
insert, insert
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.Container
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove
 
Methods inherited from class com.sencha.gxt.widget.core.client.Component
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disableEvents, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, getToolTip, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Constructor Detail

RangeMenu

public RangeMenu(NumericFilter<M,V> filter)
Creates a range menu for use with the specified numeric filter.

Parameters:
filter - the filter that uses this range menu
Method Detail

getRangeItems

public java.util.List<com.sencha.gxt.widget.core.client.grid.filters.RangeMenu.RangeItem> getRangeItems()
Returns the menu's range items.

Returns:
the range items

getValue

public java.util.List<FilterConfig> getValue()
Returns the menu's value.

Returns:
the value

setEmptyText

public void setEmptyText(java.lang.String emptyText)
Sets the text to display in the menu's range fields if they do not contain a value.

Parameters:
emptyText - the text to display if the fields are empty

setFieldWidth

public void setFieldWidth(int width)
Sets the width of this range menu.

Parameters:
width - the menu width

setRangeItems

public void setRangeItems(java.util.List<com.sencha.gxt.widget.core.client.grid.filters.RangeMenu.RangeItem> rangeItems)
Sets the menu's range items (defaults to EQUAL, GREATERTHAN, LESSTHAN).

Parameters:
rangeItems - the range items

setValue

public void setValue(java.util.List<FilterConfig> values)
Sets the menu's values

Parameters:
values - the values


Copyright © 2012. All Rights Reserved.