|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance rs.sol.soloist.server.builtindomains.common.ObjectOfClass rs.sol.soloist.server.guiconfiguration.construction.GUIComponent rs.sol.soloist.server.guiconfiguration.components.GUISearchResultComponent
public class GUISearchResultComponent
A widget that renders a collection of tuples returned as the
result of a search initiated by the user. This class is meant to
be sub-classed in order to provide implementation of
newQueryBuilder()
method. The search is performed using
the query specified by this widget's query builder.
The query's input parameters are specified by putting parameter-holding widgets (text boxes, combo boxes, suggest boxes...) into the special type of panel which must be bound to this widget.
This widget performs the query after it receives event via its
search
input pin (ipSearch()
method).
Parameters, results, and selection of resulting tuples can be controlled
dynamically using this widget's pins obtainable by using following methods:
ipSelection()
, opSelection()
,
ipSelectAll()
, ipClearParameters()
,
ipReset()
, and ipClearContents()
.
One or more of the resulting items (rows) can be selected by the user.
Nested Class Summary | |
---|---|
static class |
GUISearchResultComponent.ClassicSearch
Classic search provider. |
static class |
GUISearchResultComponent.FQPropertyNames
Deprecated. Not for public use. |
static interface |
GUISearchResultComponent.ISearch
Generic search provider interface. |
static class |
GUISearchResultComponent.OQLSearch
Search based on OQL query. |
static interface |
GUISearchResultComponent.OrderByAnother
|
static interface |
GUISearchResultComponent.Parameter
|
static class |
GUISearchResultComponent.PROPERTIES
Deprecated. Not for public use. |
static class |
GUISearchResultComponent.QueryBuilderSearch
Search based on QueryBuilder. |
static class |
GUISearchResultComponent.QueryDefinitionSearch
Search based on QueryDefinition. |
static class |
GUISearchResultComponent.QueryResultSearch
Search based on IQueryResult. |
static interface |
GUISearchResultComponent.Result
|
Field Summary | |
---|---|
IAttributeValue<Text> |
abortSearch
Deprecated. Not for public use. |
static IClass |
CLASSIFIER
UML class reference |
IAttributeValue<Text> |
clearContents
Deprecated. Not for public use. |
IAttributeValue<Text> |
clearParameters
Deprecated. Not for public use. |
IAttributeValue<Boolean> |
doCountResults
Deprecated. Not for public use. |
IAttributeValue<Boolean> |
doInitialSearch
Deprecated. Not for public use. |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Boolean> |
isMultiselect
Deprecated. Not for public use. |
static org.apache.log4j.Logger |
logger
Deprecated. Not for public use. |
IAttributeValue<Integer> |
pageSize
Deprecated. Not for public use. |
IAttributeValue<Text> |
reset
Deprecated. Not for public use. |
IAttributeValue<Text> |
search
Deprecated. Not for public use. |
IAttributeValue<Text> |
searchClassName
Deprecated. Not for public use. |
IAttributeValue<Text> |
selectAll
Deprecated. Not for public use. |
IAttributeValue<Text> |
selection
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent |
---|
addStyle, context, description, enabled, init, inputBindings, layoutData, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible |
Constructor Summary | |
---|---|
GUISearchResultComponent()
|
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
rs.sol.soloist.client.common.requests.QueryExecutionResult |
executeQuery(java.util.Map<java.lang.String,java.io.Serializable> parameterDescrs,
int offset,
int pageSize,
java.lang.String sortBy,
boolean descending,
java.lang.String queryRequestId,
boolean doCountResults)
|
boolean |
getDoCountResults()
Returns whether the result count will be shown by this widget. |
boolean |
getDoInitialSearch()
Returns whether this widget will perform search immediately after it gets initialized. |
boolean |
getMultiselect()
Returns whether this widget would allow multiple selection of search results. |
int |
getPageSize()
Returns the size of the search result page. |
java.lang.String |
getSearchClassName()
Returns the search class name. |
java.lang.Object |
handle(rs.sol.soloist.client.common.requests.Request request)
Handles single request from the client (browser) and returns an appropriate response. |
ISlot<?> |
ipAbortSearch()
Returns the abortSearch input pin; when event occurs,
the currently executing search will be aborted on the server. |
ISlot<?> |
ipClearContents()
Returns the clearContents input pin; when event occurs,
all items in the search result page will be cleared. |
ISlot<?> |
ipClearParameters()
Returns the clearParameters input pin; when event occurs,
all collected parameter values will be cleared. |
ISlot<?> |
ipReset()
Returns the reset input pin; when event occurs,
all selected items in the search result page will be
unselected. |
ISlot<?> |
ipSearch()
Returns the search input pin; when event occurs,
the search will be performed with the current collection of
parameter values. |
ISlot<?> |
ipSelectAll()
Returns the selectAll input pin; when event occurs,
all items in the search result page will be selected. |
ISlot<?> |
ipSelection()
Returns the selection input pin; when event occurs,
the object from the binding message will be used to select it in
the search results if it exist. |
ISlot<?> |
opSelection()
Returns the selection output pin; each time
user clicks on (selects) the item in the search result page,
the binding message with the collection of selected objects will be
provided on this pin. |
void |
setDoCountResults(boolean doCountResults)
Sets whether the result count will be shown by this widget. |
void |
setDoInitialSearch(boolean diInitialSearch)
Sets whether this widget will perform search immediately after it gets initialized. |
void |
setMultiselect(boolean multiselect)
Sets whether this widget will allow multiple selection of search results. |
void |
setPageSize(int pageSize)
Sets the size of the search result page. |
void |
setQueryBuilderClass(java.lang.Class<? extends rs.sol.soloist.server.uml.queries.builder.QueryBuilder> queryBuilderClass)
Sets searchClassName to the name of the given class. |
void |
setSearchClass(java.lang.Class<? extends GUISearchResultComponent.ISearch> searchClass)
Sets searchClassName to the name of the given class. |
void |
setSearchClassName(java.lang.String searchClassName)
Sets the search class name. |
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance |
---|
destroy, equals, getAssociationEndInstance, getAssociationEndInstances, getAttributeValue, getAttributeValues, getMyClass, getMyID, getSlot, getSlot, getSlots, getUMLClass, hashCode, isMarkedAsDeleted, toString |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance |
---|
accept, accept, exists, getAssociationEndInstance, getAssociationEndInstance, getAssociationEndInstance, getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isEqualTo, makeClone, markAsDeleted |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance |
---|
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isKindOf, isModelElement, isRTElement |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IClassifierInstance |
---|
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement |
---|
getMElement |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement |
---|
isKindOf, isModelElement, isRTElement |
Field Detail |
---|
@Deprecated public final IAttributeValue<Integer> pageSize
@Deprecated public final IAttributeValue<Boolean> doInitialSearch
@Deprecated public final IAttributeValue<Boolean> doCountResults
If this is false it is expected that the search will perform faster since COUNT queries can take considerable time in case of a complex query.
@Deprecated public final IAttributeValue<Boolean> isMultiselect
@Deprecated public final IAttributeValue<Text> selection
@Deprecated public final IAttributeValue<Text> selectAll
@Deprecated public final IAttributeValue<Text> reset
@Deprecated public final IAttributeValue<Text> search
@Deprecated public final IAttributeValue<Text> clearParameters
@Deprecated public final IAttributeValue<Text> clearContents
@Deprecated public final IAttributeValue<Text> abortSearch
@Deprecated public final IAttributeValue<Text> searchClassName
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
@Deprecated public static final org.apache.log4j.Logger logger
Constructor Detail |
---|
public GUISearchResultComponent()
Method Detail |
---|
public void setSearchClass(java.lang.Class<? extends GUISearchResultComponent.ISearch> searchClass)
searchClassName
to the name of the given class.
searchClass
- public void setQueryBuilderClass(java.lang.Class<? extends rs.sol.soloist.server.uml.queries.builder.QueryBuilder> queryBuilderClass)
searchClassName
to the name of the given class.
queryBuilderClass
- public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUIComponent
public java.lang.Object handle(rs.sol.soloist.client.common.requests.Request request)
GUIComponent
handle
in class GUIComponent
request
- a Request
from client deserialized and ready
to be handeled
Object
representing the server's
response to a requestpublic rs.sol.soloist.client.common.requests.QueryExecutionResult executeQuery(java.util.Map<java.lang.String,java.io.Serializable> parameterDescrs, int offset, int pageSize, java.lang.String sortBy, boolean descending, java.lang.String queryRequestId, boolean doCountResults)
public ISlot<?> ipSelection()
selection
input pin; when event occurs,
the object from the binding message will be used to select it in
the search results if it exist.
selection
input pinGUIComponentBinding
public ISlot<?> ipSelectAll()
selectAll
input pin; when event occurs,
all items in the search result page will be selected.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
selectAll
input pinGUIComponentBinding
public ISlot<?> ipReset()
reset
input pin; when event occurs,
all selected items in the search result page will be
unselected.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
reset
input pinGUIComponentBinding
public ISlot<?> ipSearch()
search
input pin; when event occurs,
the search will be performed with the current collection of
parameter values.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
search
input pinGUIComponentBinding
public ISlot<?> ipClearParameters()
clearParameters
input pin; when event occurs,
all collected parameter values will be cleared.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
clearParameters
input pinGUIComponentBinding
public ISlot<?> ipClearContents()
clearContents
input pin; when event occurs,
all items in the search result page will be cleared.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
clearContents
input pinGUIComponentBinding
public ISlot<?> ipAbortSearch()
abortSearch
input pin; when event occurs,
the currently executing search will be aborted on the server.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
abortSearch
input pinGUIComponentBinding
public ISlot<?> opSelection()
selection
output pin; each time
user clicks on (selects) the item in the search result page,
the binding message with the collection of selected objects will be
provided on this pin.
selection
output pinGUIComponentBinding
public java.lang.String getSearchClassName()
setSearchClassName(String)
public void setSearchClassName(java.lang.String searchClassName)
searchClassName
- public boolean getDoInitialSearch()
setDoInitialSearch(boolean)
public void setDoInitialSearch(boolean diInitialSearch)
diInitialSearch
- whether this widget will perform search
immediately after it gets initializedpublic boolean getDoCountResults()
setDoCountResults(boolean)
public void setDoCountResults(boolean doCountResults)
doCountResults
- whether the result count will be
shown by this widgetpublic boolean getMultiselect()
setMultiselect(boolean)
public void setMultiselect(boolean multiselect)
multiselect
- whether this widget will allow multiple
selection of search resultspublic int getPageSize()
setPageSize(int)
public void setPageSize(int pageSize)
pageSize
- the size of the search result page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |