|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.subsets.filter.settings.AbstractFilterSettings
org.palo.api.subsets.filter.settings.PicklistFilterSetting
public class PicklistFilterSetting
PicklistFilterSetting
Manages the settings for the PicklistFilter
.
Field Summary | |
---|---|
static int |
INSERT_MODE_BACK
|
static int |
INSERT_MODE_FRONT
|
static int |
INSERT_MODE_MERGE
|
static int |
INSERT_MODE_SUB
|
Constructor Summary | |
---|---|
PicklistFilterSetting()
|
Method Summary | |
---|---|
void |
adapt(FilterSetting from)
Adapt the filter setting from the given filter setting. |
void |
addElement(java.lang.String id)
Adds the given element id to the picked element list |
void |
bind(Subset2 subset)
Binds this filter settings instance to the given Subset2
NOTE: PLEASE DON'T USE! |
IntegerParameter |
getInsertMode()
Returns the insert mode to use |
ObjectParameter |
getSelection()
Returns the selection parameter of picked elements. |
void |
removeAllElements()
Removes all picked elements. |
void |
removeElement(java.lang.String id)
Removes the given element id from the picked element list |
void |
reset()
Resets the filter setting to its defaults. |
void |
setInsertMode(int insertMode)
Sets the insert mode. |
void |
setInsertMode(IntegerParameter insertMode)
Sets the insert mode, i.e. the parameter value should be one of the predefined insert mode constants. |
void |
setSelection(ObjectParameter selection)
Sets the selection parameter. |
void |
unbind()
Releases this filter settings instance from a previously binded Subset2
NOTE: PLEASE DON'T USE! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INSERT_MODE_SUB
public static final int INSERT_MODE_BACK
public static final int INSERT_MODE_FRONT
public static final int INSERT_MODE_MERGE
Constructor Detail |
---|
public PicklistFilterSetting()
Method Detail |
---|
public final void addElement(java.lang.String id)
id
- a valid element idpublic final void removeElement(java.lang.String id)
id
- a valid element idpublic final void removeAllElements()
public final ObjectParameter getSelection()
public final void setSelection(ObjectParameter selection)
LinkedHashSet
(to keep adding order). The HashSet
should contain the Element
ids of the picked elements.
selection
- public IntegerParameter getInsertMode()
public final void setInsertMode(int insertMode)
insertMode
- the new insert mode.public final void setInsertMode(IntegerParameter insertMode)
insertMode
- the new IntegerParameter
to use for the
insert modepublic final void reset()
FilterSetting
public final void bind(Subset2 subset)
FilterSetting
Binds this filter settings instance to the given Subset2
bind
in interface FilterSetting
bind
in class AbstractFilterSettings
public final void unbind()
FilterSetting
Releases this filter settings instance from a previously binded
Subset2
unbind
in interface FilterSetting
unbind
in class AbstractFilterSettings
public final void adapt(FilterSetting from)
FilterSetting
from
- the filter setting to adapt from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |