java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.helpers.ConfigUIHandler

public class ConfigUIHandlerextends FormHandler
Handles router console UI configuration and theme management. Processes theme selection, mobile console settings, user management, language settings, password configuration, and display preferences for the router console interface.
  • Field Details

    • CONFIG_PATTERN

      private static final Pattern CONFIG_PATTERN
      Pattern of characters allowed in config keys.
    • _shouldSave

      private boolean _shouldSave
      True if the form is to be saved.
    • _universalTheming

      private boolean _universalTheming
      True to allow theming of all pages.
    • _forceMobileConsole

      private boolean _forceMobileConsole
      True to force the mobile console.
    • _embedApps

      private boolean _embedApps
      True to embed the apps in the console.
    • _useSoraFont

      private boolean _useSoraFont
      True to display the Sora font.
    • _config

      private String _config
      The name of the config being edited.
  • Constructor Details

    • ConfigUIHandler

      public ConfigUIHandler()
      ConfigUIHandler default constructor.
  • Method Details

    • processForm

      protected void processForm()
      Description copied from class: FormHandler
      Implement this to perform the final processing (in turn, adding formNotice and formError messages, etc)

      Will only be called if _action is non-null and the nonce is valid.

      Specified by:
      processForm in class FormHandler
    • setShouldsave

      public void setShouldsave(String moo)
      Sets the save flag for configuration changes.
      Parameters:
      moo - the JSP form value; any string, including null, enables the save
    • setUniversalTheming

      public void setUniversalTheming(String baa)
      Enables universal theming support.
      Parameters:
      baa - the JSP form value; any string, including null, enables universal theming
    • setForceMobileConsole

      public void setForceMobileConsole(String baa)
      Forces the mobile console interface.
      Parameters:
      baa - the JSP form value; any string, including null, forces the mobile console
    • setEmbedApps

      public void setEmbedApps(String baa)
      Enables embedded application display.
      Parameters:
      baa - the JSP form value; any string, including null, enables embedded application display
    • setUseSoraFont

      public void setUseSoraFont(String baa)
      Enables Sora font usage.
      Parameters:
      baa - the JSP form value; any string, including null, enables the Sora font
    • setTheme

      public void setTheme(String val)
      Sets the theme name for configuration.
      Parameters:
      val - the theme name
    • saveChanges

      private void saveChanges()
      Note - lang change is handled in CSSHelper but we still need to save it here.
    • addUser

      private void addUser()
      Adds a console user from the form.
    • delUser

      private void delUser()
      Deletes a console user from the form.
    • updateLoginTheme

      private void updateLoginTheme(String theme)
      Updates the theme of the login page.
      Parameters:
      theme - the new theme name