public class ExplorerChip extends AbstractChip implements DisplayRequestHandler, SearchRequestHandler, ExtraParamHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExplorerChip.ContentDockingListener
A chip has to implement this interface if it will be notfied as being removed, hidden or as being shown.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPLORER_CHIP_ID |
protected ItemHistoryChip |
itemHistoryChip |
static String |
KEY |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
ExplorerChip(DisplayState displayState,
Chip parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrganizer(OrganizerChip organizer) |
void |
back()
|
boolean |
canGoBack() |
boolean |
canGoForward() |
boolean |
canHandleRequest(DisplayRequest request) |
boolean |
canHandleRequest(SearchRequest request)
Implementation of SearchRequestHandler interface.
|
protected void |
changeContent(Chip chip)
Changes current content without registering the new chip in the history.
|
void |
checkValid()
Gives the child chips (toolbar & tree) the possibility to check if its objects are still valid.
|
protected void |
configureToolbar() |
protected void |
createSockets() |
boolean |
existsOrganizer(ComposedType composedType) |
void |
forward() |
Chip |
getContent() |
SocketChip |
getContentSocket()
Gets the socket for content.
|
static ExplorerChip |
getCurrentExplorerChip(DisplayState displayState) |
protected Chip |
getDefaultContent() |
String |
getDisplayParameters()
The default implementation returns
Null since this feature is not supported by default. |
String |
getFrameID() |
ItemHistoryChip |
getItemHistoryChip() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
protected GenericExplorerMenuTreeNodeContentChip |
getMenuContentChip() |
OrganizerChip |
getOrganizer(ComposedType composedType) |
OrganizerChip |
getOrganizer(ComposedType composedType,
boolean allowSubTypeOrganizer) |
protected String |
getSessionInfoTitle() |
String |
getTitle() |
Chip |
getToolbar() |
Chip |
getTree() |
void |
handleExtraParams(Map extraParams)
Handles extra parameters given via url ("open", "search",...).
|
void |
handleRequest(DisplayRequest request) |
void |
handleRequest(SearchRequest request)
Implementation of SearchRequestHandler interface.
|
void |
home() |
protected void |
notifyContentRemoval(Chip removedFromContent) |
protected void |
notifyContentShown(Chip shownAsContent) |
void |
processDisplayParameters(String parameters) |
void |
processEvents(Map<String,List<String>> events)
Handles all incoming requests for this chip.
|
void |
refresh()
Does nothing right now.
|
void |
removeOrganizer(OrganizerChip organizer) |
void |
setContent(Chip chip)
Changes the explorer content.
|
void |
setDefaultContent()
Shows the default content.
|
OrganizerChip |
setOrganizer(ComposedType forType) |
OrganizerChip |
setOrganizer(ComposedType forType,
boolean allowSubTypeOrganizer) |
void |
setToolbar(Chip chip) |
void |
setTree(Chip chip) |
boolean |
showItemHistoryChip() |
addEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String KEY
public static final String EXPLORER_CHIP_ID
protected ItemHistoryChip itemHistoryChip
public ExplorerChip(DisplayState displayState, Chip parent)
public static final ExplorerChip getCurrentExplorerChip(DisplayState displayState)
protected void createSockets()
protected void configureToolbar()
public void refresh()
refresh in class AbstractChippublic void home()
public void back()
public boolean canGoBack()
public void forward()
public boolean canGoForward()
protected GenericExplorerMenuTreeNodeContentChip getMenuContentChip()
protected Chip getDefaultContent()
public void setToolbar(Chip chip)
public Chip getToolbar()
protected void notifyContentRemoval(Chip removedFromContent)
protected void notifyContentShown(Chip shownAsContent)
protected void changeContent(Chip chip)
chip - public void setContent(Chip chip)
If previous chip is a instance of ExplorerChip.ContentDockingListener it will be notfied as being removed or hidden. If
the new chip is a instance of ExplorerChip.ContentDockingListener it is notfied as being shown.
The new chip is registered in the explorer history.
chip - public void setDefaultContent()
public Chip getContent()
public SocketChip getContentSocket()
setContent(Chip)
instead of setting the plugin directly to the socket.public void setTree(Chip chip)
public Chip getTree()
public ItemHistoryChip getItemHistoryChip()
public boolean showItemHistoryChip()
public void processEvents(Map<String,List<String>> events)
ChipprocessEvents in interface Chippublic String getJSPURI()
Chippublic void checkValid()
checkValid in interface ChipcheckValid in class AbstractChippublic String getTitle()
protected String getSessionInfoTitle()
public String getFrameID()
public OrganizerChip setOrganizer(ComposedType forType, boolean allowSubTypeOrganizer)
public OrganizerChip setOrganizer(ComposedType forType)
public OrganizerChip getOrganizer(ComposedType composedType)
public OrganizerChip getOrganizer(ComposedType composedType, boolean allowSubTypeOrganizer)
public void addOrganizer(OrganizerChip organizer)
public void removeOrganizer(OrganizerChip organizer)
public boolean existsOrganizer(ComposedType composedType)
public boolean canHandleRequest(DisplayRequest request)
canHandleRequest in interface DisplayRequestHandlerpublic void handleRequest(DisplayRequest request)
handleRequest in interface DisplayRequestHandlerpublic boolean canHandleRequest(SearchRequest request)
canHandleRequest in interface SearchRequestHandlerrequest - the SearchRequest to be handledpublic void handleRequest(SearchRequest request)
handleRequest in interface SearchRequestHandlerrequest - the SearchRequest to be handledpublic String getDisplayParameters()
AbstractChipNull since this feature is not supported by default.getDisplayParameters in interface ChipgetDisplayParameters in class AbstractChipChip.getDisplayParameters()public void processDisplayParameters(String parameters)
public void handleExtraParams(Map extraParams)
handleExtraParams in interface ExtraParamHandlerCopyright © 2017 SAP SE. All Rights Reserved.