edu.neu.ccs.gui
Class MalformedDataEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjava.awt.AWTEvent
          extended byedu.neu.ccs.gui.AlertEvent
              extended byedu.neu.ccs.gui.MalformedDataEvent
All Implemented Interfaces:
Serializable

public class MalformedDataEvent
extends AlertEvent

Class of AWTEvents encapsulating the designation that a graphical input object has just been verified to have a malformed view state, or has just had its previously malformed view state restored to a well-formed state.

Since:
1.0
Version:
2.2
See Also:
Fragile, Serialized Form

Field Summary
private  ParseException ex
          The ParseException that was generated by an input component in response to malformed data.
private  String s
          The malformed data, or the well-formed data that replaced previously malformed data.
 
Fields inherited from class edu.neu.ccs.gui.AlertEvent
ALERT_OFF, ALERT_ON
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MalformedDataEvent(Object source, String data)
          Constructs a malformed data event generated by the given source object because the given String data has successfully replaced previously malformed data.
MalformedDataEvent(Object source, String data, ParseException exception)
          Constructs a malformed data event generated by the given source object because the given String data caused the given exception to be thrown.
 
Method Summary
 String getData()
          Returns the String data representing either the malformed view state that caused an exception to be thrown, or the well-formed view state that replaced a previously malformed view state.
 ParseException getParseException()
          Returns the exception that was thrown in response to the stored malformed view state.
 
Methods inherited from class edu.neu.ccs.gui.AlertEvent
isAlertOn
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s

private String s
The malformed data, or the well-formed data that replaced previously malformed data.


ex

private ParseException ex
The ParseException that was generated by an input component in response to malformed data.

Constructor Detail

MalformedDataEvent

public MalformedDataEvent(Object source,
                          String data,
                          ParseException exception)
Constructs a malformed data event generated by the given source object because the given String data caused the given exception to be thrown.

Parameters:
source - the object generating the event
data - the malformed data String
exception - the exception thrown in response to the malformed data
See Also:
MalformedDataEvent(Object, String)

MalformedDataEvent

public MalformedDataEvent(Object source,
                          String data)
Constructs a malformed data event generated by the given source object because the given String data has successfully replaced previously malformed data.

Parameters:
source - the object generating the event
data - the well-formed replacement data String
See Also:
MalformedDataEvent(Object, String, ParseException)
Method Detail

getData

public String getData()
Returns the String data representing either the malformed view state that caused an exception to be thrown, or the well-formed view state that replaced a previously malformed view state.


getParseException

public ParseException getParseException()
Returns the exception that was thrown in response to the stored malformed view state.