TrueZIP 6.8

de.schlichtherle.key.passwd.swing
Interface Feedback

All Superinterfaces:
Runnable
All Known Subinterfaces:
CreateKeyFeedback, InvalidOpenKeyFeedback, OpenKeyFeedback, UnknownOpenKeyFeedback
All Known Implementing Classes:
BasicCreateKeyFeedback, BasicFeedback, BasicInvalidCreateKeyFeedback, BasicInvalidKeyFeedback, BasicInvalidOpenKeyFeedback, BasicOpenKeyFeedback, BasicUnknownCreateKeyFeedback, BasicUnknownKeyFeedback, BasicUnknownOpenKeyFeedback, HurlingWindowFeedback, QuakingWindowFeedback

public interface Feedback
extends Runnable

Provides visual and/or audible feedback to the user when prompting for a key in its run() method.

Note that the run() method of this class is called when the panel is just showing. This implies that the panel is fully initialized and the implementation of this interface is not expected to do anything in particular.

Since:
TrueZIP 6.2
Version:
$Id: Feedback.java,v 1.4 2010/08/20 13:09:40 christian_schlichtherle Exp $
Author:
Christian Schlichtherle

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.
 

Method Detail

getPanel

JPanel getPanel()
Returns the panel which is used to provide feedback.


setPanel

void setPanel(JPanel panel)
Sets the panel which is used to provide feedback.

Parameters:
panel - The CreateKeyPanel to provide feedback.

run

void run()
Starts the visual/audible feedback. This method is called when the panel is shown in its containing window. It is run on AWT's Event Dispatch Thread, so it must complete fast in order not to block the GUI. If an implementation is going to do animations, the Timer class should be used to schedule timer events for the animation.

Specified by:
run in interface Runnable

TrueZIP 6.8

Copyright © 2005-2010 Schlichtherle IT Services. All Rights Reserved.