edu.neu.ccs.gui
Class MalformedDataEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
|
+--edu.neu.ccs.gui.AlertEvent
|
+--edu.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
- See Also:
Fragile,
Serialized Form
| 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 |
|
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. |
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 eventdata - the malformed data Stringexception - 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 eventdata - the well-formed
replacement data String- See Also:
MalformedDataEvent(Object, String, ParseException)
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.