persistenceexample4/Constants.java
package persistenceexample4;
/** Interface - Declaration from different constants
* General constants will declaraded (Version/Info)
* Methodes from CenterPage get your name
*/
public interface Constants {
// MI Application Name ** is also used by the MDK developer plug-in to define the correct archive name
String MI_APPLICATION_NAME = "MDK_persistence_q_s_miGUI_AWT";
// "Root" package name of example
String MI_PACKAGENAME = "persistenceexample4";
// HeaderPanel - Welcome text
String HP_WELCOMETEXT= "MDK";
// FooterPanel - Version / Info
String FP_VERSION = "Peristence API";
String FP_INFO = "Car inventory";
// Base package name, that is used to define targets.
String TP_PAGEBASE = MI_PACKAGENAME + ".page.";
// Querybutton text
String BUTTON_QUERY_TEXT = "Set Filter";
String BUTTON_QUERY_RESET_TEXT = "Reset Filter";
// GUI constants for navigation
int ROWS_PER_LONGPAGE = 7;
String HND_FIRSTPAGE = "gotoFirstPage";
String HND_PREVPAGE = "gotoPrevPage";
String HND_NEXTPAGE = "gotoNextPage";
String HND_LASTPAGE = "gotoLastPage";
String HND_GETPAGE = "getDesiredPage";
String HND_SHOWHOME = "showHome";
String HND_SHOWLIST = "showList";
String HND_SHOWCARCREATE = "showCarCreate";
String HND_SHOWCARDETAILS = "showCarDetails";
String HND_CHARACTERLIST = "showCharacterList";
String HND_DELETECAR = "deleteCar";
String HND_ADDCAR = "addCar";
String HND_SORTBYCAR = "sortByCar";
String TP_DETAILLIST = "DetailList";
String TP_CARCREATE = "CarCreatePage";
String TP_CARDETAIL = "CarDetailPage";
String TP_CARHOME = "DetailList";
String TXT_HOME = "Back...";
// General text
String WELCOME_MESSAGE = "I am a Mobile Infrastructure client application using the Persistence API";
String NOT_REGISTERED = "not registered";
String NOT_SPECIFIED = "not specified";
// Indices to attribute type
int I_ALL = -1;
int I_ID = 0;
int I_MAKE = 1;
int I_MODEL = 2;
int I_LICENSE = 3;
int I_ENGINE = 4;
int I_CYLINDER = 5;
int I_VALVES = 6;
String BLANK_VALUE = "";
}