private void deleteImage() {
    ServerResponse callback =
        new ServerResponse() {

          @Override
          public void serverResponse(JSONValue responseObj) {
            profileImage.setUrl("???");
          }
        };
    AuthResponder.get(
        constants,
        messages,
        callback,
        "portal/portal_admin.php?action=delProfileImage&image=" + id);
  }
  private void delField(final String field) {
    ServerResponse callback =
        new ServerResponse() {

          @Override
          public void serverResponse(JSONValue responseObj) {
            if (field.equals("facebook")) {
              delTable.setText(2, 1, "");
            } else if (field.equals("homepage")) {
              delTable.setText(0, 1, "");
            } else if (field.equals("linkedin")) {
              delTable.setText(3, 1, "");
            } else if (field.equals("twitter")) {
              delTable.setText(1, 1, "");
            }
          }
        };
    AuthResponder.get(
        constants, messages, callback, "portal/portal_admin.php?action=del" + field + "&id=" + id);
  }
  private void setBlocked(final boolean blocked) {
    ServerResponse callback =
        new ServerResponse() {

          @Override
          public void serverResponse(JSONValue responseObj) {
            blockAccessButton.setEnabled(!blocked);
            grantAccessButton.setEnabled(blocked);
            delTable.setText(
                4,
                1,
                blocked ? elements.portal_access_blocked() : elements.portal_access_granted());
          }
        };
    AuthResponder.get(
        constants,
        messages,
        callback,
        "portal/portal_admin.php?action=setblocked&blocked=" + (blocked ? 1 : 0) + "&id=" + id);
  }
    private void doSave() {
      StringBuffer sb = new StringBuffer();
      sb.append("action=save");

      Util.addPostParam(sb, "id", currentId);
      Util.addPostParam(sb, "trust", trustBox.getText());
      Util.addPostParam(sb, "description", descBox.getText());
      Util.addPostParam(sb, "defaultdesc", defaultDescBox.getText());
      Util.addPostParam(sb, "clubaction", Util.getSelected(actionClubBox));
      Util.addPostParam(sb, "trustaction", Util.getSelected(actionTrustBox));
      Util.addPostParam(sb, "debetpost", accountDebIdBox.getText());
      Util.addPostParam(sb, "creditpost", accountCredIdBox.getText());

      ServerResponse callback =
          new ServerResponse() {

            @Override
            public void serverResponse(JSONValue value) {
              JSONObject obj = value.isObject();

              String serverResponse = Util.str(obj.get("result"));

              if ("0".equals(serverResponse)) {
                mainErrorLabel.setText(messages.save_failed());
                Util.timedMessage(mainErrorLabel, "", 5);
              } else {
                /* Could probably be more effective, but why bother? */
                TrustActionCache.getInstance(constants, messages).flush(me);

                hide();
              }
            }
          };

      AuthResponder.post(constants, messages, callback, sb, "registers/trustaction.php");
    }