bibliothek.gui.dock.station.flap
Class FlapDockDirection.DirectedArrow

java.lang.Object
  extended by bibliothek.gui.dock.action.actions.AbstractStandardDockAction
      extended by bibliothek.gui.dock.action.actions.SimpleDockAction
          extended by bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
              extended by bibliothek.gui.dock.action.actions.SimpleSelectableAction
                  extended by bibliothek.gui.dock.action.actions.SimpleSelectableAction.Radio
                      extended by bibliothek.gui.dock.station.flap.FlapDockDirection.DirectedArrow
All Implemented Interfaces:
DockAction, DropDownItemAction, SelectableDockAction, StandardDockAction, StandardDropDownItemAction
Enclosing class:
FlapDockDirection

private class FlapDockDirection.DirectedArrow
extends SimpleSelectableAction.Radio

A button pointing in a direction.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.action.actions.SimpleSelectableAction
SimpleSelectableAction.Check, SimpleSelectableAction.Radio
 
Field Summary
private  FlapDockStation.Direction direction
          the direction in which this button points
 
Constructor Summary
FlapDockDirection.DirectedArrow(FlapDockStation.Direction direction)
          Creates a new button.
 
Method Summary
 void fireSelectedChanged()
          Fires an event to all observers of type SelectableDockActionListener.
 boolean isSelected(Dockable dockable)
          Tells whether this DockAction is selected or not (in respect to the given dockable).
 void setSelected(Dockable dockable, boolean selected)
          Sets the selected state for dockable.
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleSelectableAction
addSelectableListener, createView, firstNonNull, getDisabledIcon, getDisabledSelectedIcon, getIcon, getSelectedIcon, isSelected, removeSelectableListener, setDisabledSelectedIcon, setSelected, setSelectedIcon
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction
getDisabledIcon, getIcon, getText, getText, getTooltipText, getTooltipText, isEnabled, isEnabled, setDisabledIcon, setEnabled, setIcon, setText, setTooltipText
 
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
addDockActionListener, bind, binded, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBindeds, isBinded, removeDockActionListener, unbind, unbinded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction
isDropDownSelectable, isDropDownTriggerable
 

Field Detail

direction

private FlapDockStation.Direction direction
the direction in which this button points

Constructor Detail

FlapDockDirection.DirectedArrow

public FlapDockDirection.DirectedArrow(FlapDockStation.Direction direction)
Creates a new button.

Parameters:
direction - the direction, null for automatic determination
Method Detail

isSelected

public boolean isSelected(Dockable dockable)
Description copied from interface: SelectableDockAction
Tells whether this DockAction is selected or not (in respect to the given dockable).

Specified by:
isSelected in interface SelectableDockAction
Overrides:
isSelected in class SimpleSelectableAction
Parameters:
dockable - The Dockable for which this action may be selected or not selected
Returns:
true if this DockAction is selcted, false otherwise

setSelected

public void setSelected(Dockable dockable,
                        boolean selected)
Description copied from interface: SelectableDockAction
Sets the selected state for dockable.

Specified by:
setSelected in interface SelectableDockAction
Overrides:
setSelected in class SimpleSelectableAction
Parameters:
dockable - the affected dockable
selected - the new state

fireSelectedChanged

public void fireSelectedChanged()
Description copied from class: SimpleSelectableAction
Fires an event to all observers of type SelectableDockActionListener.

Overrides:
fireSelectedChanged in class SimpleSelectableAction