fr.emn.reactiveinput.system
Interface StdInputDisabler

All Known Implementing Classes:
AWTGlassMouseDisabler, AWTKeyboardDisabler, AWTMouseDisabler

public interface StdInputDisabler

The interface for all classes that disable standard input.


Method Summary
 void doDisable()
          Disables input for a short amount of time.
 boolean install(javax.swing.JFrame frameContext, java.lang.Object otherContext)
          Deactivates standard input handling and/or feedback on the given frame.
 boolean uninstall()
          Reactivates standard input handling in the context specified in install().
 

Method Detail

install

public boolean install(javax.swing.JFrame frameContext,
                       java.lang.Object otherContext)
Deactivates standard input handling and/or feedback on the given frame.

Parameters:
frameContext - is the java frame in which input handling must be disabled. A null value extends the context to the whole application or the whole system.
otherContext - is another class-specific piece of context, null most of the time.
Returns:
false if the given contexts are not supported.

uninstall

public boolean uninstall()
Reactivates standard input handling in the context specified in install().

Returns:
false if there is nothing to uninstall.

doDisable

public void doDisable()
Disables input for a short amount of time. Some classes require continuously calling this method between install() and uninstall().