public class IconViewChip extends AbstractChip implements AjaxRequestHandler
IconViewModel the actual
data model can be defined freely. The chip keeps track of the selected elements, provides the hierarchy path and
allows edit and open actions upon each element.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AJAX_COUNT |
static java.lang.String |
AJAX_INPUT |
static java.lang.String |
AJAX_QUERY |
static java.lang.String |
AJAX_RESULT |
static java.lang.String |
COPY |
static java.lang.String |
EDIT |
static java.lang.String |
FOLDER_ICON |
static java.lang.String |
GOTO |
static java.lang.String |
PATH |
static java.lang.String |
REMOVE |
static java.lang.String |
UNAVAILABLE_ICON |
static java.lang.String |
UNKNOWN_ICON |
static java.lang.String |
UP |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
IconViewChip(DisplayState displayState,
Chip parent,
IconViewModel model)
Creates a new IconViewChip.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPathToHistory(java.util.List path) |
protected void |
addToPath(java.lang.Object element)
Expands the path by the selected element.
|
void |
back()
Goes back one element of the current path.
|
void |
backTo(java.lang.Object element)
Goes back to the specified element.
|
boolean |
canGoBack() |
boolean |
canGoForward() |
protected void |
cutPathTo(java.lang.Object element)
Cuts the selection path down to the specified element.
|
void |
forward() |
AutoCompleterComponent |
getAutoCompleter() |
java.lang.Object |
getCurrentElement() |
java.util.List |
getElementChips() |
java.util.List |
getElements()
Returns all curretly displayable elements. Please call this method instead of
IconViewModel.getElements(Object) directly - otherwise actions will not work! |
java.lang.String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
java.util.List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
IconViewModel |
getModel() |
protected java.util.List |
getNextPathInHistory() |
java.util.List |
getPath() |
java.lang.String |
getPathString() |
protected java.util.List |
getPreviousPathInHistory() |
IconChip |
getUpFolderIconChip() |
void |
gotoPath(java.lang.String path) |
protected boolean |
hasNextPathInHistory() |
protected boolean |
hasPreviousPathInHistory() |
protected java.util.List |
matchPaths(java.lang.Object parent,
java.util.List tokens,
int level) |
protected java.util.List |
matchPaths(java.lang.String pathQuery) |
protected void |
notifyPathChanged() |
void |
open(java.lang.Object element)
Opens a selected element.
|
void |
processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
java.io.PrintWriter out,
java.util.Map requestParameters) |
protected boolean |
processContextMenuEvents(java.util.Map allEvents) |
void |
processEvents(java.util.Map events)
Handles all incoming requests for this chip.
|
protected void |
removeNextFromHistory() |
void |
setPath(java.util.List newPath)
Changes the current path completely.
|
protected java.util.List |
tokenizePath(java.lang.String pathStr) |
protected java.util.List |
translatePathString(java.lang.String pathStr) |
protected void |
trimHistoryToSize() |
protected java.lang.String |
trimToSize(java.lang.String path) |
void |
up() |
addEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final java.lang.String UNAVAILABLE_ICON
public static final java.lang.String UNKNOWN_ICON
public static final java.lang.String FOLDER_ICON
public static final java.lang.String EDIT
public static final java.lang.String REMOVE
public static final java.lang.String COPY
public static final java.lang.String GOTO
public static final java.lang.String PATH
public static final java.lang.String UP
public static final java.lang.String AJAX_INPUT
public static final java.lang.String AJAX_RESULT
public static final java.lang.String AJAX_QUERY
public static final java.lang.String AJAX_COUNT
public IconViewChip(DisplayState displayState, Chip parent, IconViewModel model)
displayState - the current display stateparent - the parent chipmodel - the data model for this view chippublic IconViewModel getModel()
public java.util.List getPath()
public java.lang.String getPathString()
protected java.util.List tokenizePath(java.lang.String pathStr)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected java.util.List translatePathString(java.lang.String pathStr)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected java.util.List matchPaths(java.lang.String pathQuery)
protected java.util.List matchPaths(java.lang.Object parent,
java.util.List tokens,
int level)
public java.lang.Object getCurrentElement()
public java.util.List getElements()
IconViewModel.getElements(Object) directly - otherwise actions will not work!public IconChip getUpFolderIconChip()
public java.util.List getElementChips()
protected java.util.List getPreviousPathInHistory()
protected boolean hasPreviousPathInHistory()
protected java.util.List getNextPathInHistory()
protected boolean hasNextPathInHistory()
protected void addPathToHistory(java.util.List path)
protected void removeNextFromHistory()
protected void trimHistoryToSize()
protected void addToPath(java.lang.Object element)
element - the selected element.protected void notifyPathChanged()
protected void cutPathTo(java.lang.Object element)
element - the element to go back to; if null the path is cleared completelypublic void processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
java.io.PrintWriter out,
java.util.Map requestParameters)
processAjaxEvents in interface AjaxRequestHandlerpublic AutoCompleterComponent getAutoCompleter()
protected java.lang.String trimToSize(java.lang.String path)
public void gotoPath(java.lang.String path)
public void up()
public void processEvents(java.util.Map events)
ChipprocessEvents in interface Chippublic java.util.List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class AbstractChipprotected boolean processContextMenuEvents(java.util.Map allEvents)
public java.lang.String getJSPURI()
ChipgetJSPURI in interface ChipChip.getJSPURI()public void open(java.lang.Object element)
element - the selected elementpublic void backTo(java.lang.Object element)
element - the (path)element to go back topublic void back()
public void forward()
public boolean canGoBack()
true if there is at least one element opened.public boolean canGoForward()
public void setPath(java.util.List newPath)
newPath - Copyright © 2017 SAP SE. All Rights Reserved.