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
|
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. |
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.
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.
Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.