Click
Click Examples

Source Viewer : WEB-INF/classes/org/apache/click/examples/control/html/list/ListItem.java

package org.apache.click.examples.control.html.list;

import org.apache.click.control.AbstractContainer;

/**
 * This control provides HTML listitem for ordered and unordered lists.
 */
public class ListItem extends AbstractContainer {

    private static final long serialVersionUID = 1L;

    public ListItem() {
    }

    public ListItem(String name) {
        if(name != null) {
            setName(name);
        }
    }

    public ListItem(String name, String id) {
        this(name);
        setAttribute("id", id);
    }

    public final String getTag() {
        return "li";
    }
}