|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.key.passwd.swing.BasicFeedback
public abstract class BasicFeedback
Provides feedback by beeping using the default toolkit.
If you would like to play a nice sound for feedback, you need to override
the startSound() method.
Warning: Playing a java.applet.AudioClip on J2SE
1.4.2_12 causes a client application not to terminate until System.exit(0)
is called explicitly - hence this feature is currently not implemented in
this class!
This issue is fixed in JSE 1.5.0_07 (and probably earlier versions).
| Field Summary | |
|---|---|
private JPanel |
panel
|
| Constructor Summary | |
|---|---|
BasicFeedback()
|
|
| Method Summary | |
|---|---|
JPanel |
getPanel()
Returns the panel which is used to provide feedback. |
void |
run()
Starts the visual/audible feedback. |
void |
setPanel(JPanel panel)
Sets the panel which is used to provide feedback. |
protected void |
startAnimation()
Starts the visual feedback. |
protected void |
startSound()
Starts the audible feedback. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private JPanel panel
| Constructor Detail |
|---|
public BasicFeedback()
| Method Detail |
|---|
public JPanel getPanel()
Feedback
getPanel in interface Feedbackpublic void setPanel(JPanel panel)
Feedback
setPanel in interface Feedbackpanel - The CreateKeyPanel to provide feedback.public void run()
startSound() and/or startAnimation() instead.
The implementation in this class calls startSound() and then
startAnimation().
run in interface Feedbackrun in interface Runnableprotected void startSound()
protected void startAnimation()
Timer class should be used to schedule timer events
for the animation.
The implementation in this class is a no-op.
|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||