Getcontainer(), Getexpandtocorner(), Revalidaterepaintcontainer() – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 4: Setdateareacontainer(dateareabean), Getcontainer, Getexpandtocorner, Revalidaterepaintcontainer, Setdateareacontainer, Methods

Advertising
background image

Methods inherited from class

com.miginfocom.beans.AbstractBean

addPropertyChangeListener, addPropertyChangeListener, firePropertyChangeEvent,

removePropertyChangeListener, setIgnorePropertyChangeEvents

Methods inherited from class

java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

getContainer

public

DateAreaBean

getContainer()

Returns the container that this header is decorating.

Returns:

The container that this header is decorating. Can be

null

.

revalidateRepaintContainer

public void revalidateRepaintContainer()

If there is a connected container, revaidate and repaint it

setDateAreaContainer

public boolean setDateAreaContainer(

DateAreaBean

container)

Sets the

com.miginfocom.calendar.datearea.DateAreaContainer

that this header should decorate. This will be

called by the controller that handles them both and the header will not work unless this property has been set.

Parameters:

container

- The container that this header should decorate.

null

resets the header.

Returns:

If the container was changed.

false

if the same container was set again.

getExpandToCorner

public int getExpandToCorner()

Property: What corner, if any, the header should expand into if (if it exist, or rather has any space). Values are:

CORNER_EXPAND_NONE

- The header will not expand into any corner.

1.

CORNER_EXPAND_BOTH

- The header will expand into both adjacent corners.

2.

CORNER_EXPAND_BOTTOM_OR_RIGHT

- The header will expand into the bottom corner if this is a vertical (standing)

header and to the right corner if it's a horizontal header.

3.

CORNER_EXPAND_TOP_OR_LEFT

- The header will expand into the top corner if this is a vertical (standing) header

and to the left corner if it's a horizontal header.

4.

Returns:

The current value.

DateAreaContainer.CORNER_EXPAND_NONE

is default.

Page 4 of 196

com.miginfocom.beans.AbstractHeaderBean

Advertising