com.itmill.toolkit.terminal.gwt.client.ui
Class IFilterSelect

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 com.itmill.toolkit.terminal.gwt.client.ui.IFilterSelect
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.FocusListener, com.google.gwt.user.client.ui.KeyboardListener, Focusable, Paintable, Field

public class IFilterSelect
extends com.google.gwt.user.client.ui.Composite
implements Paintable, Field, com.google.gwt.user.client.ui.KeyboardListener, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.FocusListener, Focusable

TODO needs major refactoring (to be extensible etc)


Nested Class Summary
 class IFilterSelect.FilterSelectSuggestion
           
 class IFilterSelect.SuggestionMenu
           
 class IFilterSelect.SuggestionPopup
           
 
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
static int FILTERINGMODE_CONTAINS
           
static int FILTERINGMODE_OFF
           
static int FILTERINGMODE_STARTSWITH
           
static int PAGELENTH
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.google.gwt.user.client.ui.KeyboardListener
KEY_ALT, KEY_BACKSPACE, KEY_CTRL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_SHIFT, KEY_TAB, KEY_UP, MODIFIER_ALT, MODIFIER_CTRL, MODIFIER_META, MODIFIER_SHIFT
 
Constructor Summary
IFilterSelect()
           
 
Method Summary
 void filterOptions(int page)
           
 void filterOptions(int page, String filter)
           
 void focus()
          Sets focus to this widget.
 boolean hasNextPage()
           
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          Listener for popupopener
 void onFocus(com.google.gwt.user.client.ui.Widget sender)
           
 void onKeyDown(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
           
 void onKeyPress(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
           
 void onKeyUp(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
           
 void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
           
 void onSuggestionSelected(IFilterSelect.FilterSelectSuggestion suggestion)
           
 void setHeight(String height)
           
 void setWidth(String width)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
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
doAttachChildren, doDetachChildren, getParent, onLoad, onUnload, removeFromParent
 
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, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILTERINGMODE_OFF

public static final int FILTERINGMODE_OFF
See Also:
Constant Field Values

FILTERINGMODE_STARTSWITH

public static final int FILTERINGMODE_STARTSWITH
See Also:
Constant Field Values

FILTERINGMODE_CONTAINS

public static final int FILTERINGMODE_CONTAINS
See Also:
Constant Field Values

PAGELENTH

public static final int PAGELENTH
See Also:
Constant Field Values
Constructor Detail

IFilterSelect

public IFilterSelect()
Method Detail

hasNextPage

public boolean hasNextPage()

filterOptions

public void filterOptions(int page)

filterOptions

public void filterOptions(int page,
                          String filter)

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)
Specified by:
updateFromUIDL in interface Paintable

onSuggestionSelected

public void onSuggestionSelected(IFilterSelect.FilterSelectSuggestion suggestion)

onKeyDown

public void onKeyDown(com.google.gwt.user.client.ui.Widget sender,
                      char keyCode,
                      int modifiers)
Specified by:
onKeyDown in interface com.google.gwt.user.client.ui.KeyboardListener

onKeyPress

public void onKeyPress(com.google.gwt.user.client.ui.Widget sender,
                       char keyCode,
                       int modifiers)
Specified by:
onKeyPress in interface com.google.gwt.user.client.ui.KeyboardListener

onKeyUp

public void onKeyUp(com.google.gwt.user.client.ui.Widget sender,
                    char keyCode,
                    int modifiers)
Specified by:
onKeyUp in interface com.google.gwt.user.client.ui.KeyboardListener

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)
Listener for popupopener

Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener

onFocus

public void onFocus(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onFocus in interface com.google.gwt.user.client.ui.FocusListener

onLostFocus

public void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onLostFocus in interface com.google.gwt.user.client.ui.FocusListener

focus

public void focus()
Description copied from interface: Focusable
Sets focus to this widget.

Specified by:
focus in interface Focusable

setWidth

public void setWidth(String width)
Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject

setHeight

public void setHeight(String height)
Overrides:
setHeight in class com.google.gwt.user.client.ui.UIObject


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.