X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FBackend.java;h=eaed7e64966228e6386d21349c757ae80efaa5e2;hb=12b90437b5f22c2ae6e9b9b14c3b62b60f6143e5;hp=2793ab00fa0eef73740b055cdd87f04dc8f92ace;hpb=42873e30bf487bc0b695d60652dba44f82185dbb;p=nikiroo-utils.git diff --git a/src/jexer/backend/Backend.java b/src/jexer/backend/Backend.java index 2793ab0..eaed7e6 100644 --- a/src/jexer/backend/Backend.java +++ b/src/jexer/backend/Backend.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -60,6 +60,13 @@ public interface Backend { */ public void flushScreen(); + /** + * Check if there are events in the queue. + * + * @return if true, getEvents() has something to return to the application + */ + public boolean hasEvents(); + /** * Classes must provide an implementation to get keyboard, mouse, and * screen resize events. @@ -81,4 +88,17 @@ public interface Backend { */ public void setTitle(final String title); + /** + * Set listener to a different Object. + * + * @param listener the new listening object that run() wakes up on new + * input + */ + public void setListener(final Object listener); + + /** + * Reload backend options from System properties. + */ + public void reloadOptions(); + }