All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<String,MetaTag>, IMetadataContext<Serializable,Component>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable
Direct Known Subclasses:
IeEdgeMetaTag

public class MetaTag extends WebMarkupContainer implements IGenericComponent<String,MetaTag>
A simple meta tag component.

The value of the content attribute is stored as model object for this component

Author:
miha
See Also:
  • Constructor Details

    • MetaTag

      @Deprecated public MetaTag(String id, String name)
      Deprecated.
      please use constructor with content
      Construct.
      Parameters:
      id - the wicket markup id
      name - the name of this meta tag
    • MetaTag

      @Deprecated public MetaTag(String id, IModel<String> name)
      Deprecated.
      please use constructor with content
      Construct.
      Parameters:
      id - the wicket markup id
      name - the name of this meta tag
    • MetaTag

      public MetaTag(String id, String name, String content)
      Construct.
      Parameters:
      id - the wicket markup id
      name - the name of this meta tag
      content - the content of this meta tag
    • MetaTag

      public MetaTag(String id, IModel<String> name, IModel<String> content)
      Construct.
      Parameters:
      id - the wicket markup id
      name - the name of this meta tag
      content - the content of this meta tag
  • Method Details

    • type

      public MetaTag type(MetaTag.Type type)
      sets the type of meta tag. This is useful if you've a special meta-tag that is not listed in HTTP_EQUIV_NAMES but it should use "http-equiv".
      Parameters:
      type - the type to use
      Returns:
      this instance for chaining.
    • type

      public final MetaTag.Type type()
      Returns:
      the type of this meta tag.
    • name

      public String name()
      Returns:
      the name of this meta tag
    • content

      public String content()
      Returns:
      the content of this meta tag
    • content

      @Deprecated public MetaTag content(String content)
      Deprecated.
      please use constructor instead.
      sets the content of meta tag
      Parameters:
      content - content as string
      Returns:
      this instance for chaining
    • onComponentTag

      protected void onComponentTag(ComponentTag tag)
      Overrides:
      onComponentTag in class Component