* @param mouse a mouse-based event
* @return whether or not the mouse is on the editor
*/
- private final boolean mouseOnEditor(final TMouseEvent mouse) {
+ private boolean mouseOnEditor(final TMouseEvent mouse) {
if ((mouse.getAbsoluteX() >= getAbsoluteX() + 1)
&& (mouse.getAbsoluteX() < getAbsoluteX() + getWidth() - 1)
&& (mouse.getAbsoluteY() >= getAbsoluteY() + 1)
package jexer;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.List;
import jexer.bits.CellAttributes;
* @param mouse a mouse-based event
* @return whether or not the mouse is on the emulator
*/
- private final boolean mouseOnEmulator(final TMouseEvent mouse) {
+ private boolean mouseOnEmulator(final TMouseEvent mouse) {
synchronized (emulator) {
if (!emulator.isReading()) {
import java.util.Set;
import jexer.backend.Screen;
-import jexer.bits.Cell;
import jexer.bits.CellAttributes;
import jexer.bits.GraphicsChars;
import jexer.event.TCommandEvent;
* Close window. Note that windows without a close box can still be
* closed by calling the close() method.
*/
+ @Override
public void close() {
application.closeWindow(this);
}
import java.util.HashMap;
import java.util.List;
import java.util.LinkedList;
-import java.util.Map;
import jexer.TImage;
import jexer.bits.Cell;
import java.util.LinkedList;
import java.util.List;
-import jexer.bits.CellAttributes;
import jexer.event.TInputEvent;
import jexer.event.TKeypressEvent;
import jexer.event.TMouseEvent;
if (collectBuffer.charAt(0) == '>') {
extendedFlag = 1;
if (collectBuffer.length() >= 2) {
- i = Integer.parseInt(args.toString());
+ i = Integer.parseInt(args);
}
} else if (collectBuffer.charAt(0) == '=') {
extendedFlag = 2;
if (collectBuffer.length() >= 2) {
- i = Integer.parseInt(args.toString());
+ i = Integer.parseInt(args);
}
} else {
// Unknown code, bail out
args = collectBuffer.substring(0, collectBuffer.length() - 2);
}
- String [] p = args.toString().split(";");
+ String [] p = args.split(";");
if (p.length > 0) {
if ((p[0].equals("0")) || (p[0].equals("2"))) {
if (p.length > 1) {
import java.util.LinkedList;
import jexer.TWidget;
-import jexer.ttree.TTreeViewWidget;
/**
* TDirectoryTreeItem is a single item in a disk directory tree view.