Package org.wicketstuff
Class DefaultAddAtStartStore
- java.lang.Object
-
- org.wicketstuff.DefaultAddAtStartStore
-
- All Implemented Interfaces:
Serializable
,IAddAtStartStore
public class DefaultAddAtStartStore extends Object implements IAddAtStartStore
default store for elements added at start in quickview- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultAddAtStartStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Component... components)
adds components id in store along with their indexesboolean
contains(String componentId)
returns true if id exists in storeboolean
contains(Component component)
returns true if component's id exist in storeSet<String>
getIds()
ConcurrentLinkedDeque<String>
getOrderedIds()
Iterator<String>
iterator()
iterator of components id kept in the storevoid
remove(String id)
remove component id from storevoid
remove(Component component)
remove component id from storeint
size()
count of ids kept in store
-
-
-
Method Detail
-
getOrderedIds
public ConcurrentLinkedDeque<String> getOrderedIds()
-
contains
public boolean contains(Component component)
Description copied from interface:IAddAtStartStore
returns true if component's id exist in store- Specified by:
contains
in interfaceIAddAtStartStore
- Returns:
- true if component id of the component is stored
-
contains
public boolean contains(String componentId)
Description copied from interface:IAddAtStartStore
returns true if id exists in store- Specified by:
contains
in interfaceIAddAtStartStore
- Returns:
- true if component id of the component is stored
-
iterator
public Iterator<String> iterator()
Description copied from interface:IAddAtStartStore
iterator of components id kept in the store- Specified by:
iterator
in interfaceIAddAtStartStore
- Returns:
- iterator to iterate though components id
-
size
public int size()
Description copied from interface:IAddAtStartStore
count of ids kept in store- Specified by:
size
in interfaceIAddAtStartStore
- Returns:
- size of store,count of components id
-
add
public void add(Component... components)
adds components id in store along with their indexes- Specified by:
add
in interfaceIAddAtStartStore
- Parameters:
components
- component that are added at start
-
remove
public void remove(Component component)
remove component id from store- Specified by:
remove
in interfaceIAddAtStartStore
- Parameters:
component
-
-
remove
public void remove(String id)
remove component id from store- Specified by:
remove
in interfaceIAddAtStartStore
- Parameters:
id
-
-
-