public class PickItemsDialog
extends com.google.gwt.user.client.ui.PopupPanel
PickedItemEvent on the HandlerManager instance you pass to this widget.com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Modifier and Type | Field and Description |
|---|---|
static int |
ARROW_DOWN |
static int |
ARROW_UP |
static int |
DELETE |
static int |
ENTER |
static int |
ESCAPE |
static int |
TAB |
| Constructor and Description |
|---|
PickItemsDialog(char triggerChar,
ArrayList<ItemBean> beans,
com.google.gwt.event.shared.HandlerManager eventBus,
int widthInPixel) |
PickItemsDialog(char triggerChar,
com.google.gwt.event.shared.HandlerManager eventBus,
int widthInPixel,
String context)
Use this constructor for users, the list of the users is automatically loaded from the VRE passed in the context param
Note that you must declare the pick item widget servlet in this case
|
| Modifier and Type | Method and Description |
|---|---|
void |
onKeyPress(int cursorPos,
int keyCode,
int x,
int y,
String currText)
called for each onKeyPress event from the user
|
void |
onKeyUp(int keyCode)
called for each onKeyUp event from the user
|
void |
select(int displayIndex)
select the user in the model and in the view
|
void |
showSuggestions(String query) |
void |
withPhoto()
use if you have want to show a photo for the item or not, remember to provide it in
ItemBean instances |
void |
withTriggerCharIncluded()
use to include the trigger char in search if your suggestions start with the trigger char (e.g.
|
addAutoHidePartner, addCloseHandler, addPopupListener, center, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, show, showRelativeToadd, getWidget, iterator, remove, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final int ARROW_UP
public static final int ARROW_DOWN
public static final int DELETE
public static final int ENTER
public static final int ESCAPE
public static final int TAB
public PickItemsDialog(char triggerChar,
ArrayList<ItemBean> beans,
com.google.gwt.event.shared.HandlerManager eventBus,
int widthInPixel)
public PickItemsDialog(char triggerChar,
com.google.gwt.event.shared.HandlerManager eventBus,
int widthInPixel,
String context)
triggerChar - the 'single char' used to trigger the items list show, e.g. '@', '#' ....eventBus - the event bus on where the widget will fire the selected user eventwidthInPixel - the desired width (grater than 199 pixel)context - the context (VRE scope e.g. /gcube/devNext/NextNext) from where to load the users and groupspublic void withPhoto()
ItemBean instancespublic void withTriggerCharIncluded()
public void onKeyPress(int cursorPos,
int keyCode,
int x,
int y,
String currText)
keyCode - the event keycodex - y - currText - public void onKeyUp(int keyCode)
keyCode - the event keycodepublic void showSuggestions(String query)
public void select(int displayIndex)
displayIndex - Copyright © 2020. All Rights Reserved.