X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fevent%2FTInputEvent.java;h=220512fab1f8ccfee3443e23209b822241dbed4b;hb=12b90437b5f22c2ae6e9b9b14c3b62b60f6143e5;hp=46ecfacc4f1030f30c87f5a4202257480db6305e;hpb=a2018e9964f6c58742cd1e6dd0a0c63e244a89d6;p=nikiroo-utils.git diff --git a/src/jexer/event/TInputEvent.java b/src/jexer/event/TInputEvent.java index 46ecfac..220512f 100644 --- a/src/jexer/event/TInputEvent.java +++ b/src/jexer/event/TInputEvent.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"), @@ -35,11 +35,31 @@ import java.util.Date; */ public abstract class TInputEvent { + // ------------------------------------------------------------------------ + // Variables -------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Time at which event was generated. */ private Date time; + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ + + /** + * Protected contructor. + */ + protected TInputEvent() { + // Save the current time + time = new Date(); + } + + // ------------------------------------------------------------------------ + // TInputEvent ------------------------------------------------------------ + // ------------------------------------------------------------------------ + /** * Get time. * @@ -49,11 +69,4 @@ public abstract class TInputEvent { return time; } - /** - * Protected contructor. - */ - protected TInputEvent() { - // Save the current time - time = new Date(); - } }