Package io.guise.framework.model
Class ComponentNavigationModel
- java.lang.Object
-
- com.globalmentor.beans.BoundPropertyObject
-
- io.guise.framework.model.AbstractModel
-
- io.guise.framework.model.ComponentNavigationModel
-
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Model
,NavigationModel
public class ComponentNavigationModel extends AbstractModel implements NavigationModel
A navigation model that retrieves its navigation path dynamically from the indicated component.This implementation does not allow the navigation path to be set.
- Author:
- Garret Wilson
- See Also:
Components.getNavigationPath(Component)
-
-
Field Summary
-
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
-
Fields inherited from interface io.guise.framework.model.NavigationModel
NAVIGATION_PATH_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description ComponentNavigationModel(Component component)
Component constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.globalmentor.net.URIPath
getNavigationPath()
void
setNavigationPath(com.globalmentor.net.URIPath newNavigationPath)
Sets the navigation path This is a bound property.-
Methods inherited from class io.guise.framework.model.AbstractModel
getEventListenerManager, getPlainText
-
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ComponentNavigationModel
public ComponentNavigationModel(Component component)
Component constructor.- Parameters:
component
- The component used for retrieving the navigation path.- Throws:
java.lang.NullPointerException
- if the given component isnull
.
-
-
Method Detail
-
getNavigationPath
public com.globalmentor.net.URIPath getNavigationPath()
- Specified by:
getNavigationPath
in interfaceNavigationModel
- Returns:
- The navigation path, or
null
if the navigation path is not available.
-
setNavigationPath
public void setNavigationPath(com.globalmentor.net.URIPath newNavigationPath)
Sets the navigation path This is a bound property.This implementation does not allow the navigation path to be set.
- Specified by:
setNavigationPath
in interfaceNavigationModel
- Parameters:
newNavigationPath
- The new navigation path, ornull
if the navigation path is not available.- Throws:
java.lang.UnsupportedOperationException
- because the content cannot be changed.- See Also:
NavigationModel.NAVIGATION_PATH_PROPERTY
-
-