Class 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
    • 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 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
      • Methods inherited from interface com.globalmentor.beans.PropertyBindable

        addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
      • Methods inherited from interface com.globalmentor.beans.PropertyConstrainable

        addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
    • 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 is null.
    • Method Detail

      • getNavigationPath

        public com.globalmentor.net.URIPath getNavigationPath()
        Specified by:
        getNavigationPath in interface NavigationModel
        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 interface NavigationModel
        Parameters:
        newNavigationPath - The new navigation path, or null if the navigation path is not available.
        Throws:
        java.lang.UnsupportedOperationException - because the content cannot be changed.
        See Also:
        NavigationModel.NAVIGATION_PATH_PROPERTY