Class Target

  • All Implemented Interfaces:
    TagBase, AAttributable, AreaAttributable, BaseAttributable, java.io.Serializable, java.lang.Cloneable


    public class Target
    extends AbstractAttribute
    implements AAttributable, AreaAttributable, BaseAttributable
    
     This attribute specifies where to display the linked resource. In HTML4, this is the name of, or a keyword for, a frame. In HTML5, it is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). The following keywords have special meanings:
    
       _self: Load the response into the same HTML4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.
      _blank: Load the response into a new unnamed HTML4 window or HTML5 browsing context.
      _parent: Load the response into the HTML4 frameset parent of the current frame or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.
      _top: In HTML4: Load the response into the full, original window, canceling all other frames. In HTML5: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self.
    
     Use this attribute only if the href attribute is present.
     
    target attribute for the element.
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Field Detail

      • BLANK

        public static final java.lang.String BLANK
        Load the response into a new unnamed HTML4 window or HTML5 browsing context.
        See Also:
        Constant Field Values
      • SELF

        public static final java.lang.String SELF
        Load the response into the same HTML4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.
        See Also:
        Constant Field Values
      • PARENT

        public static final java.lang.String PARENT
        Load the response into the HTML4 frameset parent of the current frame or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.
        See Also:
        Constant Field Values
      • TOP

        public static final java.lang.String TOP
        In HTML4: Load the response into the full, original window, canceling all other frames. In HTML5: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Target

        public Target​(java.lang.String value)
        Parameters:
        value - the value for the attribute
        Since:
        1.0.0
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        sets the value for this attribute
        Parameters:
        value - the value for the attribute.
        Since:
        1.0.0
      • getValue

        public java.lang.String getValue​()
        gets the value of this attribute
        Returns:
        the value of the attribute
        Since:
        1.0.0
      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0