Adddecorator(decorator), Removedecorator(class, boolean), Sortdecorators() – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 84: Adddecorator, Removedecorator, Removedecorators, Sortdecorators

Advertising
background image

(continued from last page)

sortDecorators

public void sortDecorators()

Resort the decorators that this tree handles. This is normally only needed if any of the decorators has changed its layer
outside the control of this tree.

addDecorator

public void addDecorator(Decorator decorator)

Adds a decorator. A manual repaint has to be issued to paint the decorator.

Parameters:

decorator

- The decorator. Insertion order is maintained and decorations will be painted in this order.

See Also:

addDecorator(com.miginfocom.calendar.decorators.Decorator)

removeDecorator

public void removeDecorator(Decorator decorator)

Removes a decorator. A manual repaint has to be issued to paint the decorator.

Parameters:

decorator

- The decorator to be removed.

See Also:

removeDecorator(com.miginfocom.calendar.decorators.Decorator)

removeDecorator

public boolean removeDecorator(Class type,
boolean inclSubClasses)

Removes the first decorator found with the class type

type

, including sub types id

inclSubClasses == true

.

Parameters:

type

- The type. Not

null

.

inclSubClasses

- If sub classes of

type

should be removed as well.

Returns:

If a decorator was removed.

removeDecorators

public void removeDecorators()

Removes all decorators. Note that this also removes the self decorating decorators. You should probably add

com.miginfocom.calendar.datearea.DefaultDateArea.MultiSelectRectangleDecorator

and

com.miginfocom.calendar.datearea.DefaultDateArea.ActivityViewDecorator

again. Add an instance by:

dateArea.addDecorator(dateArea.new ActivityViewDecorator(110));

See Also:

removeDecorators(java.util.Collection)

Page 84 of 196

com.miginfocom.beans.CategoryTreeBean

Advertising