Class GlistenStyleClasses


  • public final class GlistenStyleClasses
    extends Object
    A convenience class containing a number of style classes that are understood by the Glisten CSS code. Applying these style classes to UI controls will therefore have a visual impact on that control.
    Since:
    1.0.0
    • Field Detail

      • LIGHT

        public static final String LIGHT
        A style class for when the UI control should display using its light theme.
        See Also:
        Constant Field Values
      • DARK

        public static final String DARK
        A style class for when the UI control should display using its dark theme.
        See Also:
        Constant Field Values
      • BUTTON_FLAT

        public static final String BUTTON_FLAT
        A style class for when the button should display using a flat style.
        See Also:
        Constant Field Values
      • BUTTON_ROUND

        public static final String BUTTON_ROUND
        A style class for when the button should display using a round style.
        See Also:
        Constant Field Values
      • TEXT_INPUT_FULL_WIDTH

        public static final String TEXT_INPUT_FULL_WIDTH
        A style class for when the text input control should display as a full width control.
        See Also:
        Constant Field Values
      • TOGGLE_BUTTON_SWITCH

        public static final String TOGGLE_BUTTON_SWITCH
        A style class for when the toggle button should display as a switch.
        See Also:
        Constant Field Values
      • TAB_PANE_INVERTED

        public static final String TAB_PANE_INVERTED
        A style class to invert colors of the tab pane.
        See Also:
        Constant Field Values
    • Method Detail

      • applyStyleClass

        public static void applyStyleClass​(Node n,
                                           String... styleClasses)
        Convenience method that will conditionally apply the given style class varargs list to the given node, on the basis that doing so will not duplicate any of the style classes. All style classes that are already present on the node will not be applied a second time.
        Parameters:
        n - The node to apply the style classes to.
        styleClasses - The style classes to apply.