Class LinkItem

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    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 alt
      The alt to use for the image.
      private java.lang.String border
      The border to use for the image.
      private java.lang.String height
      The height to use for the image.
      private java.lang.String href
      The href to use for the link.
      private java.lang.String img
      The source location of an image.
      private java.lang.String name
      The name to display for the link.
      private java.lang.String position
      Where to place the image regarding the displayed name (left or right).
      private java.lang.String target
      Where the new document will be displayed when the user follows a link, i.e.
      private java.lang.String title
      The title to use for the image.
      private java.lang.String width
      The width to use for the image.
    • 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 getAlt()
      Get the alt to use for the image.
      java.lang.String getBorder()
      Get the border to use for the image.
      java.lang.String getHeight()
      Get the height to use for the image.
      java.lang.String getHref()
      Get the href to use for the link.
      java.lang.String getImg()
      Get the source location of an image.
      java.lang.String getName()
      Get the name to display for the link.
      java.lang.String getPosition()
      Get where to place the image regarding the displayed name (left or right).
      java.lang.String getTarget()
      Get where the new document will be displayed when the user follows a link, i.e.
      java.lang.String getTitle()
      Get the title to use for the image.
      java.lang.String getWidth()
      Get the width to use for the image.
      int hashCode()
      Method hashCode.
      void setAlt​(java.lang.String alt)
      Set the alt to use for the image.
      void setBorder​(java.lang.String border)
      Set the border to use for the image.
      void setHeight​(java.lang.String height)
      Set the height to use for the image.
      void setHref​(java.lang.String href)
      Set the href to use for the link.
      void setImg​(java.lang.String img)
      Set the source location of an image.
      void setName​(java.lang.String name)
      Set the name to display for the link.
      void setPosition​(java.lang.String position)
      Set where to place the image regarding the displayed name (left or right).
      void setTarget​(java.lang.String target)
      Set where the new document will be displayed when the user follows a link, i.e.
      void setTitle​(java.lang.String title)
      Set the title to use for the image.
      void setWidth​(java.lang.String width)
      Set the width to use for the image.
      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.
      • img

        private java.lang.String img
        The source location of an image.
      • position

        private java.lang.String position
        Where to place the image regarding the displayed name (left or right).
      • alt

        private java.lang.String alt
        The alt to use for the image.
      • border

        private java.lang.String border
        The border to use for the image.
      • width

        private java.lang.String width
        The width to use for the image.
      • height

        private java.lang.String height
        The height to use for the image.
      • 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.
      • title

        private java.lang.String title
        The title to use for the image.
    • 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 -
        Returns:
        boolean
      • getAlt

        public java.lang.String getAlt()
        Get the alt to use for the image.
        Returns:
        String
      • getBorder

        public java.lang.String getBorder()
        Get the border to use for the image.
        Returns:
        String
      • getHeight

        public java.lang.String getHeight()
        Get the height to use for the image.
        Returns:
        String
      • getHref

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

        public java.lang.String getImg()
        Get the source location of an image.
        Returns:
        String
      • getName

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

        public java.lang.String getPosition()
        Get where to place the image regarding the displayed name (left or right).
        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
      • getTitle

        public java.lang.String getTitle()
        Get the title to use for the image.
        Returns:
        String
      • getWidth

        public java.lang.String getWidth()
        Get the width to use for the image.
        Returns:
        String
      • hashCode

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

        public void setAlt​(java.lang.String alt)
        Set the alt to use for the image.
        Parameters:
        alt -
      • setBorder

        public void setBorder​(java.lang.String border)
        Set the border to use for the image.
        Parameters:
        border -
      • setHeight

        public void setHeight​(java.lang.String height)
        Set the height to use for the image.
        Parameters:
        height -
      • setHref

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

        public void setImg​(java.lang.String img)
        Set the source location of an image.
        Parameters:
        img -
      • setName

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

        public void setPosition​(java.lang.String position)
        Set where to place the image regarding the displayed name (left or right).
        Parameters:
        position -
      • 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 -
      • setTitle

        public void setTitle​(java.lang.String title)
        Set the title to use for the image.
        Parameters:
        title -
      • setWidth

        public void setWidth​(java.lang.String width)
        Set the width to use for the image.
        Parameters:
        width -
      • toString

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