java.lang.Object
furbelow.AbstractComponentDecorator
furbelow.WaitIndicator
- All Implemented Interfaces:
KeyEventDispatcher
- Direct Known Subclasses:
SpinningDialWaitIndicator
Prevents mouse and key input to a
JComponent
or JFrame
,
while dimming the component and displaying a wait cursor.-
Nested Class Summary
Nested classes/interfaces inherited from class furbelow.AbstractComponentDecorator
AbstractComponentDecorator.Painter
-
Field Summary
Fields inherited from class furbelow.AbstractComponentDecorator
DEFAULT_BOUNDS, TOP
-
Constructor Summary
ConstructorsConstructorDescriptionWaitIndicator
(JComponent target) Place the wait indicator over the given component.WaitIndicator
(JFrame frame) Place the wait indicator over the entire frame. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Consume events targeted at our target component.void
dispose()
Remove the wait indicator.void
The default dims the blocked component.Methods inherited from class furbelow.AbstractComponentDecorator
attach, clipDecorationBounds, getComponent, getDecorationBounds, getPainter, getToolTipText, getToolTipText, isVisible, repaint, setCursor, setDecorationBounds, setDecorationBounds, setPainterBounds, setToolTipText, setVisible, synch, toString
-
Constructor Details
-
WaitIndicator
Place the wait indicator over the entire frame. -
WaitIndicator
Place the wait indicator over the given component.
-
-
Method Details
-
dispose
public void dispose()Remove the wait indicator.- Overrides:
dispose
in classAbstractComponentDecorator
-
dispatchKeyEvent
Consume events targeted at our target component. Return true to consume the event.- Specified by:
dispatchKeyEvent
in interfaceKeyEventDispatcher
-
paint
The default dims the blocked component.- Specified by:
paint
in classAbstractComponentDecorator
-