|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.ribot.easyadapter.PositionInfo
public class PositionInfo
This class holds information about the position of an item in the EasyAdapter
Constructor Summary | |
---|---|
PositionInfo()
Constructs an empty PositionInfo object |
|
PositionInfo(int position,
boolean first,
boolean last)
Constructs a PositionInfo with: position, first and last |
Method Summary | |
---|---|
int |
getPosition()
|
boolean |
isFirst()
|
boolean |
isLast()
|
void |
setFirst(boolean first)
Sets whether the item is the first one or not |
void |
setLast(boolean last)
Sets whether the item is the last one or not |
void |
setPosition(int position)
Sets the position of the item |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositionInfo()
public PositionInfo(int position, boolean first, boolean last)
position
- the position of the itemfirst
- true if the item is the firstlast
- true if the item is the lastMethod Detail |
---|
public int getPosition()
EasyAdapter
public boolean isFirst()
EasyAdapter
public boolean isLast()
EasyAdapter
public void setPosition(int position)
position
- position of the itempublic void setFirst(boolean first)
first
- true if the item is the firstpublic void setLast(boolean last)
last
- true if the item is the last
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |