Class StylesheetComponent

All Implemented Interfaces:
PartialStateHolder, StateHolder, TransientStateHolder, ValueHolder, ComponentSystemEventListener, FacesListener, SystemEventListenerHolder, EventListener

public class StylesheetComponent extends UIOutput

Custom component that replaces the Struts <html:stylesheet> tag.

  • Constructor Details

    • StylesheetComponent

      public StylesheetComponent()

      Create a new StylesheetComponent with default properties.

  • Method Details

    • getFamily

      public String getFamily()

      Return the component family to which this component belongs.

      Overrides:
      getFamily in class UIOutput
    • getPath

      public String getPath()

      Return the context-relative stylesheet path.

    • setPath

      public void setPath(String path)

      Set the context-relative stylesheet path.

      Parameters:
      path - The new path
    • restoreState

      public void restoreState(FacesContext context, Object state)

      Restore the state of this component.

      Specified by:
      restoreState in interface StateHolder
      Overrides:
      restoreState in class UIOutput
      Parameters:
      context - FacesContext for the current request
      state - State object from which to restore our state
    • saveState

      public Object saveState(FacesContext context)

      Save the state of this component.

      Specified by:
      saveState in interface StateHolder
      Overrides:
      saveState in class UIOutput
      Parameters:
      context - FacesContext for the current request