All Implemented Interfaces:
TagBase, AAttributable, AreaAttributable, BaseAttributable, Serializable, 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:
  • Field Details

    • BLANK

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

      public static final 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:
    • PARENT

      public static final 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:
    • TOP

      public static final 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:
  • Constructor Details

    • Target

      public Target(String value)
      Parameters:
      value - the value for the attribute
      Since:
      1.0.0
  • Method Details

    • setValue

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

      public void setValue(boolean updateClient, String value)
      sets the value for this attribute
      Parameters:
      updateClient - true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.
      value - the value for the attribute.
      Since:
      2.1.15
    • getValue

      public 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