java.lang.Object
javax.swing.plaf.ComponentUI
org.gjt.sp.jedit.print.PrintPreviewPaneUI
org.gjt.sp.jedit.print.BasicPrintPreviewPaneUI
- All Implemented Interfaces:
EventListener,ChangeListener
Concrete implementation of a PrintPreviewPaneUI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassPanel to display the print preview. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutManagerstatic ComponentUIRequired by super class.voidCreate and install any sub-components.voidInstall default values for colors, fonts, borders, etc.voidInstall any action listeners, mouse listeners, etc.voidConfigures the specified component appropriate for the look and feel.voidstateChanged(ChangeEvent event) voidTear down and clean up.voidvoidvoidTear down and clean up.Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Constructor Details
-
BasicPrintPreviewPaneUI
public BasicPrintPreviewPaneUI()
-
-
Method Details
-
createUI
Required by super class.- Parameters:
c- not used- Returns:
- one of these
-
installUI
Configures the specified component appropriate for the look and feel. This method is invoked when theComponentUIinstance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:- Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
- Install a
LayoutManageron the component if necessary. - Create/add any required sub-components to the component.
- Create/install event listeners on the component.
- Create/install a
PropertyChangeListeneron the component in order to detect and respond to component property changes appropriately. - Install keyboard UI (mnemonics, traversal, etc.) on the component.
- Initialize any appropriate instance data.
- Overrides:
installUIin classComponentUI- Parameters:
c- The actual component.
-
installDefaults
public void installDefaults()Install default values for colors, fonts, borders, etc. -
installComponents
public void installComponents()Create and install any sub-components. -
installListeners
public void installListeners()Install any action listeners, mouse listeners, etc. -
uninstallUI
Tear down and clean up.- Overrides:
uninstallUIin classComponentUI
-
uninstallDefaults
public void uninstallDefaults() -
uninstallComponents
public void uninstallComponents()Tear down and clean up. -
uninstallListeners
public void uninstallListeners() -
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
createLayoutManager
- Returns:
- a BorderLayout
-