2004.04.29


com.jdc.gui.html.tag.attr
Class Event

java.lang.Object
  |
  +--com.jdc.xml.tag.Attribute
        |
        +--com.jdc.gui.html.tag.Attribute
              |
              +--com.jdc.gui.html.tag.attr.Event
All Implemented Interfaces:
MarkupLanguage, Serializable
Direct Known Subclasses:
OnBlur, OnChange, OnClick, OnDoubleClick, OnFocus, OnKeyDown, OnKeyUp, OnReset, OnSubmit

public class Event
extends Attribute

The Event class represents an HTML event attribute associated with various HTML tag objects, like OnClick, OnDoubleClick, OnSubmit, etc..

Version:
1.0
Author:
Jay Damon
See Also:
Attribute, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.gui.html.tag.Attribute
SINGLE_QUOTE
 
Fields inherited from class com.jdc.xml.tag.Attribute
DOUBLE_QUOTE, EQUALS
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Event()
          Constructs a new HTML tag Event attribute object.
Event(boolean returnValue)
          Constructs a new HTML tag Event attribute object which, optionally, may return a value.
 
Method Summary
 String create(String event, String function)
          Creates and returns the Event tag attribute.
static void main(String[] args)
          Executes unit tests for the Event class.
 Attribute setName(String event)
          Sets the Event tag attribute name.
 Event setReturn()
          Sets the Event status to return a value.
 String toString()
          Returns the Event tag attribute.
 
Methods inherited from class com.jdc.gui.html.tag.Attribute
create, create, getName, getQuoteCharacter, getQuotedValue, getValue
 
Methods inherited from class com.jdc.xml.tag.Attribute
create, create, create, create, getQualifier, setQualifier, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Constructs a new HTML tag Event attribute object.


Event

public Event(boolean returnValue)
Constructs a new HTML tag Event attribute object which, optionally, may return a value.

Method Detail

create

public String create(String event,
                     String function)
Creates and returns the Event tag attribute.

Overrides:
create in class Attribute
Returns:
An Event attribute String.

setName

public Attribute setName(String event)
Sets the Event tag attribute name. If no event tag attribute name is specified, the name defaults to "onClick".

Overrides:
setName in class Attribute
Returns:
This Event attribute.

setReturn

public Event setReturn()
Sets the Event status to return a value.

Returns:
This Event attribute.

toString

public String toString()
Returns the Event tag attribute.

Overrides:
toString in class Attribute
Returns:
An Event attribute String.

main

public static void main(String[] args)
Executes unit tests for the Event class.


2004.04.29



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