Class LinkItem

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    Banner, Logo, MenuItem

    public class LinkItem
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    A link in the navigation.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String href
      The href to use for the link.
      private Image image
      The image for the link.
      private java.lang.String name
      The name to display for the link.
      private java.lang.String target
      Where the new document will be displayed when the user follows a link, i.e.
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkItem()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LinkItem clone()
      Method clone.
      boolean equals​(java.lang.Object other)
      Method equals.
      java.lang.String getHref()
      Get the href to use for the link.
      Image getImage()
      Get the image for the link.
      java.lang.String getName()
      Get the name to display for the link.
      java.lang.String getTarget()
      Get where the new document will be displayed when the user follows a link, i.e.
      int hashCode()
      Method hashCode.
      void setHref​(java.lang.String href)
      Set the href to use for the link.
      void setImage​(Image image)
      Set the image for the link.
      void setName​(java.lang.String name)
      Set the name to display for the link.
      void setTarget​(java.lang.String target)
      Set where the new document will be displayed when the user follows a link, i.e.
      java.lang.String toString()
      Method toString.
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
        The name to display for the link.
      • href

        private java.lang.String href
        The href to use for the link.
      • target

        private java.lang.String target
        Where the new document will be displayed when the user follows a link, i.e. _blank opens the new document in a new window.
      • image

        private Image image
        The image for the link.
    • Constructor Detail

      • LinkItem

        public LinkItem()
    • Method Detail

      • clone

        public LinkItem clone()
        Method clone.
        Overrides:
        clone in class java.lang.Object
        Returns:
        LinkItem
      • equals

        public boolean equals​(java.lang.Object other)
        Method equals.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - a other object.
        Returns:
        boolean
      • getHref

        public java.lang.String getHref()
        Get the href to use for the link.
        Returns:
        String
      • getImage

        public Image getImage()
        Get the image for the link.
        Returns:
        Image
      • getName

        public java.lang.String getName()
        Get the name to display for the link.
        Returns:
        String
      • getTarget

        public java.lang.String getTarget()
        Get where the new document will be displayed when the user follows a link, i.e. _blank opens the new document in a new window.
        Returns:
        String
      • hashCode

        public int hashCode()
        Method hashCode.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int
      • setHref

        public void setHref​(java.lang.String href)
        Set the href to use for the link.
        Parameters:
        href - a href object.
      • setImage

        public void setImage​(Image image)
        Set the image for the link.
        Parameters:
        image - a image object.
      • setName

        public void setName​(java.lang.String name)
        Set the name to display for the link.
        Parameters:
        name - a name object.
      • setTarget

        public void setTarget​(java.lang.String target)
        Set where the new document will be displayed when the user follows a link, i.e. _blank opens the new document in a new window.
        Parameters:
        target - a target object.
      • toString

        public java.lang.String toString()
        Method toString.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String