javax.swing.plaf.basic
Class BasicViewportUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ViewportUI
javax.swing.plaf.basic.BasicViewportUI
public class BasicViewportUI
- extends ViewportUI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicViewportUI
public BasicViewportUI()
installDefaults
protected void installDefaults(JComponent c)
uninstallDefaults
protected void uninstallDefaults(JComponent c)
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- Description copied from class:
ComponentUI
- Sets up the specified component so it conforms the the design
guidelines of the implemented look and feel. When the look and
feel changes, a
ComponentUI
delegate is created.
The delegate object then receives an installUI
message.
This method should perform the following tasks:
- Set visual properties such as borders, fonts, colors, or
icons. However, no change should be performed for those
properties whose values have been directly set by the client
application. To allow the distinction, LookAndFeels are expected
to use values that implement the
UIResource
marker
interface, such as BorderUIResource
or ColorUIResource
.
- If necessary, install a
LayoutManager
.
- Embed custom sub-components. For instance, the UI delegate
for a
JSplitPane
might install a special
component for the divider.
- Register event listeners.
- Set up properties related to keyborad navigation, such as
mnemonics or focus traversal policies.
- Overrides:
installUI
in class ComponentUI
- Parameters:
c
- the component for which this delegate will provide
services.- See Also:
ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
uninstallUI
public void uninstallUI(JComponent c)
- Description copied from class:
ComponentUI
- Puts the specified component into the state it had before
ComponentUI.installUI(javax.swing.JComponent)
was called.
- Overrides:
uninstallUI
in class ComponentUI
- Parameters:
c
- the component for which this delegate has provided
services.- See Also:
ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()