java.lang.Object
org.bzdev.swing.SimpleJTextPane.State
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- SimpleJTextPane
Saved attribute state for a SimpleJTextPane.
The method
SimpleJTextPane.saveAttributeState()
will
store this text pane's default attribute set and restore it
when restore()
is called. The close()
method just calls restore()
. The class
AutoCloseable
is implemented so that this class can be
used to create a try-with-resources block.-
Method Summary
-
Method Details
-
restore
public void restore()Restore the state to its initial value. -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-