edu.neu.ccs.gui
Interface Fragile

All Known Implementing Classes:
FileView, StringViewer, TextFieldView

public interface Fragile

Interface to be implemented by classes of graphical interface components whose view state may be malformed.

This is most appropriate for user editable fields or dropdown views but also may be appropriate for other interface controls that may not be malformed but might have a view state outside of a valid range.

This interface only specifies that the component must be able to register and de-register objects from receiving notification when the component is found to have a malformed view state and when the view state is returned to a well-formed value. Usually, an interface component that contains the component will register as the listener and will signal some form of alert if the view of this component becomes malformed.

Since:
1.0
Version:
2.3
See Also:
MalformedDataListener, GeneralView

Method Summary
 void addMalformedDataListener(MalformedDataListener l)
          Registers the given MalformedDataListener to receive MalformedDataEvents when the view state data is found to be malformed and when the view state data is returned to a well-formed value.
 void removeMalformedDataListener(MalformedDataListener l)
          De-registers the given MalformedDataListener from receiving MalformedDataEvents when the view state data is found to be malformed and when the view state data is returned to a well-formed value.
 

Method Detail

addMalformedDataListener

public void addMalformedDataListener(MalformedDataListener l)
Registers the given MalformedDataListener to receive MalformedDataEvents when the view state data is found to be malformed and when the view state data is returned to a well-formed value.

Parameters:
l - the listener to register
See Also:
removeMalformedDataListener(MalformedDataListener)

removeMalformedDataListener

public void removeMalformedDataListener(MalformedDataListener l)
De-registers the given MalformedDataListener from receiving MalformedDataEvents when the view state data is found to be malformed and when the view state data is returned to a well-formed value.

Parameters:
l - the listener to de-register
See Also:
addMalformedDataListener(MalformedDataListener)