|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.XObject
Abstract superclass for
objects.Stringable
| Field Summary | |
protected SwingPropertyChangeSupport |
changeAdapter
Helper object for property change API. |
static String |
VALUE
Bound property name for the value property that indicates that a value has been set. |
| Constructor Summary | |
XObject()
|
|
| Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers the given object to listen for property change events generated by this object. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Registers the given object to listen for property change events with the provided name generated by this object. |
static String |
formatErrorMessage(ParseException ex,
String data)
Returns a neatly formatted String representation of the given exception and the data that generated the exception, for use in user error messages. |
abstract void |
fromStringData(String data)
Sets the state of this object using information contained in the given String. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Deregisters the given object from listening for property change events generated by this object. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Deregisters the given object from listening for property change events with the provided name generated by this object. |
static String[] |
toStringArray(Stringable[] obj)
Returns an array of Strings
containing the encapsulated states of the given array
of Stringable objects. |
abstract String |
toStringData()
Returns a String encapsulation of this object
that contains information needed
to set the state of this object at a later time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String VALUE
protected SwingPropertyChangeSupport changeAdapter
| Constructor Detail |
public XObject()
| Method Detail |
public abstract void fromStringData(String data)
throws ParseException
StringableString.
fromStringData in interface Stringabledata - the String containing state information
ParseException - if the data is malformedStringable.toStringData()public abstract String toStringData()
StringableString encapsulation of this object
that contains information needed
to set the state of this object at a later time.
toStringData in interface StringableStringable.fromStringData(String)public static String[] toStringArray(Stringable[] obj)
Strings
containing the encapsulated states of the given array
of Stringable objects.
obj - an array of Stringable objects
Stringspublic void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listener to be registered
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - the name of the desired propertylistener - the listener to be registeredpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - the listener to be deregistered
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - the name of the desired propertylistener - the listener to be deregistered
public static String formatErrorMessage(ParseException ex,
String data)
Returns a neatly formatted String representation of the given exception and the data that generated the exception, for use in user error messages.
As of 2.5.0, this method has been simplified
to return ex.getMessage() since
the formatting is now handled automatically via
code in the class BaseParser. The
data parameter is now ignored.
This method was left in place rather than edit numerous JPT classes that used the method.
ex - the ParseException to be reporteddata - the input String that generated the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||