예제 #1
0
  @Override
  public void setDialogData(DataWrapper wrapper) {
    // TODO Auto-generated method stub
    super.setDialogData(wrapper);
    text.setText(wrapper.getString(KEY_TEXT));
    text.setHint(wrapper.getString(KEY_HINT));
    text.setInputType(wrapper.getInt(KEY_INPUT_TYPE).intValue());

    String positiveText = wrapper.getString(KEY_POSITIVE_BUTTON_TEXT);
    String negativeText = wrapper.getString(KEY_NEGATIVE_BUTTON_TEXT);

    if (!StringUtility.isEmpty(positiveText)) {
      positiveButton.setText(positiveText);
    }
    if (!StringUtility.isEmpty(negativeText)) {
      negativeButton.setText(negativeText);
    }
  }
예제 #2
0
 public String getText() {
   return StringUtility.toString(getObject(KEY_TEXT));
 }