jet.html.core
Class HTMLElementEvent

java.lang.Object
  extended by jet.html.core.HTMLElementEvent

public class HTMLElementEvent
extends java.lang.Object

This element holds the type and the method to call on an html element

Author:
Markus.Meisters@web.de

Field Summary
private  java.lang.String call
          the action to do e.g.
private  java.lang.String type
          The event type e.g. onClick, onMouseOver...
 
Constructor Summary
HTMLElementEvent(java.lang.String type, java.lang.String call)
          Creates a new instance of HTMLElementEvent
 
Method Summary
 boolean equals(java.lang.Object obj)
          this equalchecks if it is the same html event type.
 java.lang.String getCall()
          Returns the action to do
 java.lang.String getType()
          Returns the event type
 void setCall(java.lang.String call)
          Set the action to do
 void setType(java.lang.String type)
          Method to set the event type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private java.lang.String type
The event type e.g. onClick, onMouseOver...


call

private java.lang.String call
the action to do e.g. "javascript:doSomething()"

Constructor Detail

HTMLElementEvent

public HTMLElementEvent(java.lang.String type,
                        java.lang.String call)
Creates a new instance of HTMLElementEvent

Method Detail

getType

public java.lang.String getType()
Returns the event type

Returns:
String event type

setType

public void setType(java.lang.String type)
Method to set the event type

Parameters:
type - event

getCall

public java.lang.String getCall()
Returns the action to do

Returns:
String action e.g. javascript:...

setCall

public void setCall(java.lang.String call)
Set the action to do

Parameters:
call - action

equals

public boolean equals(java.lang.Object obj)
this equalchecks if it is the same html event type. Compares just the event type and not the call!

Overrides:
equals in class java.lang.Object