Package com.illumon.iris.console
Interface IThreadCheckingRepaintManager
public interface IThreadCheckingRepaintManager
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Initially there was a rule that it is safe to create and use Swing components until they are realized but this rule is not valid any more, and now it is recommended to interact with Swing from EDT only.void
setCompleteCheck
(boolean completeCheck) Set the value for complete checking.void
setViolationHandler
(Consumer<Exception> handler) This callback will be called with an exception generated at the violation site.
-
Method Details
-
isCompleteCheck
boolean isCompleteCheck()Initially there was a rule that it is safe to create and use Swing components until they are realized but this rule is not valid any more, and now it is recommended to interact with Swing from EDT only.That's why completeCheck flag is used - if you test the old program switch it to false, but new applications should be tested with completeCheck set to true*
- Returns:
- true or false. By default, it is true.
-
setCompleteCheck
void setCompleteCheck(boolean completeCheck) Set the value for complete checking. SeeisCompleteCheck()
.- Parameters:
completeCheck
- true or false.
-
setViolationHandler
This callback will be called with an exception generated at the violation site. The exception includes a stack trace.- Parameters:
handler
- consumer for the violation exception
-