Class UIUtils
java.lang.Object
overit.geocallapp.utilities.ux.ui.util.UIUtils
The class contains all the UI utility methods.
- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds a WFM component style to the specifiedWindow.static intgetEventRow(UIMessage uim) static intgetEventRow(HashGetter event) Retrieves the row indexstatic voidsetROAllInput(Component root, boolean ro) Recursively sets the read-only state for all input components in the given component tree.static StringtranslateDateTimeFormat(String format) Translates a date/time format.
-
Method Details
-
setROAllInput
Recursively sets the read-only state for all input components in the given component tree.- Parameters:
root- the root component to start the traversalro-trueto set components to read-only,falseto make them editable
-
translateDateTimeFormat
Translates a date/time format.- Parameters:
format- the date/time format to be translated- Returns:
- the translated format
-
getEventRow
-
getEventRow
Retrieves the row index- Parameters:
event- theHashGetterobject containing event data- Returns:
- the row index, or -1 if not found
-
addWFMComponentStyleToWindow
Adds a WFM component style to the specifiedWindow.This method injects a reference to the "wfmComponentStyle.css" stylesheet into the provided window, ensuring the appropriate styles are applied to its components.
- Parameters:
w- theWindowto which the WFM component style should be added
-