WeatherToggleButton

floodsim.view.component.WeatherToggleButton
class WeatherToggleButton extends UIComponent[JToggleButton]

A styled toggle button to show/hide weather overlays or information.

Attributes

Graph
Supertypes
trait UIComponent[JToggleButton]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def component: JToggleButton

Returns the underlying Swing component.

Returns the underlying Swing component.

Attributes

def onToggle(action: Boolean => Unit): WeatherToggleButton

Registers an action to be performed when the toggle state changes.

Registers an action to be performed when the toggle state changes.

Value parameters

action

the action to perform, receiving true if selected, false if deselected

Attributes

Returns

the WeatherToggleButton with the item listener added