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
Modifier and TypeClassDescriptionclass
Panel to display the print preview. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutManager
static ComponentUI
Required by super class.void
Create and install any sub-components.void
Install default values for colors, fonts, borders, etc.void
Install any action listeners, mouse listeners, etc.void
Configures the specified component appropriate for the look and feel.void
stateChanged
(ChangeEvent event) void
Tear down and clean up.void
void
void
Tear 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 theComponentUI
instance 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
LayoutManager
on the component if necessary. - Create/add any required sub-components to the component.
- Create/install event listeners on the component.
- Create/install a
PropertyChangeListener
on 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:
installUI
in 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:
uninstallUI
in classComponentUI
-
uninstallDefaults
public void uninstallDefaults() -
uninstallComponents
public void uninstallComponents()Tear down and clean up. -
uninstallListeners
public void uninstallListeners() -
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-
createLayoutManager
- Returns:
- a BorderLayout
-