|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.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, COLSPAN, DIR, DISABLED, HEIGHT, ID, LABEL, LANG, LINK_REL_STYLESHEET, LINK_TYPE_TEXT_CSS, MAXLENGTH, NAME, ROWSPAN, SIZE, SRC, STYLE, TABINDEX, TITLE, VALUE, WIDTH |
Constructor Summary | |
HTMLAttribute()
|
Method Summary | |
static java.lang.StringBuffer |
appendAlt(java.lang.String alt,
java.lang.StringBuffer html)
Appends the given alt as the alt attribute. |
static java.lang.StringBuffer |
appendAttribute(java.lang.String name,
int value,
java.lang.StringBuffer html)
Appends the given attribute name and value to the buffer. |
static java.lang.StringBuffer |
appendAttribute(java.lang.String name,
java.util.List values,
java.lang.StringBuffer html)
Appends the given attribute name and values to the buffer. |
static java.lang.StringBuffer |
appendAttribute(java.lang.String name,
java.lang.String value,
java.lang.StringBuffer html)
Appends the given attribute name and value to the buffer. |
static java.lang.StringBuffer |
appendBorder(int border,
java.lang.StringBuffer html)
Appends the given src as the src attribute. |
static java.lang.StringBuffer |
appendCellPadding(int padding,
java.lang.StringBuffer html)
Appends the given cell padding attribute. |
static java.lang.StringBuffer |
appendCellSpacing(int spacing,
java.lang.StringBuffer html)
Appends the given cell spacing attribute. |
static java.lang.StringBuffer |
appendClass(java.util.List values,
java.lang.StringBuffer html)
Appends the given values as the class attributes. |
static java.lang.StringBuffer |
appendClass(java.lang.String value,
java.lang.StringBuffer html)
Appends the given value as the class attribute. |
static java.lang.StringBuffer |
appendColumnSpan(int columns,
java.lang.StringBuffer html)
Appends the given values as the colspan attribute. |
static java.lang.StringBuffer |
appendHeight(int height,
java.lang.StringBuffer html)
Appends the given height as the height attribute. |
static java.lang.StringBuffer |
appendID(java.lang.String value,
java.lang.StringBuffer html)
Appends the given value as the title attribute. |
static java.lang.StringBuffer |
appendLabel(java.lang.String label,
java.lang.StringBuffer html)
Appends the given label as a label attribute. |
static java.lang.StringBuffer |
appendMaxLength(int maxlength,
java.lang.StringBuffer html)
Appends the given value as the value attribute. |
static java.lang.StringBuffer |
appendName(java.lang.String value,
java.lang.StringBuffer html)
Appends the given value as the value attribute. |
static java.lang.StringBuffer |
appendSize(int size,
java.lang.StringBuffer html)
Appends the given size as the size attribute. |
static java.lang.StringBuffer |
appendSrc(java.lang.String src,
java.lang.StringBuffer html)
Appends the given src as the src attribute. |
static java.lang.StringBuffer |
appendTabIndex(ExecutingContext ec,
boolean incrementIndex,
java.lang.StringBuffer html)
Appends the current tab index set in the current executing context and increments the current tab index. |
static java.lang.StringBuffer |
appendTabIndex(ExecutingContext ec,
java.lang.StringBuffer html)
Appends the current tab index set in the current executing context and increments the current tab index. |
static java.lang.StringBuffer |
appendTabIndex(int index,
java.lang.StringBuffer html)
Appends the given tab index. |
static java.lang.StringBuffer |
appendTitle(java.lang.String value,
java.lang.StringBuffer html)
Appends the given value as the title attribute. |
static java.lang.StringBuffer |
appendValue(java.lang.String value,
java.lang.StringBuffer html)
Appends the given value as the value attribute. |
static java.lang.StringBuffer |
appendWidth(int width,
java.lang.StringBuffer html)
Appends the given width as the width attribute. |
static java.lang.String |
encodeSpaces(java.lang.String value)
Encodes any spaces in the value for HTTP |
static java.lang.String |
prepareValue(java.lang.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 java.lang.StringBuffer appendAlt(java.lang.String alt, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendAttribute(java.lang.String name, int value, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendAttribute(java.lang.String name, java.lang.String value, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendAttribute(java.lang.String name, java.util.List values, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendBorder(int border, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendCellPadding(int padding, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendCellSpacing(int spacing, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendClass(java.lang.String value, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendClass(java.util.List values, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendColumnSpan(int columns, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendHeight(int height, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendID(java.lang.String value, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendLabel(java.lang.String label, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendMaxLength(int maxlength, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendName(java.lang.String value, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendSize(int size, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendSrc(java.lang.String src, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendTabIndex(int index, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendTabIndex(ExecutingContext ec, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendTabIndex(ExecutingContext ec, boolean incrementIndex, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendTitle(java.lang.String value, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendValue(java.lang.String value, java.lang.StringBuffer html)
public static java.lang.StringBuffer appendWidth(int width, java.lang.StringBuffer html)
public static java.lang.String encodeSpaces(java.lang.String value)
public static java.lang.String prepareValue(java.lang.String value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |