Package io.guise.framework
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
Default implementation of a navigation point based upon a component.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
-
Constructor Summary
ConstructorDescriptionComponentDestination
(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
Methods inherited from class io.guise.framework.AbstractDestination
equals, exists, getCategories, getDescription, getPath, getPath, getPathPattern, hashCode, isAuthorized, setCategories
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
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 isnull
.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, ornull
if no destination-specific style is specified.- Throws:
NullPointerException
- if the path and/or the component class isnull
.IllegalArgumentException
- if the provided path is absolute.
-
ComponentDestination
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 isnull
.
-
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, ornull
if no destination-specific style is specified.- Throws:
NullPointerException
- if the path pattern and/or the component class isnull
.IllegalArgumentException
- if the provided path is absolute.
-
-
Method Details
-
getComponentClass
- Returns:
- The class of the component to represent this destination.
-
getStyle
- Returns:
- The style of this destination, or
null
if no destination-specific style is specified.
-
setStyle
Sets the style of this destination. This is a bound property of typeURI
.- Parameters:
newStyle
- The style of this destination, ornull
if no destination-specific style is specified.- See Also:
-