com.hfg.html.Li Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.html;
//------------------------------------------------------------------------------
/**
* Represents a list item (<li>) tag.
*
* @author J. Alex Taylor, hairyfatguy.com
*/
//------------------------------------------------------------------------------
// com.hfg XML/HTML Coding Library
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
// [email protected]
//------------------------------------------------------------------------------
public class Li extends HTMLTagWithCoreEvents
{
//##########################################################################
// PRIVATE FIELDS
//##########################################################################
//##########################################################################
// CONSTRUCTORS
//##########################################################################
//--------------------------------------------------------------------------
public Li()
{
super(HTML.LI);
}
//--------------------------------------------------------------------------
public Li(String inContent)
{
this();
setContent(inContent);
}
//--------------------------------------------------------------------------
public Li(HTMLTag inContent)
{
this();
addSubtag(inContent);
}
//##########################################################################
// PUBLIC METHODS
//##########################################################################
// Overrides for HTMLTag setters to allow method chaining.
//--------------------------------------------------------------------------
@Override
public Li addClass(String inValue)
{
return (Li) super.addClass(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setClass(String inValue)
{
return (Li) super.setClass(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setId(String inValue)
{
return (Li) super.setId(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setStyle(CharSequence inValue)
{
return (Li) super.setStyle(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li addStyle(String inValue)
{
return (Li) super.addStyle(inValue);
}
// Overrides for HTMLTagWithCoreEvents setters to allow method chaining.
//--------------------------------------------------------------------------
@Override
public Li setOnClick(String inValue)
{
return (Li) super.setOnClick(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnDblClick(String inValue)
{
return (Li) super.setOnDblClick(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnMouseDown(String inValue)
{
return (Li) super.setOnMouseDown(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnMouseMove(String inValue)
{
return (Li) super.setOnMouseMove(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li appendToOnMouseOut(String inValue)
{
return (Li) super.appendToOnMouseOut(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnMouseOut(String inValue)
{
return (Li) super.setOnMouseOut(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li appendToOnMouseOver(String inValue)
{
return (Li) super.appendToOnMouseOver(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnMouseOver(String inValue)
{
return (Li) super.setOnMouseOver(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnMouseUp(String inValue)
{
return (Li) super.setOnMouseUp(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnKeyDown(String inValue)
{
return (Li) super.setOnKeyDown(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnKeyPress(String inValue)
{
return (Li) super.setOnKeyPress(inValue);
}
//--------------------------------------------------------------------------
@Override
public Li setOnKeyUp(String inValue)
{
return (Li) super.setOnKeyUp(inValue);
}
//--------------------------------------------------------------------------
public Img addImage(String inSrc)
{
Img image = new Img(inSrc);
addSubtag(image);
return image;
}
//--------------------------------------------------------------------------
public Link addLink()
{
Link link = new Link();
addSubtag(link);
return link;
}
//--------------------------------------------------------------------------
public Link addLink(CharSequence inURL)
{
Link link = new Link(inURL);
addSubtag(link);
return link;
}
//--------------------------------------------------------------------------
public Link addLink(CharSequence inURL, String inContent)
{
Link link = new Link(inURL, inContent);
addSubtag(link);
return link;
}
//--------------------------------------------------------------------------
public Link addLink(CharSequence inURL, HTMLTag inContent)
{
Link link = new Link(inURL, inContent);
addSubtag(link);
return link;
}
//--------------------------------------------------------------------------
public Nobr addNobr()
{
Nobr nobr = new Nobr();
addSubtag(nobr);
return nobr;
}
//--------------------------------------------------------------------------
public Nobr addNobr(String inContent)
{
Nobr nobr = new Nobr(inContent);
addSubtag(nobr);
return nobr;
}
//--------------------------------------------------------------------------
public Nobr addNobr(HTMLTag inContent)
{
Nobr nobr = new Nobr(inContent);
addSubtag(nobr);
return nobr;
}
//--------------------------------------------------------------------------
public Pre addPre()
{
Pre pre = new Pre();
addSubtag(pre);
return pre;
}
//--------------------------------------------------------------------------
public Pre addPre(String inContent)
{
Pre pre = new Pre(inContent);
addSubtag(pre);
return pre;
}
//--------------------------------------------------------------------------
public Pre addPre(HTMLTag inContent)
{
Pre pre = new Pre(inContent);
addSubtag(pre);
return pre;
}
//--------------------------------------------------------------------------
public Span addSpan()
{
Span span = new Span();
addSubtag(span);
return span;
}
//--------------------------------------------------------------------------
public Span addSpan(String inContent)
{
Span span = new Span(inContent);
addSubtag(span);
return span;
}
//--------------------------------------------------------------------------
public Span addSpan(HTMLTag inContent)
{
Span span = new Span(inContent);
addSubtag(span);
return span;
}
//--------------------------------------------------------------------------
public Table addTable()
{
Table table = new Table();
addSubtag(table);
return table;
}
//--------------------------------------------------------------------------
public Ul addUnorderedList()
{
Ul ul = new Ul();
addSubtag(ul);
return ul;
}
//--------------------------------------------------------------------------
public Li br()
{
HTMLUtil.br(this);
return this;
}
//--------------------------------------------------------------------------
public Li br(int inNumber)
{
HTMLUtil.br(this, inNumber);
return this;
}
//--------------------------------------------------------------------------
public void nbsp(int inNumber)
{
HTMLUtil.nbsp(this, inNumber);
}
//--------------------------------------------------------------------------
public void hr()
{
HTMLUtil.hr(this);
}
//--------------------------------------------------------------------------
public void hr(String inWidth)
{
HTMLUtil.hr(this, inWidth);
}
}