Package swingtree

Class UIForIcon<I extends JIcon>


public final class UIForIcon<I extends JIcon> extends UIForAnySwing<UIForIcon<I>,I>
A UIForAnySwing subclass specifically designed for adding icons to your SwingTree.
  • Method Details

    • _state

      protected swingtree.BuilderState<I> _state()
      Description copied from class: UIForAnything
      Returns the state of the builder, which is a container for the wrapped component as well as it's type and current EventProcessor.
      Specified by:
      _state in class UIForAnything<UIForIcon<I extends JIcon>,I extends JIcon,JComponent>
      Returns:
      The state of the builder.
    • _newBuilderWithState

      protected UIForIcon<I> _newBuilderWithState(swingtree.BuilderState<I> newState)
      Description copied from class: UIForAnything
      An internal wither method which creates a new builder instance with the provided BuilderState stored inside it.
      Specified by:
      _newBuilderWithState in class UIForAnything<UIForIcon<I extends JIcon>,I extends JIcon,JComponent>
      Parameters:
      newState - The new state which should be stored inside the new builder instance.
      Returns:
      A new builder instance with the provided state stored inside it.