## org.mortbay.html
Class StyleLink

    java.lang.Object
      org.mortbay.html.Element
          org.mortbay.html.Tag
              org.mortbay.html.StyleLink

    public class StyleLink

extends Tag

CSS Style LINK.

Version:
  $Id: StyleLink.java,v 1.3 2004/05/09 20:31:28 gregwilkins Exp $
Author:
  Greg Wilkins (gregw)

Field Summary
`static String` `HREF`
`static String` `MEDIA`
`static String` `REL`
`static String` `TYPE`

Fields inherited from class org.mortbay.html.Tag
`tag`

Fields inherited from class org.mortbay.html.Element
`ALIGN, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH`

Constructor Summary
`StyleLink(String href)` Constructor.
`StyleLink(String rel, String href, String type, String media)` Full Constructor.

Method Summary

Methods inherited from class org.mortbay.html.Tag
`write`

Methods inherited from class org.mortbay.html.Element
`attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, size, style, top, toString, width, width, width, write, write`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### REL

    public static final String REL

See Also:
  Constant Field Values

### HREF

    public static final String HREF

See Also:
  Constant Field Values

### TYPE

    public static final String TYPE

See Also:
  Constant Field Values

### MEDIA

    public static final String MEDIA

See Also:
  Constant Field Values

Constructor Detail

### StyleLink

    public StyleLink(String href)

  Constructor.

  Parameters:
    `href` - The URL of the style sheet

### StyleLink

    public StyleLink(String rel,
                     String href,
                     String type,
                     String media)

  Full Constructor.

  Parameters:
    `rel` - Style Relationship, default StyleSheet if null.
    `href` - The URL of the style sheet
    `type` - The type, default text/css if null
    `media` - The media, not specified if null

Copyright © 2007 Mort Bay Consulting. All Rights Reserved.