bibliothek.extension.gui.dock.theme.eclipse.stack.tab4
Class HoverCondition
java.lang.Object
bibliothek.extension.gui.dock.theme.eclipse.stack.tab4.TabComponentCondition
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HoverCondition
public HoverCondition(TabComponent component)
- Creates a new condition.
- Parameters:
component
- the component to observe
setController
public void setController(DockController controller)
- Sets the controller which is used to register global
MouseEvent
s.
- 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