Exemplo n.º 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;
  }
Exemplo n.º 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);
  }