Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
class: JComponent.ReadObjectCallback [javadoc | source]
java.lang.Object
   javax.swing.JComponent$ReadObjectCallback

All Implemented Interfaces:
    ObjectInputValidation

This object is the ObjectInputStream callback that's called after a complete graph of objects (including at least one JComponent) has been read. It sets the UI property of each Swing component that was read to the current default with updateUI.

As each component is read in we keep track of the current set of root components here, in the roots vector. Note that there's only one ReadObjectCallback per ObjectInputStream, they're stored in the static readObjectCallbacks hashtable.

Constructor:
 ReadObjectCallback(ObjectInputStream s) throws Exception 
Method from javax.swing.JComponent$ReadObjectCallback Summary:
validateObject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.JComponent$ReadObjectCallback Detail:
 public  void validateObject() throws InvalidObjectException 
    This is the method that's called after the entire graph of objects has been read in. It initializes the UI property of all of the copmonents with SwingUtilities.updateComponentTreeUI.