|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.html.HTMLAttribute
This class contains convience methods that may be used to generate attribute tags on HTML elements.
Field Summary |
Fields inherited from interface planetj.html.IHTMLAttribute |
ALT, BORDER, CELLPADDING, CELLSPACING, CLASS, DIR, DISABLED, HEIGHT, ID, LABEL, LANG, LINK_REL_STYLESHEET, LINK_TYPE_TEXT_CSS, MAXLENGTH, NAME, SIZE, SRC, STYLE, TITLE, VALUE, WIDTH |
Constructor Summary | |
HTMLAttribute()
|
Method Summary | |
static StringBuffer |
appendAlt(String alt,
StringBuffer html)
Appends the given alt as the alt attribute. |
static StringBuffer |
appendAttribute(String name,
int value,
StringBuffer html)
Appends the given attribute name and value to the buffer. |
static StringBuffer |
appendAttribute(String name,
String value,
StringBuffer html)
Appends the given attribute name and value to the buffer. |
static StringBuffer |
appendBorder(int border,
StringBuffer html)
Appends the given src as the src attribute. |
static StringBuffer |
appendCellPadding(int padding,
StringBuffer html)
Appends the given cell padding attribute. |
static StringBuffer |
appendCellSpacing(int spacing,
StringBuffer html)
Appends the given cell spacing attribute. |
static StringBuffer |
appendClass(String value,
StringBuffer html)
Appends the given value as the title attribute. |
static StringBuffer |
appendHeight(int height,
StringBuffer html)
Appends the given height as the height attribute. |
static StringBuffer |
appendID(String value,
StringBuffer html)
Appends the given value as the title attribute. |
static StringBuffer |
appendLabel(String label,
StringBuffer html)
Appends the given label as a label attribute. |
static StringBuffer |
appendMaxLength(int maxlength,
StringBuffer html)
Appends the given value as the value attribute. |
static StringBuffer |
appendName(String value,
StringBuffer html)
Appends the given value as the value attribute. |
static StringBuffer |
appendSize(int size,
StringBuffer html)
Appends the given size as the size attribute. |
static StringBuffer |
appendSrc(String src,
StringBuffer html)
Appends the given src as the src attribute. |
static StringBuffer |
appendTitle(String value,
StringBuffer html)
Appends the given value as the title attribute. |
static StringBuffer |
appendValue(String value,
StringBuffer html)
Appends the given value as the value attribute. |
static StringBuffer |
appendWidth(int width,
StringBuffer html)
Appends the given width as the width attribute. |
static String |
encodeSpaces(String value)
Encodes any spaces in the value for HTTP |
static String |
prepareValue(String value)
Checks the given value to see if it is value to include with generated HTML code. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTMLAttribute()
Method Detail |
public static StringBuffer appendAlt(String alt, StringBuffer html)
public static StringBuffer appendAttribute(String name, int value, StringBuffer html)
public static StringBuffer appendAttribute(String name, String value, StringBuffer html)
public static StringBuffer appendBorder(int border, StringBuffer html)
public static StringBuffer appendCellPadding(int padding, StringBuffer html)
public static StringBuffer appendCellSpacing(int spacing, StringBuffer html)
public static StringBuffer appendClass(String value, StringBuffer html)
public static StringBuffer appendHeight(int height, StringBuffer html)
public static StringBuffer appendID(String value, StringBuffer html)
public static StringBuffer appendLabel(String label, StringBuffer html)
public static StringBuffer appendMaxLength(int maxlength, StringBuffer html)
public static StringBuffer appendName(String value, StringBuffer html)
public static StringBuffer appendSize(int size, StringBuffer html)
public static StringBuffer appendSrc(String src, StringBuffer html)
public static StringBuffer appendTitle(String value, StringBuffer html)
public static StringBuffer appendValue(String value, StringBuffer html)
public static StringBuffer appendWidth(int width, StringBuffer html)
public static String encodeSpaces(String value)
public static String prepareValue(String value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |