Package io.guise.framework.component
Class AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>
- java.lang.Object
-
- io.guise.framework.event.MouseAdapter
-
- io.guise.framework.component.AbstractComponent.AbstractFlyoverStrategy<S>
-
- io.guise.framework.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
Constructors Constructor Description AbstractFlyoverFrameStrategy(S component)
Component constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
closeFlyover()
Closes the flyover for the component.protected abstract FlyoverFrame
createFrame()
void
openFlyover()
Shows a flyover for the component.-
Methods inherited from class io.guise.framework.component.AbstractComponent.AbstractFlyoverStrategy
getComponent, getExtent, getLineExtent, getOpenEffect, getPageExtent, getStyleID, getTetherBearing, mouseEntered, mouseExited, setExtent, setLineExtent, setOpenEffect, setPageExtent, setStyleID, setTetherBearing
-
Methods inherited from class io.guise.framework.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 io.guise.framework.event.MouseListener
mouseClicked
-
-
-
-
Constructor Detail
-
AbstractFlyoverFrameStrategy
public AbstractFlyoverFrameStrategy(S component)
Component constructor.- Parameters:
component
- The component for which this object will control flyovers.- Throws:
java.lang.NullPointerException
- if the given component isnull
.
-
-
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.
-
-