|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HoldInterface
An interface for holding various indices in a view so they are always visible when scrolling. The indices can be held in their default location or an orientation parameter can be used if more then one orientation or location is available.
Method Summary | |
---|---|
java.util.List |
getHeldIndices()
Returns a list of the indices that are being held. |
java.util.List |
getHeldIndices(int orientation)
Returns a list of the indices that are being held for the given orientation. |
void |
hold(int modelIndex)
"Holds" the given index using the default orientation. |
void |
hold(int modelIndex,
int orientation)
"Holds" the given index using the orientation specified. |
boolean |
isHeld(int modelIndex)
Returns true if the given modelIndex is held for any orientation,
false otherwise. |
boolean |
isHeld(int modelIndex,
int orientation)
Returns true if the given modelIndex is held for the given
orientation, false otherwise. |
boolean |
isHoldingAllowed(int orientation)
Returns true if holding for a given orientation is allowed or false otherwise. |
boolean |
isHoldingEnabled()
Returns true is holding is enabled, should return false if holding is not allowed. |
void |
release(int modelIndex)
Releases the given modelIndex from being held, so it will
return to its original place in the view. |
void |
releaseAll()
Releases all held indices and returns them to their previous location. |
void |
setHoldingEnabled(boolean enableHolding)
Sets the state of whether holding of indices is enabled or not. |
Method Detail |
---|
void hold(int modelIndex)
The order in which the indices are held controls the order in which they are displayed.
Should do nothing if the index is already held.
modelIndex
- the data model index of the object wishing to be heldhold(int, int)
,
release(int)
,
releaseAll()
void hold(int modelIndex, int orientation)
The order in which the indices are held controls the order in which they are displayed.
Should do nothing if the index is already held.
modelIndex
- the data model index of the object wishing to be heldorientation
- the orientation or location the index is to be heldhold(int)
,
release(int)
,
releaseAll()
void release(int modelIndex)
modelIndex
from being held, so it will
return to its original place in the view. If the modelIndex
is not held, nothing is done.
modelIndex
- the index currently held that is wishing to be releasedhold(int)
,
hold(int, int)
,
releaseAll()
void releaseAll()
hold(int)
,
hold(int, int)
,
release(int)
java.util.List getHeldIndices()
getHeldIndices(int)
java.util.List getHeldIndices(int orientation)
orientation
- the orientation of the held indices that are being returned
getHeldIndices()
boolean isHeld(int modelIndex)
modelIndex
is held for any orientation,
false otherwise.
modelIndex
- the data model index of the object queried about
isHeld(int, int)
boolean isHeld(int modelIndex, int orientation)
modelIndex
is held for the given
orientation, false otherwise.
modelIndex
- the data model index of the object queried aboutorientation
- the orientation or location that the index is being queried for
isHeld(int)
boolean isHoldingEnabled()
setHoldingEnabled(boolean)
void setHoldingEnabled(boolean enableHolding)
enableHolding
- true to enable holding, false otherwiseisHoldingEnabled()
boolean isHoldingAllowed(int orientation)
orientation
- the orientation being queried about
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |