/**
* Background character for unfilled-in text.
*/
- protected char backgroundChar = GraphicsChars.HATCH;
+ protected int backgroundChar = GraphicsChars.HATCH;
/**
* Field text.
*
* @return background character
*/
- public final char getBackgroundChar() {
+ public final int getBackgroundChar() {
return backgroundChar;
}
*
* @param backgroundChar the background character
*/
- public void setBackgroundChar(final char backgroundChar) {
+ public void setBackgroundChar(final int backgroundChar) {
this.backgroundChar = backgroundChar;
}
/**
* Append char to the end of the field.
*
- * @param ch = char to append
+ * @param ch char to append
*/
- protected void appendChar(final char ch) {
+ protected void appendChar(final int ch) {
// Append the LAST character
text += ch;
position++;
*
* @param ch char to append
*/
- protected void insertChar(final char ch) {
- text = text.substring(0, position) + ch + text.substring(position);
+ protected void insertChar(final int ch) {
+ text = text.substring(0, position) + ((char) ch) + text.substring(position);
position++;
screenPosition += StringUtils.width(ch);
if ((screenPosition - windowStart) == getWidth()) {