Class AbstractTheme<T extends Component>

java.lang.Object
com.spinyowl.legui.theme.AbstractTheme<T>
Direct Known Subclasses:
FlatComponentTheme

public abstract class AbstractTheme<T extends Component> extends Object
This interface defines method which can be used to change theme only for provided component. Children and parent components should not be changed by this method.
  • Constructor Details

    • AbstractTheme

      public AbstractTheme()
  • Method Details

    • apply

      public void apply(T component)
      Used to apply theme only for component and not apply for child components. Applies changes only for current class part and not for parent part.
      Parameters:
      component - component to apply theme.
    • applyAll

      public void applyAll(T component)
      Used to apply theme for component and for all children of this component. Should be reimplemented for components that contains other child components.
      Parameters:
      component - component to apply theme.