Getlabelfirstdateformat(), Getlabelfirstinfield(), Getlabelnowrangetype() – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 126: Setlabelfirstdateformat(string), Setlabelnowrangetype(integer), Getlabelfirstdateformat, Getlabelfirstinfield, Getlabelnowrangetype, Setlabelfirstdateformat, String

Advertising
background image

(continued from last page)

See Also:

getLabelNowDateFormat()

getLabelNowRangeType

public Integer getLabelNowRangeType()

Property: The range type to round the "now" date to. Can for instance be set to

RANGE_TYPE_MONTH

to make all the cells

in a month be cosidered "now" and get the "now" font/background/foreground.

Returns:

The current range type or

null

if not set. E.g.

DateRangeI.RANGE_TYPE_MONTH

.

setLabelNowRangeType

public void setLabelNowRangeType(Integer rangeType)

Property: The range type to round the "now" date to. Can for instance be set to

RANGE_TYPE_MONTH

to make all the cells

in a month be cosidered "now" and get the "now" font/background/foreground.

Parameters:

rangeType

- E.g.

DateRangeI.RANGE_TYPE_MONTH

.

getLabelFirstDateFormat

public String getLabelFirstDateFormat()

Property: Date format for the "first" of something, e.g. first day of the month.

Returns:

Date format for the "first" of something, e.g. first day of the month.

Since:

6.0

setLabelFirstDateFormat

public void setLabelFirstDateFormat(String format)

Property: Date format for the "first" of something, e.g. first day of the month.

Parameters:

format

- Date format for the "first" of something, e.g. first day of the month.

Since:

6.0

getLabelFirstInField

public int getLabelFirstInField()

Property: If

getFirstDateFormat()

is != this is the

java.util.Calendar

field that is used to know what's "first".

Returns:

The range type. E.g.

Calendar.DAY_OF_MONTH

.

Since:

6.0

Page 126 of 196

com.miginfocom.beans.DateAreaBean

Advertising