Interface StyleManager


  • public interface StyleManager
    Helper for working with nested styles. See NestedStyleContainer for more information.
    • Method Detail

      • getStyleById

        Style getStyleById​(java.lang.String styleId)
        Get the style for a specified ID. If the style is a FormPanelContainer, its form panel is not initialized. Instead of calling Style.createComponent(), you have to call createStyleComponent(Style) in order to handle the creation of a form panel.
        Parameters:
        styleId - the ID of the style
        Returns:
        the style
      • cloneStyleById

        Style cloneStyleById​(java.lang.String styleId)
        Clones a style for a specified ID. This is useful if you want to include multiple instances of the same style within a single style.
        Parameters:
        styleId - the ID of the style
        Returns:
        the cloned style
      • createStyleComponent

        javax.swing.JComponent createStyleComponent​(Style style)
        Create a style component. If the style is a FormPanelContainer, a new form panel will be set on the style before Style.createComponent() is called.
        Parameters:
        style - the style
        Returns:
        the component