bibliothek.extension.gui.dock.theme.eclipse.stack.tab
Class EclipseDockTitleEvent

java.lang.Object
  extended by bibliothek.gui.dock.event.DockTitleEvent
      extended by bibliothek.extension.gui.dock.theme.eclipse.stack.tab.EclipseDockTitleEvent

public class EclipseDockTitleEvent
extends DockTitleEvent

These events are fired by a DockTitleTab to its DockTitle to indicate that some properties, normally not used by a DockTitle, have changed.

Author:
Benjamin Sigg

Constructor Summary
EclipseDockTitleEvent(DockStation station, Dockable dockable, boolean selected, boolean focused, boolean paintIconWhenInactive)
          Creates a new event
 
Method Summary
 boolean isFocused()
          Tells whether the tab which fired this event is focused.
 boolean isPaintIconWhenInactive()
          Tells whether icons should be painted when the tab is not selected.
 boolean isSelected()
          Tells whether the tab which fired this event is selected.
 
Methods inherited from class bibliothek.gui.dock.event.DockTitleEvent
getDockable, getStation, isActive, isPreferred, setPreferred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseDockTitleEvent

public EclipseDockTitleEvent(DockStation station,
                             Dockable dockable,
                             boolean selected,
                             boolean focused,
                             boolean paintIconWhenInactive)
Creates a new event

Parameters:
station - the station on which the tab lies, might be null
dockable - the element for which the tab is shown
selected - whether the tab is selected
focused - whether the tab is focused
paintIconWhenInactive - whether to paint icons when the tab is not selected
Method Detail

isSelected

public boolean isSelected()
Tells whether the tab which fired this event is selected.

Returns:
the selection state

isFocused

public boolean isFocused()
Tells whether the tab which fired this event is focused.

Returns:
whether the content of the tab receives input events

isPaintIconWhenInactive

public boolean isPaintIconWhenInactive()
Tells whether icons should be painted when the tab is not selected.

Returns:
true if icons should always be painted