|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.swing.Flashable
public abstract class Flashable
Flashable is a basic interface to enable flashing in any component. Internally it uses Animator
to create the flashing effect.
isFlashableInstalled(javax.swing.JComponent)
to check if it is installed.
| Field Summary | |
|---|---|
protected Animator |
_animator
|
protected JComponent |
_component
|
protected Timer |
_timer
|
static String |
CLIENT_PROPERTY_FLASHABLE
|
| Constructor Summary | |
|---|---|
Flashable(JComponent component)
|
|
| Method Summary | |
|---|---|
abstract void |
clearFlashing()
Clears any flashing effect. |
abstract void |
flash()
This method actually does the flashing. |
protected Animator |
getAnimator()
|
JComponent |
getComponent()
Gets the table that will flash. |
static Flashable |
getFlashable(JComponent component)
Gets the TableFlashable installed on the table, if any. |
int |
getInterval()
Gets the interval, in ms. |
static boolean |
getSynchronizedFlashFlag()
Gets the flash flag. |
static boolean |
isFlashableInstalled(JComponent component)
Checks if there is a Flashable installed on the component. |
boolean |
isFlashing()
Checks if it is flashing. |
void |
setComponent(JComponent component)
Sets the table that will flash. |
void |
setInterval(int interval)
Sets the interval, in ms. |
void |
startFlashing()
Starts flashing. |
void |
stopFlashing()
Stops flashing. |
void |
uninstall()
Uninstalls the Flashable from the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLIENT_PROPERTY_FLASHABLE
protected JComponent _component
protected Animator _animator
protected Timer _timer
| Constructor Detail |
|---|
public Flashable(JComponent component)
| Method Detail |
|---|
public static boolean getSynchronizedFlashFlag()
public JComponent getComponent()
public void setComponent(JComponent component)
component - the new table.public int getInterval()
public void setInterval(int interval)
interval - the new interval.public abstract void flash()
public abstract void clearFlashing()
startFlashing() and stopFlashing().
protected Animator getAnimator()
public void startFlashing()
public void stopFlashing()
public void uninstall()
Flashable from the component. Once uninstalled, you have to create a new Flashable in
order to use thflashingng feature again. If you just want to stop flashing, you should use stopFlashing().
public boolean isFlashing()
public static boolean isFlashableInstalled(JComponent component)
component - the component.
public static Flashable getFlashable(JComponent component)
component - the component.
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||