com.guiseframework.component
Class AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>

java.lang.Object
  extended by com.guiseframework.event.MouseAdapter
      extended by com.guiseframework.component.AbstractComponent.AbstractFlyoverStrategy<S>
          extended by com.guiseframework.component.AbstractComponent.AbstractFlyoverFrameStrategy<S>
Type Parameters:
S - The type of component for which this object is to control flyovers.
All Implemented Interfaces:
Component.FlyoverStrategy<S>, GuiseEventListener, MouseListener, java.util.EventListener
Direct Known Subclasses:
AbstractComponent.DefaultFlyoverStrategy
Enclosing class:
AbstractComponent

public abstract static class AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>
extends AbstractComponent.AbstractFlyoverStrategy<S>

An abstract flyover strategy that uses flyover frames.

Author:
Garret Wilson

Constructor Summary
AbstractComponent.AbstractFlyoverFrameStrategy(S component)
          Component constructor.
 
Method Summary
 void closeFlyover()
          Closes the flyover for the component.
protected abstract  FlyoverFrame createFrame()
           
 void openFlyover()
          Shows a flyover for the component.
 
Methods inherited from class com.guiseframework.component.AbstractComponent.AbstractFlyoverStrategy
getComponent, getExtent, getLineExtent, getOpenEffect, getPageExtent, getStyleID, getTetherBearing, mouseEntered, mouseExited, setExtent, setLineExtent, setOpenEffect, setPageExtent, setStyleID, setTetherBearing
 
Methods inherited from class com.guiseframework.event.MouseAdapter
mouseClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.guiseframework.event.MouseListener
mouseClicked
 

Constructor Detail

AbstractComponent.AbstractFlyoverFrameStrategy

public AbstractComponent.AbstractFlyoverFrameStrategy(S component)
Component constructor.

Parameters:
component - The component for which this object will control flyovers.
Throws:
java.lang.NullPointerException - if the given component is null.
Method Detail

openFlyover

public void openFlyover()
Shows a flyover for the component. This implementation creates a flyover frame if necessary and then opens the frame.

See Also:
createFrame()

closeFlyover

public void closeFlyover()
Closes the flyover for the component. This implementation closes any open flyover frame.


createFrame

protected abstract FlyoverFrame createFrame()
Returns:
A new frame for displaying flyover information.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.