Example #1
0
  public SettingsView(ZimbraME midlet, Settings settings) {
    super(midlet);

    mSettings = settings;

    // #style SettingsView
    TabbedForm f =
        new TabbedForm(
            Locale.get("main.Settings"),
            new String[] {
              Locale.get("settings.General"),
              Locale.get("settings.Display"),
              // Locale.get("settings.Mail"),
              Locale.get("settings.Shortcuts")
            },
            null);

    // #if true
    // # mView = f;
    // #endif

    f.setItemStateListener(this);
    f.setTabbedFormListener(this);

    createGeneralTab();
    createDisplayTab();
    createShortcutsTab();

    f.addCommand(SAVE);
    f.setCommandListener(this);
    f.setItemStateListener(this);
  }