abbot.editor.widgets
Class WaitIndicator
java.lang.Object
abbot.editor.widgets.AbstractComponentDecorator
abbot.editor.widgets.WaitIndicator
- All Implemented Interfaces:
- KeyEventDispatcher
- Direct Known Subclasses:
- SpinningDialWaitIndicator
public class WaitIndicator
- extends AbstractComponentDecorator
- implements KeyEventDispatcher
Prevents mouse and key input to a JComponent
or JFrame
,
while dimming the component and displaying a wait cursor.
Methods inherited from class abbot.editor.widgets.AbstractComponentDecorator |
attach, clipDecorationBounds, getComponent, getDecorationBounds, getPainter, getToolTipText, getToolTipText, isShowing, isVisible, repaint, setCursor, setDecorationBounds, setDecorationBounds, setPainterBounds, setToolTipText, setVisible, synch, toString |
WaitIndicator
public WaitIndicator(JFrame frame)
- Place the wait indicator over the entire frame.
WaitIndicator
public WaitIndicator(JComponent target)
- Place the wait indicator over the given component.
dispose
public void dispose()
- Remove the wait indicator.
- Overrides:
dispose
in class AbstractComponentDecorator
dispatchKeyEvent
public boolean dispatchKeyEvent(KeyEvent e)
- Consume events targeted at our target component. Return true to
consume the event.
- Specified by:
dispatchKeyEvent
in interface KeyEventDispatcher
paint
public void paint(Graphics g)
- The default dims the blocked component.
- Specified by:
paint
in class AbstractComponentDecorator
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on