public abstract class AbstractGenericConditionalSearchChip extends ListChip implements ToolbarProvider, ChipEventListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractGenericConditionalSearchChip.SearchPerformer
Internal use!
|
| Modifier and Type | Field and Description |
|---|---|
static String |
FLEXIBLESEARCH |
static String |
GENERICSEARCH |
static String |
INCLUDE_SUBTYPES |
static String |
RESET_CONDITIONS |
static String |
SAVEDQUERY |
static String |
SEARCH |
static String |
SELECT_ATTRIBUTE |
static String |
SET_TYPE |
static String |
URI |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AbstractGenericConditionalSearchChip(DisplayState displayState,
TypedChip parent)
Creates new GenericConditionsSearchParametersChip
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(FlexibleConditionChip chip) |
protected void |
addDefaultConditions()
Adds the defaultconditions to the conditionlist according to the configuration for the current type.
|
void |
addListEntryForDescriptor(AttributeDescriptor descriptor)
Adds a list entry (a condition chip) for the given attribute descriptor.
|
void |
addTypeChangeListener(ComposedTypeChangeListener listener)
Adds a
ComposedTypeChangeListener to this chip which will be notified if the search type has been changed. |
boolean |
canOpenType() |
void |
checkValid()
Gives the chip the possibility to check if its objects are still valid.
|
boolean |
containsCondition(String attributeName)
Returns true if there is already a conditionchip for the given attributename.
|
AbstractToolbarChip |
createToolbar() |
protected void |
executeSearch() |
abstract void |
flexibleSearch() |
GenericConditionChip |
getCondition(String attributeName)
Returns the first found condition chip for the given attributename or null if there is no such condition chip.
|
String |
getCurrentTypeCode() |
String |
getItemNotValidErrorMessage()
Returns a localized error message in case one or more list entries are not valid.
|
ComposedType |
getItemType() |
String |
getJSPURI()
Returns the jsp uri to use for this chip.
|
protected String |
getProposedUniqueName() |
SavedQuery |
getSavedQuery()
Returns the currently selected SavedQuery for this search chip.
|
protected SearchNode |
getSearchNode() |
ComposedType |
getSearchType() |
String |
getTitle() |
AbstractToolbarChip |
getToolbar() |
Collection<ComposedTypeChangeListener> |
getTypeChangeListeners() |
protected TypedChip |
getTypedChip() |
List |
getTypeEntries()
Returns a list of
TypeEntry instances |
boolean |
hasEmptySearchConditionInAView()
If in a search chip for a ViewType a search condition is empty this method returns true.
If all search conditions are set the return value is false and in the jsp the XPButton will not be disabled. |
boolean |
hasSubtypes()
If a Type has Subtypes this method returns
true. |
boolean |
isFlexibleSearchMode() |
boolean |
isIncludeSubtypes() |
boolean |
isMultipleSelectionAllowed()
This is to differentiate between multiple chip selection or single chip selection.
|
boolean |
isNewSearch() |
void |
notify(ChipEvent event) |
protected void |
notifyTypeChange(ComposedTypeChangeEvent typeChangeEvent)
Notifies all registered
ComposedTypeChangeListeners of the type change using
the given ComposedTypeChangeEvent. |
void |
processEvents(Map<String,List<String>> events)
Handles all incoming requests for this chip.
|
protected void |
resetConditions() |
abstract void |
search() |
void |
selectSearch(SavedQuery savedQuery) |
void |
setFlexibleSearchMode(boolean flexibleSearchMode) |
void |
setIncludeSubtypes(boolean include) |
void |
setSavedQuery(SavedQuery savedQuery) |
void |
setSearchParameters(GenericSearchContainer container) |
void |
setSearchType(ComposedType type) |
void |
setTitle(String headline) |
void |
setToolbar(AbstractToolbarChip toolbar) |
addListEntry, addSelectedListEntries, addSelectedListEntry, clearListEntries, clearSelectedListEntries, getListEntries, getListEntryCount, getPosition, getSelectedListEntries, getSelectedListEntryCount, hasFancyRows, isListEntrySelected, moveDown, moveUp, removeListEntry, setFancyRows, setMultipleSelection, setMultipleSelectionAllowed, sort, sortaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, 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, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getMenuEntries, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String URI
public static final String SET_TYPE
public static final String SEARCH
public static final String SELECT_ATTRIBUTE
public static final String FLEXIBLESEARCH
public static final String GENERICSEARCH
public static final String RESET_CONDITIONS
public static final String SAVEDQUERY
public static final String INCLUDE_SUBTYPES
public AbstractGenericConditionalSearchChip(DisplayState displayState, TypedChip parent)
public void checkValid()
AbstractChipcheckValid in interface ChipcheckValid in class ListChippublic abstract void search()
public abstract void flexibleSearch()
public ComposedType getSearchType()
public void setSearchType(ComposedType type)
public void processEvents(Map<String,List<String>> events)
processEvents in interface ChipprocessEvents in class ListChippublic void notify(ChipEvent event)
notify in interface ChipEventListenerprotected void executeSearch()
public String getCurrentTypeCode()
public void addCondition(FlexibleConditionChip chip)
public boolean containsCondition(String attributeName)
public GenericConditionChip getCondition(String attributeName)
protected void addDefaultConditions()
protected SearchNode getSearchNode()
public void addListEntryForDescriptor(AttributeDescriptor descriptor)
descriptor - public void setSearchParameters(GenericSearchContainer container)
public ComposedType getItemType()
public String getItemNotValidErrorMessage()
getItemNotValidErrorMessage in class ListChippublic boolean isMultipleSelectionAllowed()
ListChipisMultipleSelectionAllowed in class ListChippublic boolean isNewSearch()
public String getTitle()
public void setTitle(String headline)
protected void resetConditions()
protected TypedChip getTypedChip()
public AbstractToolbarChip getToolbar()
getToolbar in interface ToolbarProviderpublic void setToolbar(AbstractToolbarChip toolbar)
public AbstractToolbarChip createToolbar()
createToolbar in interface ToolbarProviderpublic boolean canOpenType()
public String getJSPURI()
public void selectSearch(SavedQuery savedQuery)
public SavedQuery getSavedQuery()
public void setSavedQuery(SavedQuery savedQuery)
public boolean isFlexibleSearchMode()
public void setFlexibleSearchMode(boolean flexibleSearchMode)
public boolean isIncludeSubtypes()
public void setIncludeSubtypes(boolean include)
include - if true subtypes will be searched, toopublic boolean hasEmptySearchConditionInAView()
public boolean hasSubtypes()
true. False otherwise.protected String getProposedUniqueName()
getProposedUniqueName in class AbstractChippublic Collection<ComposedTypeChangeListener> getTypeChangeListeners()
ComposedTypeChangeListeners which have been registered to
this chippublic void addTypeChangeListener(ComposedTypeChangeListener listener)
ComposedTypeChangeListener to this chip which will be notified if the search type has been changed.listener - the ComposedTypeChangeListener to register with this chipprotected void notifyTypeChange(ComposedTypeChangeEvent typeChangeEvent)
ComposedTypeChangeListeners of the type change using
the given ComposedTypeChangeEvent.typeChangeEvent - the event which is associated with the recent type changeCopyright © 2017 SAP SE. All Rights Reserved.