示例#1
0
  public static RequestParameter fromRequestName(String requestName) {

    if (ClientUtils.isNotBlank(requestName)) {
      for (final RequestParameter e : values()) {
        if (e.getRequestName().equals(requestName)) {
          return e;
        }
      }
    }

    return null;
  }
示例#2
0
  /**
   * Shows the given message into a new notification widget. The notifications widget are
   * graphically stacked.
   *
   * @param title The title.
   * @param html The message.
   * @param type The message's type.
   */
  static void show(final String title, final String html, MessageType type) {

    final Info info =
        new Info(ClientUtils.isNotBlank(title) ? title : MessageType.getTitle(type), html);
    info.show(type);
  }
示例#3
0
 public String getRequestName() {
   return ClientUtils.toLowerCase(name());
 }
示例#4
0
 public static String getRequestName(RequestParameter requestParameter) {
   return ClientUtils.toLowerCase(requestParameter.name());
 }