X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjexer%2FTTimer.java;h=a86c132febbcfb31977ef6a73989e3846905d2ce;hb=be72cb5ccbd42fe304c0acafc380c5636f0d03a2;hp=622d89cb1df74a14ba2e846367b8f31fe19eeb8b;hpb=e16dda65585466c8987bd1efd718431450a96605;p=fanfix.git diff --git a/src/jexer/TTimer.java b/src/jexer/TTimer.java index 622d89c..a86c132 100644 --- a/src/jexer/TTimer.java +++ b/src/jexer/TTimer.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2016 Kevin Lamonte + * Copyright (C) 2017 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,15 @@ public final class TTimer { return nextTick; } + /** + * Set the recurring flag. + * + * @param recurring if true, re-schedule this timer after every tick + */ + public void setRecurring(final boolean recurring) { + this.recurring = recurring; + } + /** * The action to perfom on a tick. */