org.jboss.hal.resources.UIConstants Maven / Gradle / Ivy
/*
* Copyright 2022 Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.hal.resources;
/** UI related constants used in more than one place (not related to i18n). */
public interface UIConstants {
/** The time in milliseconds after one modal dialog is closed and the next one is shown. */
double SHORT_TIMEOUT = 111;
/** The timeout for medium running operations / actions before some kind of loading indicator is shown */
double MEDIUM_TIMEOUT = 333;
/** The timeout for long running operations / actions before some kind of loading indicator is shown */
double LONG_TIMEOUT = 666;
/** The default polling interval used for {@code setInterval()} */
double POLLING_INTERVAL = 3333;
/** The timeout until a non-sticky message is hidden */
double MESSAGE_TIMEOUT = 6000; // ms
long RELOAD_MESSAGE_ID = 5102007;
long RESTART_MESSAGE_ID = 1102010;
long DOMAIN_CHANGED_MESSAGE_ID = 291973;
String MASK_CHARACTER = "\u25CF";
String ARIA_DESCRIBEDBY = "aria-describedby";
String ALERT = "alert";
String ADD_CIRCLE_O = "add-circle-o";
String BODY = "body";
String BUTTON = "button";
String BOTTOM = "bottom";
String CHECKED = "checked";
String COLLAPSE = "collapse";
String CONSTRAINT = "constraint";
String CONTAINER = "container";
String CONTROLS = "controls";
String DIALOG = "dialog";
String DISABLED = "disables";
String DISMISS = "dismiss";
String DROPDOWN = "dropdown";
String DOWNLOAD = "download";
String EXPANDED = "expanded";
String FALSE = "false";
String FOR = "for";
String GROUP = "group";
String HAS_POPUP = "haspopup";
String HASH = "#";
String HEIGHT = "height";
String HIDDEN = "hidden";
String HIDDEN_MODAL = "hidden.bs.modal";
String HREF = "href";
String LABEL = "label";
String LABELLED_BY = "labelledby";
String MENU = "menu";
String MENUITEM = "menuitem";
String NAME = "name";
String NBSP = " ";
String OBJECT = "Object";
String PLACEHOLDER = "placeholder";
String PLACEMENT = "placement";
String PRESENTATION = "presentation";
String PROGRESSBAR = "progressbar";
String READONLY = "readonly";
String ROLE = "role";
String SELECTED = "selected";
String SEPARATOR = "separator";
String SHOWN_MODAL = "shown.bs.modal";
String TAB = "tab";
String TABINDEX = "tabindex";
String TABLIST = "tablist";
String TARGET = "target";
String TITLE = "title";
String TOGGLE = "toggle";
String TOP = "top";
String TOOLTIP = "tooltip";
String TRUE = "true";
String VALUE = "value";
String WIDTH = "width";
static String data(String name) {
return "data-" + name; // NON-NLS
}
}