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 String |
AJAX_COUNT |
static String |
AJAX_INPUT |
static String |
AJAX_QUERY |
static String |
AJAX_RESULT |
static String |
COPY |
static String |
EDIT |
static String |
FOLDER_ICON |
static String |
GOTO |
static String |
PATH |
static String |
REMOVE |
static String |
UNAVAILABLE_ICON |
static String |
UNKNOWN_ICON |
static 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(List path) |
protected void |
addToPath(Object element)
Expands the path by the selected element.
|
void |
back()
Goes back one element of the current path.
|
void |
backTo(Object element)
Goes back to the specified element.
|
boolean |
canGoBack() |
boolean |
canGoForward() |
protected void |
cutPathTo(Object element)
Cuts the selection path down to the specified element.
|
void |
forward() |
AutoCompleterComponent |
getAutoCompleter() |
Object |
getCurrentElement() |
List |
getElementChips() |
List |
getElements()
Returns all curretly displayable elements. Please call this method instead of
IconViewModel.getElements(Object) directly - otherwise actions will not work! |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
IconViewModel |
getModel() |
protected List |
getNextPathInHistory() |
List |
getPath() |
String |
getPathString() |
protected List |
getPreviousPathInHistory() |
IconChip |
getUpFolderIconChip() |
void |
gotoPath(String path) |
protected boolean |
hasNextPathInHistory() |
protected boolean |
hasPreviousPathInHistory() |
protected List |
matchPaths(Object parent,
List tokens,
int level) |
protected List |
matchPaths(String pathQuery) |
protected void |
notifyPathChanged() |
void |
open(Object element)
Opens a selected element.
|
void |
processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
PrintWriter out,
Map requestParameters) |
protected boolean |
processContextMenuEvents(Map allEvents) |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
protected void |
removeNextFromHistory() |
void |
setPath(List newPath)
Changes the current path completely.
|
protected List |
tokenizePath(String pathStr) |
protected List |
translatePathString(String pathStr) |
protected void |
trimHistoryToSize() |
protected String |
trimToSize(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 String UNAVAILABLE_ICON
public static final String UNKNOWN_ICON
public static final String FOLDER_ICON
public static final String EDIT
public static final String REMOVE
public static final String COPY
public static final String GOTO
public static final String PATH
public static final String UP
public static final String AJAX_INPUT
public static final String AJAX_RESULT
public static final String AJAX_QUERY
public static final 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 List getPath()
public String getPathString()
protected List tokenizePath(String pathStr) throws IllegalArgumentException
IllegalArgumentExceptionprotected List translatePathString(String pathStr) throws IllegalArgumentException
IllegalArgumentExceptionpublic Object getCurrentElement()
public List getElements()
IconViewModel.getElements(Object) directly - otherwise actions will not work!public IconChip getUpFolderIconChip()
public List getElementChips()
protected List getPreviousPathInHistory()
protected boolean hasPreviousPathInHistory()
protected List getNextPathInHistory()
protected boolean hasNextPathInHistory()
protected void addPathToHistory(List path)
protected void removeNextFromHistory()
protected void trimHistoryToSize()
protected void addToPath(Object element)
element - the selected element.protected void notifyPathChanged()
protected void cutPathTo(Object element)
element - the element to go back to; if null the path is cleared completelypublic void processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
PrintWriter out,
Map requestParameters)
processAjaxEvents in interface AjaxRequestHandlerpublic AutoCompleterComponent getAutoCompleter()
public void gotoPath(String path)
public void up()
public void processEvents(Map events)
ChipprocessEvents in interface Chippublic List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class AbstractChipprotected boolean processContextMenuEvents(Map allEvents)
public String getJSPURI()
ChipgetJSPURI in interface ChipChip.getJSPURI()public void open(Object element)
element - the selected elementpublic void backTo(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(List newPath)
newPath - Copyright © 2017 SAP SE. All Rights Reserved.