public class ConfigUIHelper extends HelperBase
This class provides methods to generate HTML for various UI configuration sections including:
The class extends HelperBase and uses the router context to access configuration
properties and internationalization messages. All methods return HTML strings that can be
directly embedded in JSP pages.
Key functionality includes:
_context, _out, CHECKED, PROP_ADVANCED, SELECTED| Constructor and Description |
|---|
ConfigUIHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getForceMobileConsole()
Generates HTML for mobile console and app embedding configuration options.
|
String |
getLangSettings()
Generates HTML for language selection interface.
|
String |
getPasswordForm()
Generates HTML for console password management interface.
|
String |
getSettings()
Generates HTML for theme selection and display options configuration.
|
_t, _t, _t, _x, getChecked, getCheckedDefaultTrue, isAdvanced, ngettext, setContextId, storeWriterpublic String getForceMobileConsole()
Renders checkboxes for:
Includes a tooltip recommendation to enable universal theming when embedding applications for consistent visual appearance.
public String getLangSettings()
Renders radio buttons for all available languages with their corresponding flag icons and display names. The current language is pre-selected based on the router's language configuration.
Supports both ISO 639-1 two-letter codes and ISO 639-2 three-letter codes. Languages with country-specific variants include the country name in parentheses. The "Untagged strings" option is only shown for advanced users.
Performs intelligent language matching by first trying the full language+country code, then falling back to the language-only code, and finally defaulting to English.
public String getPasswordForm()
Renders a form for managing router console authentication including:
The delete user button is hidden when no users are configured. When users exist, shows a table with checkboxes for removal and the current usernames. Always includes fields for adding new users.
public String getSettings()
Renders a section containing:
Themes are discovered from the filesystem and user configuration properties. The current theme is pre-selected based on router configuration.