beautypg.com

Getcompressrowsformat(), Setcompressrowsformat(int), Setcompressrowsranges(string) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 168: Getcompressrowsformat, Setcompressrowsformat, Setcompressrowsranges

background image

(continued from last page)

Returns:

The current range(s). Not

null

but can be empty.

setCompressRowsRanges

public void setCompressRowsRanges(String s)

Property: A string that describles what rows, or row intervals, that should be compressed. The unit used can be set with

setCompressRowsFormat(int)

.

The string is comma separated invervalls using english locale/words/formatting. For example:

"00.00-06.00,18.00-24.00" (time of day)

"0-10,14-17,30-40,42,44" (absolute cells)

"mon-wed,sat-sun" (week days)

"20041231-20050131,20060231-2007231" (dates, yyyyMMdd)

Parameters:

s

- The new range(s). Not

null

but can be empty.

getCompressRowsFormat

public int getCompressRowsFormat()

Property: The type (unit) for the

CompressRowsRanges

property.

Valid formats are:

ABSOLUTE_CELLS

- The cell numbers starting from 0.

TIME_OF_DAY

- Time of day of the form: "HH.mm"

DAY_OF_WEEK

- The day of week. It's enough to use the first two letters. E.g "mo" or "tue".

DATE

- The date without any time on the form: "yyyyMMdd"

Returns:

The current format.

ABSOLUTE_CELLS

is default.

setCompressRowsFormat

public void setCompressRowsFormat(int format)

Property: The type (unit) for the

CompressRowsRanges

property.

Valid formats are:

ABSOLUTE_CELLS

- The cell numbers starting from 0.

TIME_OF_DAY

- Time of day of the form: "HH.mm"

DAY_OF_WEEK

- The day of week. It's enough to use the first two letters. E.g "mo" or "tue".

DATE

- The date without any time on the form: "yyyyMMdd"

Parameters:

format

- The new format.

ABSOLUTE_CELLS

is default.

Page 168 of 196

com.miginfocom.beans.GridDimensionLayoutBean