Getcellcursor(), Getlabelcursor(), Setlabelcursor(cursor) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 32: Setlabelfoldonpress(boolean), Getcellcursor, Getlabelcursor, Setlabelcursor, Java.awt.cursor, Setlabelfoldonpress, Boolean

Advertising
background image

(continued from last page)

setLabelFoldOnPress

public void setLabelFoldOnPress(boolean b)

Property: If the corresponding sub row should be folded when the user press the label in the category header. This is done
by catching the

com.miginfocom.ashape.interaction.InteractionEvent

and fold the corresponding row. This

can also be done manually, to get more control, by adding a listener with

addInteractionListener(InteractionListener)

and there perform code like:

Object interacted = e.getInteractor().getInteracted();

if (interacted instanceof GridRow) {

GridRow row = (GridRow) interacted;

row.setFolded(!row.isFolded());

revalidateRepaintContainer();

}

Parameters:

b

- The new value.

See Also:

setKnobFoldOnPress(boolean)

getLabelCursor

public java.awt.Cursor getLabelCursor()

Property: The

java.awt.Cursor

that the mouse pointer should change to when over a category label.

Returns:

The current Cursor. May be

null

which means no change.

setLabelCursor

public void setLabelCursor(java.awt.Cursor cur)

Property: The

java.awt.Cursor

that the mouse pointer should change to when over a category label.

Parameters:

cur

- The new Cursor. May be

null

which means no change.

getCellCursor

public java.awt.Cursor getCellCursor()

Property: The

java.awt.Cursor

that the mouse pointer should change to when over a cell (and not label).

Returns:

The current Cursor. May be

null

which means no change.

Page 32 of 196

com.miginfocom.beans.CategoryHeaderBean

Advertising