|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrs.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.nonvisualcompoments.GUINonVisualComponent
rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUICollectionFilter
public class GUICollectionFilter
An invisible widget that filters values from the collection. A
collection of values can either be on input
input pin
(ipInput()
method) of this widget, or if setPrpertyFQName(String)
method is called during widget construction, the collection is obtained after
fetching objects linked to the first object on this widget's
input
pin over the property specified in that method.
For each object from the collection, the filtering is done by comparing
values set by setValues(List)
method with object's slot values
for properties specified by setFilterByProperties(String...)
method.
Those objects that satisfy filetering conditions are provided on
output
output pin (opOutput()
method).
Nested Class Summary | |
---|---|
static class |
GUICollectionFilter.FQPropertyNames
Deprecated. Not for public use. |
static class |
GUICollectionFilter.PROPERTIES
Deprecated. Not for public use. |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
IAttributeValue<Text> |
filterByProperties
Deprecated. Not for public use. |
IAttributeValue<FilteringLogic> |
filteringLogic
Deprecated. Not for public use. |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Text> |
input
Deprecated. Not for public use. |
IAttributeValue<Text> |
output
Deprecated. Not for public use. |
IAttributeValue<Text> |
propertyFQName
Deprecated. Not for public use. |
IAttributeValue<Text> |
refresh
Deprecated. Not for public use. |
IAssociationEndInstance<rs.sol.soloist.server.builtindomains.common.ClassifierInstanceDescriptor> |
values
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent |
---|
addStyle, context, description, enabled, init, inputBindings, layoutData, logger, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible |
Constructor Summary | |
---|---|
GUICollectionFilter()
|
Method Summary | |
---|---|
void |
addValue(IClassifierInstance instance)
Adds the value used for filtering. |
void |
clearValues()
Clears all values used for filtering. |
void |
constructor()
The domain-specific constructor of the Classifier. |
static GUICollectionFilter |
create(GUIContainerComponent parent)
Returns new GUICollectionFilter and assigns it to its parent widget. |
static GUICollectionFilter |
create(GUIContainerComponent parent,
java.lang.String[] filterByProperties)
Returns new GUICollectionFilter , configures it
with the given properties, and assigns it to its parent widget. |
java.lang.String[] |
getFilterByProperties()
Returns the property names used for filtering. |
FilteringLogic |
getFilteringLogic()
Returns the filtering logic used by this widget. |
java.lang.String |
getPropertyFQName()
Returns the property name used for navigating the corresponding slot. |
java.util.List<IClassifierInstance> |
getValues()
Returns the values used for filtering. |
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<?> |
ipInput()
Returns the input input pin; when event occurs,
this widget will filter the collection of elements
and provide the result on the output output pin
(opOutput() method). |
ISlot<?> |
ipRefresh()
Returns the refresh input pin; when event occurs,
this widget will re-filter the collection of elements
and provide the result on the output output pin
(opOutput() method). |
ISlot<?> |
opOutput()
Returns the output output pin; when event occurs
on either input input pin (ipInput() method)
or refresh input pin (ipRefresh() method) this
widget will filter the collection of elements and provide the result
on this pin. |
void |
removeValue(IClassifierInstance instance)
Removes the value used for filtering. |
void |
setFilterByProperties(java.lang.String... values)
Sets the property names to be used for filtering. |
void |
setFilteringLogic(FilteringLogic logic)
Sets the filtering logic used by this widget. |
void |
setPrpertyFQName(java.lang.String fqName)
Sets the property name used for navigating the corresponding slot. |
void |
setValues(java.util.List<IClassifierInstance> instances)
Sets the values used for filtering. |
void |
validate()
Validates a configuration settings of this widget. |
Methods inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUINonVisualComponent |
---|
setCellAlignment, setCellSize, setCellStyle, setCenter, setDirectionAndSize, setLeftRightWidth, setRowColumn, setRowColumn, setSize, setTopBottomHeight, setXY |
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<Text> input
@Deprecated public final IAttributeValue<Text> output
@Deprecated public final IAttributeValue<Text> refresh
@Deprecated public final IAttributeValue<Text> propertyFQName
@Deprecated public final IAttributeValue<Text> filterByProperties
@Deprecated public final IAttributeValue<FilteringLogic> filteringLogic
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
@Deprecated public final IAssociationEndInstance<rs.sol.soloist.server.builtindomains.common.ClassifierInstanceDescriptor> values
Constructor Detail |
---|
public GUICollectionFilter()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUINonVisualComponent
public static GUICollectionFilter create(GUIContainerComponent parent)
GUICollectionFilter
and assigns it to its parent widget.
parent
- the parent GUIContainerComponent
widget
GUICollectionFilter
public static GUICollectionFilter create(GUIContainerComponent parent, java.lang.String[] filterByProperties)
GUICollectionFilter
, configures it
with the given properties, and assigns it to its parent widget.
parent
- the parent GUIContainerComponent
widgetfilterByProperties
- the properties to be used for filtering
GUICollectionFilter
public ISlot<?> ipInput()
input
input pin; when event occurs,
this widget will filter the collection of elements
and provide the result on the output
output pin
(opOutput()
method).
input
input pinGUIComponentBinding
public ISlot<?> ipRefresh()
refresh
input pin; when event occurs,
this widget will re-filter the collection of elements
and provide the result on the output
output pin
(opOutput()
method).
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
refresh
input pinGUIComponentBinding
public ISlot<?> opOutput()
output
output pin; when event occurs
on either input
input pin (ipInput()
method)
or refresh
input pin (ipRefresh()
method) this
widget will filter the collection of elements and provide the result
on this pin.
output
output pinGUIComponentBinding
public java.lang.String[] getFilterByProperties()
setFilterByProperties(String...)
public void setFilterByProperties(java.lang.String... values)
values
- the property names to be used for filteringpublic java.lang.String getPropertyFQName()
setPrpertyFQName(String)
public void setPrpertyFQName(java.lang.String fqName)
fqName
- property name used for navigating the corresponding
slotpublic FilteringLogic getFilteringLogic()
setFilteringLogic(FilteringLogic)
public void setFilteringLogic(FilteringLogic logic)
logic
- the filtering logic used by this widgetpublic java.util.List<IClassifierInstance> getValues()
public void setValues(java.util.List<IClassifierInstance> instances)
instances
- the values used for filteringpublic void addValue(IClassifierInstance instance)
instance
- the value to be addedpublic void removeValue(IClassifierInstance instance)
instance
- the value to be removedpublic void clearValues()
public void validate()
GUIComponent
validate
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 request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |