2004.04.29


com.jdc.gui.html.tag
Class Select

java.lang.Object
  |
  +--com.jdc.xml.ComplexTag
        |
        +--com.jdc.gui.html.ComplexTag
              |
              +--com.jdc.gui.html.tag.Select
All Implemented Interfaces:
MarkupLanguage, Serializable

public class Select
extends ComplexTag

Select is used to create the HTML required to create a selection list to display in a browser, including the start tag, the select attributes, and the end tag as well as the selection options to display.

Version:
1.0
Author:
Jay Damon
See Also:
Option, Name, Size, Serialized Form

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Select()
          Constructs a Select object.
Select(boolean format)
          Constructs a Select object and sets the format status.
 
Method Summary
 String create(String options)
          Create and return the HTML required to create a selection list in a browser.
 String endTag()
          Return an select end tag.
 Select setClass(String classname)
          Set the selection list tag Class name.
 Select setId(String id)
          Set the selection list tag id.
 Select setMultiple()
          Set the selection list multiple.
 Select setName(String name)
          Set the selection list name.
 Select setOnChange(String eventAction)
          Set the selection list tag onBlur event action.
 Select setSize(int size)
          Set the selection list size.
 Select setStyle(Style style)
          Set the selection list style.
 String startTag()
          Return a select start tag.
 
Methods inherited from class com.jdc.gui.html.ComplexTag
addAttribute, create, create, endTag, setFormat, setIdentifier, startTag
 
Methods inherited from class com.jdc.xml.ComplexTag
addAttribute, create, getAttributes, getBody, getIdentifier, setBody, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Select

public Select()
Constructs a Select object.


Select

public Select(boolean format)
Constructs a Select object and sets the format status.

Method Detail

create

public String create(String options)
Create and return the HTML required to create a selection list in a browser.

Overrides:
create in class ComplexTag
Returns:
String Selection list with options.

startTag

public String startTag()
Return a select start tag.

Overrides:
startTag in class ComplexTag
Returns:
String Select start tag.

endTag

public String endTag()
Return an select end tag.

Overrides:
endTag in class ComplexTag
Returns:
String Select end tag.

setId

public Select setId(String id)
Set the selection list tag id.

Returns:
Select

setName

public Select setName(String name)
Set the selection list name.

Returns:
Select

setClass

public Select setClass(String classname)
Set the selection list tag Class name.

Returns:
selection list

setOnChange

public Select setOnChange(String eventAction)
Set the selection list tag onBlur event action.

Returns:
Select

setSize

public Select setSize(int size)
Set the selection list size.

Returns:
Select

setStyle

public Select setStyle(Style style)
Set the selection list style.

Returns:
Select

setMultiple

public Select setMultiple()
Set the selection list multiple.

Returns:
Select

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.