|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.table.CellSize
The CellSize
class controls the dimensions for single row or
column. Four properties control how cell sizes are calculated: character
value which bases the size of a cell on a set number of characters or lines;
minimum value which controls the minimum size of a cell; maximum value which
controls the maximum size of a cell; and pixel value which sets a fixed
dimension, determines whether character based control is used or sets the
size to variable control. Querying any of the properties returns the setting
and not the actual value. Use the Hidden
property to hide and
show rows and columns.
Field Summary | |
protected int |
char_value
|
protected boolean |
hidden
|
protected int |
max_value
|
protected int |
min_value
|
protected int |
pixel_value
|
Constructor Summary | |
CellSize(int char_value)
Creates a new CellSize object based on character dimensions. |
|
CellSize(int min_value,
int max_value,
int pixel_value)
Creates a new CellSize object based on pixel dimensions. |
|
CellSize(int char_value,
int min_value,
int max_value,
int pixel_value)
Creates a new CellSize object based on all sizing options. |
|
CellSize(int char_value,
int min_value,
int max_value,
int pixel_value,
boolean hidden)
Creates a new CellSize objet based on all sizing options, including visibility. |
Method Summary | |
Object |
clone()
Returns a copy of the CellSize object. |
int |
getCharValue()
Returns the number of characters that a column can display or the number of lines for a row. |
int |
getMaxValue()
Returns the maximum size in pixels of a row or columns. |
int |
getMinValue()
Returns the minimum size in pixels of a row or columns. |
int |
getPixelValue()
Returns the pixel value for a row or column. |
boolean |
isHidden()
Returns true if the row or column is hidden. |
void |
setCharValue(int value)
For columns, sets the number of characters that a column can display (default: 10), and for rows, the number of lines of text that a row can display (default: 1). |
void |
setHidden(boolean value)
Determines whether a row or column is hidden without invalidating the settings that control sizing when visible. |
void |
setMaxValue(int value)
Sets the maximum size in pixels of a row or column. |
void |
setMinValue(int value)
Sets the minimum size in pixels of a row or column. |
void |
setPixelValue(int value)
Sets the width of a column or height of a row in pixels. |
String |
toString()
Returns a string representation of the CellSize object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int char_value
protected int min_value
protected int max_value
protected int pixel_value
protected boolean hidden
Constructor Detail |
public CellSize(int char_value)
public CellSize(int min_value, int max_value, int pixel_value)
public CellSize(int char_value, int min_value, int max_value, int pixel_value)
public CellSize(int char_value, int min_value, int max_value, int pixel_value, boolean hidden)
Method Detail |
public int getCharValue()
setCharValue(int)
public void setCharValue(int value)
PixelValue
is
JCTableEnum.NOVALUE
.
public boolean isHidden()
setHidden(boolean)
public void setHidden(boolean value)
public int getMinValue()
setMinValue(int)
public void setMinValue(int value)
public int getMaxValue()
setMaxValue(int)
public void setMaxValue(int value)
public int getPixelValue()
setPixelValue(int)
public void setPixelValue(int value)
JCTableEnum.NOVALUE
to control width/height by character
value.The following special values are valid:
JCTableEnum.NOVALUE use character setting to control the size of a
row or column
JCTableEnum.AS_IS do not change. Use to convert from VARIABLE to
fixed size
JCTableEnum.VARIABLE set to the highest value in the row or column
JCTableEnum.VARIABLE_ESTIMATE set to the highest value in the first
VariableCount
cells
public Object clone()
clone
in class Object
public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |