Getknobcursor(), Getrowfolderimage(), Setknobcursor(cursor) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 34: Setrowfolderimage(xtdimage), Getknobcursor, Getrowfolderimage, Setknobcursor, Java.awt.cursor, Setrowfolderimage, Xtdimage

Advertising
background image

(continued from last page)

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();

}

Parameters:

b

- The new value.

See Also:

setLabelFoldOnPress(boolean)

getKnobCursor

public java.awt.Cursor getKnobCursor()

Property: The

java.awt.Cursor

that the mouse pointer should change to when over +- knob.

Returns:

The current Cursor. May be

null

which means no change.

setKnobCursor

public void setKnobCursor(java.awt.Cursor cur)

Property: The

java.awt.Cursor

that the mouse pointer should change to when over +- knob.

Parameters:

cur

- The new Cursor. May be

null

which means no change.

getRowFolderImage

public XtdImage getRowFolderImage()

Property: A

com.miginfocom.util.gfx.XtdImage

(which is a very flexible

Image/Icon

) that should represent a

folder and are shown for sub rows that aren't leaves.

Returns:

The current image or

null

if no image should be shown/used.

setRowFolderImage

public void setRowFolderImage(XtdImage image)

Page 34 of 196

com.miginfocom.beans.CategoryHeaderBean

Advertising