Esempio n. 1
0
 /**
  * Called by the system to indicate that a command has been invoked on a particular displayable.
  *
  * @param command the Command that ws invoked
  * @param displayable the Displayable on which the command was invoked
  */
 public void commandAction(
     javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable) {
   if (displayable == retIndexForm) {
     if (command == backCommand1) {
       // For adding user code into this block, select "Design | Screens | retIndexForm [Form] |
       // Assigned Commands | backCommand1" item in the inspector and invoke property editor on
       // Action property in Properties window.
       javax.microedition.lcdui.Display.getDisplay(this).setCurrent(null);
       destroyApp(true);
       notifyDestroyed();
     } else if (command == saveCommand) {
       // For adding user code into this block, select "Design | Screens | retIndexForm [Form] |
       // Assigned Commands | saveCommand" item in the inspector and invoke property editor on
       // Action property in Properties window.
       Persistence.PatientSuiteDispatcher.invoke(this, get_retIndexForm(), get_formulaValue());
     }
   }
 }
 public javax.microedition.lcdui.Display getDisplay() {
   return javax.microedition.lcdui.Display.getDisplay(this);
 }
Esempio n. 3
0
 /** This method initializes UI of the application. */
 private void initialize() {
   // For adding user code into this block, select "Design" item in the inspector and invoke
   // property editor on Action property in Properties window.
   javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_retIndexForm());
 }