public class Slider<T>
extends java.lang.Object
implements java.io.Serializable, java.util.Collection<T>
| Constructor and Description |
|---|
Slider()
Default constructor
|
Slider(java.util.List<T> col,
int pageSize,
java.util.List<java.lang.String> order,
int page)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o)
This method adds new element to collection
|
boolean |
addAll(java.util.Collection<? extends T> c)
This method adds new collection to entries collection
|
void |
clear()
This method clears entries collection
|
boolean |
contains(java.lang.Object o)
This method checkes if list of entries has concreate object
|
boolean |
containsAll(java.util.Collection<?> c)
This method checks if entries collection has taking collection
|
java.lang.String |
drawSlider(java.lang.String baseref,
java.lang.String element,
java.lang.String style)
This method prints HTML text in JSP
|
java.util.List<T> |
getCol()
This method gets list of entries
|
java.lang.String |
getColSize()
This method gets total size of entries
|
java.util.List<T> |
getOriginalList() |
int |
getPage()
This method gets currency page
|
int |
getPagesCount()
This method calculates pages size.
|
int |
getPageSize()
This method gets total number of pages
|
int |
getSize()
This method gets size of entries collection
|
java.util.List<java.lang.String> |
getSortorder()
This method gets fields which is used in sort list of entries
|
int |
getTotalChildrenCount()
This method gets total number of entries
|
int |
hashCode()
Hash code
|
boolean |
isAll() |
boolean |
isEmpty()
This method checks empty or not list of entries
|
java.util.Iterator<T> |
iterator()
This method returns iterator of entries
|
boolean |
remove(java.lang.Object o)
This method removes element from collections entries
|
boolean |
removeAll(java.util.Collection<?> c)
This method remotes takes collection from entries collection
|
boolean |
retainAll(java.util.Collection<?> c)
This method removes all elements which is not in taking collection
|
void |
setAll(boolean all,
java.lang.String locale)
This method sets to show all items in a slider
|
void |
setPage(int pagenum)
This method sets total number of pages
|
void |
setTotalChildrenCount(int totalChildrenCount)
This method sets total number of entries
|
int |
size()
This method gets total size of entries
|
T[] |
toArray()
This method returns array of entries from list
|
<T> T[] |
toArray(T[] a)
This method convets entries collection to array by special array mask
|
public Slider(java.util.List<T> col, int pageSize, java.util.List<java.lang.String> order, int page)
col - list of entriespageSize - pages sizeorder - list of fields for sortingpage - current pagepublic Slider()
public boolean isAll()
public void setAll(boolean all,
java.lang.String locale)
all - show all or notlocale - locale for label 'all'public int getPage()
public int getPageSize()
public int getTotalChildrenCount()
public void setTotalChildrenCount(int totalChildrenCount)
totalChildrenCount - total number of entriespublic java.util.List<java.lang.String> getSortorder()
public java.util.List<T> getCol()
public int getPagesCount()
public void setPage(int pagenum)
pagenum - new pages sizepublic java.lang.String drawSlider(java.lang.String baseref,
java.lang.String element,
java.lang.String style)
baseref - base URLelement - html tagstyle - class for tagpublic java.lang.String getColSize()
public int size()
size in interface java.util.Collection<T>public boolean isEmpty()
isEmpty in interface java.util.Collection<T>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>o - checked objectpublic java.util.Iterator<T> iterator()
public T[] toArray()
toArray in interface java.util.Collection<T>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>o - elementpublic boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>c - taking collectionpublic boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>c - taking collectionpublic <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<T>T - returns type of arraya - special arraypublic boolean add(T o)
add in interface java.util.Collection<T>o - new elementpublic boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>c - taking collectionpublic int hashCode()
hashCode in interface java.util.Collection<T>hashCode in class java.lang.Objectpublic boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>c - new collectionpublic void clear()
clear in interface java.util.Collection<T>public int getSize()
public java.util.List<T> getOriginalList()
Copyright © 2002-2011 TrackStudio, Ltd. All Rights Reserved.