org.pietschy.command

Class HoverEvent


public class HoverEvent
extends EventObject

Fired when the mouse enters and exits a command.
See Also:
CommandManager.addHoverListener(HoverListener), Command.addHoverListener(HoverListener), HoverListener

Constructor Summary

HoverEvent(Command command, Face face, Component component)

Method Summary

Command
getCommand()
Gets the command associated with the HoverEvent.
Face
getFace()
Gets the Face associated with the hover event.
boolean
isInWindow(Window window)
Checks if the specified window contains the the on which that raised the hover event.

Constructor Details

HoverEvent

public HoverEvent(Command command,
                  Face face,
                  Component component)

Method Details

getCommand

public Command getCommand()
Gets the command associated with the HoverEvent.
Returns:
the command associated with the HoverEvent.

getFace

public Face getFace()
Gets the Face associated with the hover event.
Returns:
the Face associated with the hover event.

isInWindow

public boolean isInWindow(Window window)
Checks if the specified window contains the the on which that raised the hover event.

This method can be used to filter out hover events that are raised on a shared

Parameters:
window - the component.
Returns:
true if the the hovered component is in the same window as the specified component.