bibliothek.extension.gui.dock.theme.eclipse.stack.tab4
Class HoverCondition

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.stack.tab4.TabComponentCondition
      extended by bibliothek.extension.gui.dock.theme.eclipse.stack.tab4.HoverCondition

public class HoverCondition
extends TabComponentCondition

Tells whether the mouse is currently over a TabComponent or one of its children.

Author:
Benjamin Sigg

Constructor Summary
HoverCondition(TabComponent component)
          Creates a new condition.
 
Method Summary
protected  boolean checkCondition()
          Reads the condition.
 void setController(DockController controller)
          Sets the controller which is used to register global MouseEvents.
 
Methods inherited from class bibliothek.extension.gui.dock.theme.eclipse.stack.tab4.TabComponentCondition
getComponent, getCondition, invalidate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HoverCondition

public HoverCondition(TabComponent component)
Creates a new condition.

Parameters:
component - the component to observe
Method Detail

setController

public void setController(DockController controller)
Sets the controller which is used to register global MouseEvents.

Parameters:
controller - the controller to observe or null to remove all listeners

checkCondition

protected boolean checkCondition()
Description copied from class: TabComponentCondition
Reads the condition. This method is only called if TabComponentCondition.invalidate() was called. Otherwise the previously stored value is returned.

Specified by:
checkCondition in class TabComponentCondition
Returns:
true if the condition is fullfilled, false otherwise