private void addCharacter(char c) {
		switch(style) {
		case PLAIN_TEXT: 
			text = text + c;
			break;
		case INTEGERS:
			try {
				Integer.parseInt(text + c);
				text = text + c;
			} catch (NumberFormatException e) {}
			break;
		default:
			break;
		}
	}