*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
import jexer.event.TKeypressEvent;
import jexer.event.TMouseEvent;
import static jexer.TKeypress.*;
import jexer.event.TKeypressEvent;
import jexer.event.TMouseEvent;
import static jexer.TKeypress.*;
- getScreen().hLineXY(0, 0, getWidth(), ' ', color);
+ hLineXY(0, 0, getWidth(), ' ', color);
- getScreen().putStringXY(offset, 0, line, color);
+ putStringXY(offset, 0, line, color);
- getScreen().putStringXY(offset + line.length(), 0, text,
- selectedColor);
+ putStringXY(offset + StringUtils.width(line), 0, text, selectedColor);
- getScreen().putStringXY(offset + line.length(), 0, text, textColor);
+ putStringXY(offset + StringUtils.width(line), 0, text, textColor);
- getScreen().putCharXY(offset + getExpanderX(), 0, '-',
- expanderColor);
+ putCharXY(offset + getExpanderX(), 0, '-', expanderColor);
- getScreen().putCharXY(offset + getExpanderX(), 0, '+',
- expanderColor);
+ putCharXY(offset + getExpanderX(), 0, '+', expanderColor);
* @return the maximum number of columns for this item or its children
*/
public int getMaximumColumn() {
* @return the maximum number of columns for this item or its children
*/
public int getMaximumColumn() {