|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.view.View
android.view.ViewGroup
android.widget.LinearLayout
uk.co.jasonfry.android.tools.ui.PageControl
public class PageControl
Nested Class Summary | |
---|---|
static interface |
PageControl.OnPageControlClickListener
|
Nested classes/interfaces inherited from class android.widget.LinearLayout |
---|
LinearLayout.LayoutParams |
Nested classes/interfaces inherited from class android.view.ViewGroup |
---|
ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener |
Nested classes/interfaces inherited from class android.view.View |
---|
View.BaseSavedState, View.MeasureSpec, View.OnClickListener, View.OnCreateContextMenuListener, View.OnFocusChangeListener, View.OnKeyListener, View.OnLongClickListener, View.OnTouchListener |
Field Summary |
---|
Fields inherited from class android.widget.LinearLayout |
---|
HORIZONTAL, VERTICAL |
Fields inherited from class android.view.ViewGroup |
---|
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE |
Constructor Summary | |
---|---|
PageControl(Context context)
|
|
PageControl(Context context,
AttributeSet attrs)
|
Method Summary | |
---|---|
Drawable |
getActiveDrawable()
Return the current drawable object for an active page indicator |
int |
getCurrentPage()
Return the current page the PageControl is on |
Drawable |
getInactiveDrawable()
Return the current drawable object for an inactive page indicator |
int |
getIndicatorSize()
Return the size of the page indicator drawables |
PageControl.OnPageControlClickListener |
getOnPageControlClickListener()
Return the OnPageControlClickListener that has been set on this PageControl |
int |
getPageCount()
Return the number of pages this PageControl has |
void |
setActiveDrawable(Drawable d)
Set the drawable object for an active page indicator |
void |
setCurrentPage(int currentPage)
Set the current page the PageControl should be on |
void |
setInactiveDrawable(Drawable d)
Set the drawable object for an inactive page indicator |
void |
setIndicatorSize(int indicatorSize)
Set the size of the page indicator drawables |
void |
setOnPageControlClickListener(PageControl.OnPageControlClickListener onPageControlClickListener)
Set the OnPageControlClickListener object for this PageControl |
void |
setPageCount(int pageCount)
Set the number of pages this PageControl should have |
Methods inherited from class android.widget.LinearLayout |
---|
generateLayoutParams, getBaseline, getBaselineAlignedChildIndex, getOrientation, getWeightSum, isBaselineAligned, setBaselineAligned, setBaselineAlignedChildIndex, setGravity, setHorizontalGravity, setOrientation, setVerticalGravity, setWeightSum |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface android.view.ViewParent |
---|
createContextMenu, getParent, isLayoutRequested, requestLayout |
Constructor Detail |
---|
public PageControl(Context context)
public PageControl(Context context, AttributeSet attrs)
Method Detail |
---|
public void setActiveDrawable(Drawable d)
d
- The drawable object for an active page indicatorpublic Drawable getActiveDrawable()
public void setInactiveDrawable(Drawable d)
d
- The drawable object for an inactive page indicatorpublic Drawable getInactiveDrawable()
public void setPageCount(int pageCount)
pageCount
- The number of pages this PageControl should havepublic int getPageCount()
public void setCurrentPage(int currentPage)
currentPage
- The current page the PageControl should be onpublic int getCurrentPage()
public void setIndicatorSize(int indicatorSize)
indicatorSize
- The size of the page indicator drawablespublic int getIndicatorSize()
public void setOnPageControlClickListener(PageControl.OnPageControlClickListener onPageControlClickListener)
onPageControlClickListener
- The OnPageControlClickListener you wish to setpublic PageControl.OnPageControlClickListener getOnPageControlClickListener()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |