|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.util.ListHelp
Helper for processing ListDataModels
Constructor Summary | |
private |
ListHelp()
Constructor |
Method Summary | |
static void |
check(ListDataModel list,
AlgorithmFilter filter)
Checks all elements in a list. |
static void |
check(ListDataModel list,
java.lang.String property,
AlgorithmFilter filter)
Checks a property for all elements in a list. |
static void |
checkAll(ListDataModel list)
Checks all elements in a list. |
static void |
checkAll(ListDataModel list,
java.lang.String property)
Checks all elements in a list. |
static java.util.Map |
getCheckedItems(ListDataModel list)
Returns an Array including all the matching row beans of the list. |
static java.util.Map |
getCheckedItems(ListDataModel list,
java.lang.String property)
Returns an Array including all the matching row beans in a list. |
static java.util.Map |
getItemsByState(ListDataModel list,
CheckState state)
Returns a collection for all element in the list which fits the specified check state. |
static java.util.Map |
getItemsByState(ListDataModel list,
java.lang.String property,
CheckState state)
Returns a collection for all element in the list which fits the specified check state. |
static java.lang.Object |
getLineFromKey(ListDataModel list,
java.lang.String key)
Returns the Row (Object) with the specified key from the list. |
static java.util.Map |
getUncheckedItems(ListDataModel list)
Returns an Array including all the matching row beans of the list. |
static java.util.Map |
getUncheckedItems(ListDataModel list,
java.lang.String property)
Returns an Array including all the matching row beans of the list. |
static int |
indexOf(ListDataModel list,
java.lang.String key)
Returns the index of the row with the specified key from the list. |
static java.lang.Object |
iterateNodes(LineIterator iter,
Algorithm alg)
This method processes an algorithm for all elements (nodes) in the list. |
static java.lang.Object |
iterateNodes(LineIterator iter,
Algorithm alg,
AlgorithmFilter filter)
This method processes an algorithm for all elements (nodes) in the list. |
static java.lang.Object |
iterateNodes(ListDataModel list,
Algorithm alg)
This method processes an algorithm for all elements (nodes) in the list. |
static java.lang.Object |
iterateNodes(ListDataModel list,
Algorithm alg,
AlgorithmFilter filter)
This method processes an algorithm for all elements (nodes) in the list. |
static void |
uncheck(ListDataModel list,
AlgorithmFilter filter)
Clears all selected elements in a list. |
static void |
uncheck(ListDataModel list,
java.lang.String property,
AlgorithmFilter filter)
Unchecks only the checked Items in a List |
static void |
uncheckAll(ListDataModel list)
Clears all selected elements in a list. |
static void |
uncheckAll(ListDataModel list,
java.lang.String property)
Unchecks only the checked Items in a List |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private ListHelp()
Method Detail |
public static java.lang.Object getLineFromKey(ListDataModel list, java.lang.String key) throws java.lang.Exception
list
- ListDataModelkey
- Key
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static java.lang.Object iterateNodes(ListDataModel list, Algorithm alg) throws java.lang.Exception
list
- ListDataModelalg
- Algorithm to execute
null
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmAlgorithm.execute(String, Object)
public static java.lang.Object iterateNodes(ListDataModel list, Algorithm alg, AlgorithmFilter filter) throws java.lang.Exception
list
- ListDataModelalg
- Algorithm to executefilter
- The row filter
null
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmAlgorithm.execute(String, Object)
public static java.lang.Object iterateNodes(LineIterator iter, Algorithm alg) throws java.lang.Exception
iter
- List Iteratoralg
- Algorithm to execute
null
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmAlgorithm.execute(String, Object)
public static java.lang.Object iterateNodes(LineIterator iter, Algorithm alg, AlgorithmFilter filter) throws java.lang.Exception
iter
- List Iteratoralg
- Algorithm to executefilter
- The row filter
null
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmAlgorithm.execute(String, Object)
public static int indexOf(ListDataModel list, java.lang.String key)
list
- ListDataModelkey
- Key
public static void uncheckAll(ListDataModel list) throws java.lang.Exception
checkabel
interface. Only the
checked items (1) will be reseted! Items with an undefined state will
(-1) not be affected.
list
- ListDataModel
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmCheckable
public static void uncheck(ListDataModel list, AlgorithmFilter filter) throws java.lang.Exception
checkabel
interface. Only the
checked items (1) will be reseted! Items with an undefined state will
(-1) not be affected.
list
- ListDataModelfilter
- Row Filter
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmCheckable
public static void uncheckAll(ListDataModel list, java.lang.String property) throws java.lang.Exception
list
- List Data modelproperty
- The check property
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static void uncheck(ListDataModel list, java.lang.String property, AlgorithmFilter filter) throws java.lang.Exception
list
- List Data modelproperty
- The check propertyfilter
- the row filter
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static void checkAll(ListDataModel list) throws java.lang.Exception
checkabel
interface. Only the unchecked
items (0) will be checked! Items with an undefined state will (-1) not be
affected.
list
- ListDataModel
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmCheckable
public static void checkAll(ListDataModel list, java.lang.String property) throws java.lang.Exception
list
- List Data modelproperty
- The check property
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static void check(ListDataModel list, AlgorithmFilter filter) throws java.lang.Exception
checkabel
interface. Only the unchecked
items (0) will be checked! Items with an undefined state will (-1) not be
affected.
list
- ListDataModelfilter
- The row filter
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmCheckable
public static void check(ListDataModel list, java.lang.String property, AlgorithmFilter filter) throws java.lang.Exception
list
- List Data modelproperty
- The check propertyfilter
- the row filter
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static java.util.Map getCheckedItems(ListDataModel list) throws java.lang.Exception
checkabel
interface. Only the checked items (1) will be
returned!
list
- The list
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static java.util.Map getCheckedItems(ListDataModel list, java.lang.String property) throws java.lang.Exception
list
- The listproperty
- The check property
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static java.util.Map getUncheckedItems(ListDataModel list) throws java.lang.Exception
checkabel
interface. Only the unchecked items (0) will be
returned!
list
- The list
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static java.util.Map getUncheckedItems(ListDataModel list, java.lang.String property) throws java.lang.Exception
list
- The listproperty
- The check property
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static java.util.Map getItemsByState(ListDataModel list, CheckState state) throws java.lang.Exception
checkabel
interface.
list
- The list which includes the checked elementsstate
- The check state
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic static java.util.Map getItemsByState(ListDataModel list, java.lang.String property, CheckState state) throws java.lang.Exception
list
- The list which includes the checked elementsproperty
- The check propertystate
- The check state
java.lang.Exception
- Indicates an error while iterating and executing the
algorithm
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |