X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fmenu%2FTSubMenu.java;h=547711bcf5f4a39c3f261010f1be9ca0f960c174;hb=2a92cf977ee2ae37d8302a294c6338fa51a5ca45;hp=88094daa155b0ba46e9f758084510a352c8c0415;hpb=d36057dfab8def933a64be042b039d76708ac5ba;p=nikiroo-utils.git diff --git a/src/jexer/menu/TSubMenu.java b/src/jexer/menu/TSubMenu.java index 88094da..547711b 100644 --- a/src/jexer/menu/TSubMenu.java +++ b/src/jexer/menu/TSubMenu.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"), @@ -38,7 +38,7 @@ import static jexer.TKeypress.*; /** * TSubMenu is a special case menu item that wraps another TMenu. */ -public final class TSubMenu extends TMenuItem { +public class TSubMenu extends TMenuItem { // ------------------------------------------------------------------------ // Variables -------------------------------------------------------------- @@ -58,7 +58,7 @@ public final class TSubMenu extends TMenuItem { * * @param parent parent widget * @param title menu title. Title must contain a keyboard shortcut, - * denoted by prefixing a letter with "&", e.g. "&File" + * denoted by prefixing a letter with "&", e.g. "&File" * @param x column relative to parent * @param y row relative to parent */ @@ -163,8 +163,7 @@ public final class TSubMenu extends TMenuItem { } // Add the arrow - getScreen().putCharXY(getWidth() - 2, 0, GraphicsChars.CP437[0x10], - menuColor); + putCharXY(getWidth() - 2, 0, GraphicsChars.CP437[0x10], menuColor); } /** @@ -246,7 +245,7 @@ public final class TSubMenu extends TMenuItem { * Convenience function to add a sub-menu. * * @param title menu title. Title must contain a keyboard shortcut, - * denoted by prefixing a letter with "&", e.g. "&File" + * denoted by prefixing a letter with "&", e.g. "&File" * @return the new sub-menu */ public TSubMenu addSubMenu(final String title) {