Getknobfoldonpress(), Setcellcursor(cursor), Setknobfoldonpress(boolean) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 33: Getknobfoldonpress, Setcellcursor, Java.awt.cursor, Setknobfoldonpress

Advertising
background image

setCellCursor

public void setCellCursor(java.awt.Cursor cur)

Property: The

java.awt.Cursor

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

Parameters:

cur

- The new Cursor. May be

null

which means no change.

getKnobFoldOnPress

public boolean getKnobFoldOnPress()

Property: If the corresponding sub row should be folded when the user press the knob image 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();

}

Returns:

The current value.

See Also:

getLabelFoldOnPress()

setKnobFoldOnPress

public void setKnobFoldOnPress(boolean b)

Page 33 of 196

com.miginfocom.beans.CategoryHeaderBean

Advertising