|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.table.Viewable
public class Viewable
Viewable is the object that contains information about a cell's resize behaviour when its size is larger than its viewable dimensions.
Resizing will take place only if the viewable dimensions are below the threshold values, minResizeWidth and minResizeHeight.
The minimum resize widths/heights can be a positive number or one of these constants:
NO_RESIZE: no resize will take place
PREF_RESIZE: width or height will resize to the cell's preferred dimension
ALL_RESIZE: width or height will resize to all the available viewable space
Field Summary | |
---|---|
static int |
ALL_RESIZE
defines a mode with cells resizing to all the available viewable space |
protected int |
minResizeHeight
the minimum resize height |
protected int |
minResizeWidth
the minimum resize width |
static int |
NO_RESIZE
defines a no resize mode |
static int |
PREF_RESIZE
defines a mode with cells resizing to their preferred size |
Constructor Summary | |
---|---|
Viewable()
Constructs a Viewable having as minimum resize width ALL_RESIZE and minimum resize height PREF_RESIZE. |
|
Viewable(int minResizeWidth,
int minResizeHeight)
Constructs a Viewable. |
Method Summary | |
---|---|
int |
getMinResizeHeight()
Returns the minimum resize height. |
int |
getMinResizeWidth()
Returns the minimum resize width. |
void |
setMinResizeHeight(int minResizeHeight)
Assigns the minimum resize height. |
void |
setMinResizeWidth(int minResizeWidth)
Assigns the minimum resize width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int minResizeWidth
protected int minResizeHeight
public static final int NO_RESIZE
public static final int PREF_RESIZE
public static final int ALL_RESIZE
Constructor Detail |
---|
public Viewable()
public Viewable(int minResizeWidth, int minResizeHeight)
Method Detail |
---|
public int getMinResizeHeight()
public int getMinResizeWidth()
public void setMinResizeHeight(int minResizeHeight)
minResizeHeight
- the minimum resize heightpublic void setMinResizeWidth(int minResizeWidth)
minResizeWidth
- the minimum resize width
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |