Class ComponentDestination

java.lang.Object
com.globalmentor.beans.BoundPropertyObject
io.guise.framework.AbstractDestination
io.guise.framework.ComponentDestination
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Destination

public class ComponentDestination extends AbstractDestination
Default implementation of a navigation point based upon a component.
Author:
Garret Wilson
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The style bound property.

    Fields inherited from class com.globalmentor.beans.BoundPropertyObject

    NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ComponentDestination(com.globalmentor.net.URIPath path, Class<? extends Component> componentClass)
    Path and component constructor with no style specified.
    ComponentDestination(com.globalmentor.net.URIPath path, Class<? extends Component> componentClass, URI style)
    Path, component, and style constructor.
    ComponentDestination(Pattern pathPattern, Class<? extends Component> componentClass)
    Path pattern and component constructor with no style specified.
    ComponentDestination(Pattern pathPattern, Class<? extends Component> componentClass, URI style)
    Path pattern, component, and style constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends Component>
     
     
    void
    setStyle(URI newStyle)
    Sets the style of this destination.

    Methods inherited from class com.globalmentor.beans.BoundPropertyObject

    addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.globalmentor.beans.PropertyBindable

    addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
  • Field Details

    • STYLE_PROPERTY

      public static final String STYLE_PROPERTY
      The style bound property.
  • Constructor Details

    • ComponentDestination

      public ComponentDestination(com.globalmentor.net.URIPath path, Class<? extends Component> componentClass)
      Path and component constructor with no style specified.
      Parameters:
      path - The application context-relative path within the Guise container context, which does not begin with '/'.
      componentClass - The class of the component to represent this destination.
      Throws:
      NullPointerException - if the path and/or the component class is null.
      IllegalArgumentException - if the provided path is absolute.
    • ComponentDestination

      public ComponentDestination(com.globalmentor.net.URIPath path, Class<? extends Component> componentClass, URI style)
      Path, component, and style constructor.
      Parameters:
      path - The application context-relative path within the Guise container context, which does not begin with '/'.
      componentClass - The class of the component to represent this destination.
      style - The style of this destination, or null if no destination-specific style is specified.
      Throws:
      NullPointerException - if the path and/or the component class is null.
      IllegalArgumentException - if the provided path is absolute.
    • ComponentDestination

      public ComponentDestination(Pattern pathPattern, Class<? extends Component> componentClass)
      Path pattern and component constructor with no style specified.
      Parameters:
      pathPattern - The pattern to match an application context-relative path within the Guise container context, which does not begin with '/'.
      componentClass - The class of the component to represent this destination.
      Throws:
      NullPointerException - if the path pattern and/or the component class is null.
    • ComponentDestination

      public ComponentDestination(Pattern pathPattern, Class<? extends Component> componentClass, URI style)
      Path pattern, component, and style constructor.
      Parameters:
      pathPattern - The pattern to match an application context-relative path within the Guise container context, which does not begin with '/'.
      componentClass - The class of the component to represent this destination.
      style - The style of this destination, or null if no destination-specific style is specified.
      Throws:
      NullPointerException - if the path pattern and/or the component class is null.
      IllegalArgumentException - if the provided path is absolute.
  • Method Details

    • getComponentClass

      public Class<? extends Component> getComponentClass()
      Returns:
      The class of the component to represent this destination.
    • getStyle

      public URI getStyle()
      Returns:
      The style of this destination, or null if no destination-specific style is specified.
    • setStyle

      public void setStyle(URI newStyle)
      Sets the style of this destination. This is a bound property of type URI.
      Parameters:
      newStyle - The style of this destination, or null if no destination-specific style is specified.
      See Also: