1 /* 2 * This file is part of libbluray 3 * Copyright (C) 2010 William Hahne 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library. If not, see 17 * <http://www.gnu.org/licenses/>. 18 */ 19 20 package org.havi.ui; 21 22 import org.havi.ui.event.HKeyEvent; 23 import org.havi.ui.event.HTextEvent; 24 25 public interface HKeyboardInputPreferred { getEditMode()26 public boolean getEditMode(); 27 setEditMode(boolean edit)28 public void setEditMode(boolean edit); 29 getType()30 public int getType(); 31 getValidInput()32 public char[] getValidInput(); 33 processHTextEvent(HTextEvent event)34 public void processHTextEvent(HTextEvent event); 35 processHKeyEvent(HKeyEvent event)36 public void processHKeyEvent(HKeyEvent event); 37 38 public static final int INPUT_NUMERIC = 1; 39 public static final int INPUT_ALPHA = 2; 40 public static final int INPUT_ANY = 4; 41 public static final int INPUT_CUSTOMIZED = 8; 42 } 43