|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Adjustment
public class Adjustment
Abstract data structure used to establish a range of values and the step sizes contained within.
Constructor Summary | ||
---|---|---|
Adjustment(int value,
int lower,
int upper,
int stepSize,
int pageSize,
int pageStepSize)
Abstract data structure used to establish a range of values and the step sizes contained within. |
Method Summary | ||
---|---|---|
void |
addListener(AdjustmentListener listener)
Register a listener to be notified of configuration and value change events. |
|
void |
configure(int value,
int lower,
int upper,
int stepSize,
int pageSize,
int pageStepSize)
Used to change everything at once in one synchronized method. |
|
int |
getCurrentPage()
Get current page based on value vs page size. |
|
int |
getLower()
Get lower bound. |
|
int |
getPageCount()
Get the number of pages that will fit in this adjustment. |
|
int |
getPageSize()
Get page size. |
|
int |
getPageStepSize()
Get page step size. |
|
int |
getStepSize()
Get step size. |
|
int |
getUpper()
Get upper bound. |
|
int |
getValue()
Get Value. |
|
void |
pageStepDown()
Decrement Adjustment by page step amount. |
|
void |
pageStepUp()
Increment Adjustment by page step amount. |
|
boolean |
removeListener(AdjustmentListener listener)
Remove a listener so that it will no longer receive updates. |
|
void |
setLower(int lower)
Set lower limit. |
|
void |
setPageSize(int size)
Set page size. |
|
void |
setPageStep(int step)
Set page step. |
|
void |
setStepSize(int step)
Set step size. |
|
void |
setUpper(int upper)
Set upper limit. |
|
void |
setValue(int value)
Set current value. |
|
void |
stepDown()
Decrement Adjustment by step amount. |
|
void |
stepUp()
Increment Adjustment by step amount. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Adjustment(int value, int lower, int upper, int stepSize, int pageSize, int pageStepSize)
value
- Represents the current value. Current value should, but is not required, to be within lower and upper boundaries.lower
- Represents the lowest possible value.upper
- Represents the highest possible value.stepSize
- Represents the increment used when adjusting the value. Should be at least 1.pageSize
- If greater than zero, the total range is divided into pages based on the specified size.pageStepSize
- Represents the minimum increment used when moving between pages.Method Detail |
---|
public void addListener(AdjustmentListener listener)
listener
- Receives notifications.public boolean removeListener(AdjustmentListener listener)
listener
- Receives notifications
public void configure(int value, int lower, int upper, int stepSize, int pageSize, int pageStepSize)
value
- Represents the current value. Current value must be within lower and upper boundaries.lower
- Represents the lowest possible value.upper
- Represents the highest possible value.stepSize
- Represents the increment used when adjusting the value. Should be at least 1.pageSize
- If greater than zero, the total range is divided into pages based on the specified size.pageStepSize
- Represents the minimum increment used when moving between pages.public int getCurrentPage()
public int getLower()
public int getPageCount()
public int getPageSize()
public int getPageStepSize()
public int getStepSize()
public int getUpper()
public int getValue()
public void pageStepDown()
public void pageStepUp()
public void setLower(int lower)
lower
- The minimum value.public void setPageSize(int size)
size
- The pageSize to set.public void setPageStep(int step)
step
- The minimum step used for paging forward or backward.public void setStepSize(int step)
step
- The step size used for increments between lower and upper.public void setUpper(int upper)
upper
- The max value.public void setValue(int value)
value
- The new value.public void stepDown()
public void stepUp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal