CollapseView:
Filter:
Classes (extension) | GUI > Views | Libraries > jostMlib

CollapseView
ExtensionExtension

A FlowView that can be collapsed with an arrow button.
Location: NOT INSTALLED!

Description

A collapsible view for helping to manange your screen realestate.

NOTE: If you option-click on a CollapseButton,all items _below_ and including the clicked item will collapse or expand. You can change the modifier-kay with CollapseButton.clickModifier_(myModifier);

Hittin

Class Methods

PRIVATE: viewClass

.new

Arguments:

parent
bounds
buttonBounds

default 16@16

an optional Rect or Point for the size of the CollapseButton

Returns:

a CollapseView

.defaultMinHeight

defualt=25. Set a custom default minHeight for all your instances of CollapseView

Inherited class methods

Instance Methods

.flow

works like a FlowView.flow. See examples below.

.minHeight

default: 25. Set the CollapseView instance collapsed height according to your first row widgets.

.button

gets the CollapseButton

Returns:

a CollapseButton

NOTE: The button variable is not populated until you have called .flow

.offset

default 2. How many items to keep visible on view collapse, including the arrow. If you put your first row of items in its own sub-FlowView, then they will remian visible with the default.

Hit return or enter on an active collapse, view, and it will toggle.

.state

0 or 1 for collapsed or expanded

.view

Returns:

the FlowView containing the CollapseButton and all of your other items.

.buttonScale

default: 0.5

.buttonEq

use equilateral triangle

default: false

Inherited instance methods

Examples