Exemple #1
0
 public void addSelector(String controlId, int label, String items, int index) {
   String[] all = Util.explode(items, '|');
   for (int i = 0; i < all.length; ++i) {
     all[i] = all[i];
   }
   addSelector(controlId, label, all, index);
 }
Exemple #2
0
 public void addSelector(String controlId, int label, int[] items, int index) {
   String[] all = new String[items.length];
   for (int i = 0; i < all.length; ++i) {
     all[i] = JLocale.getString(items[i]);
   }
   addSelector(controlId, label, all, index);
 }
Exemple #3
0
  public void show(BaseActivity activity) {
    if (0 == agents.length()) {
      return;
    }
    form = new Forms(R.string.send_sms, this, true);
    if (null == phones) {
      form.addTextField(PHONE, R.string.phone, "");

    } else {
      form.addSelector(PHONE, "phone", phones.replace(',', '|'), 0);
    }

    if (0 < agents.indexOf('|')) {
      form.addSelector(AGENT, R.string.send_via, agents, 0);
    } else {
      form.addString(R.string.send_via, agents);
    }
    form.addTextField(TEXT, R.string.message, " ");
    form.show(activity);
  }
Exemple #4
0
 public void addSelector(int controlId, int label, String[] items, int index) {
   addSelector(String.valueOf(controlId), label, items, index);
 }