public class BasicViewportUI extends ViewportUI
Constructor and Description |
---|
BasicViewportUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c) |
protected void |
installDefaults(JComponent c) |
void |
installUI(JComponent c)
Sets up the specified component so it conforms the the design
guidelines of the implemented look and feel.
|
protected void |
uninstallDefaults(JComponent c) |
void |
uninstallUI(JComponent c)
Puts the specified component into the state it had before
ComponentUI.installUI(javax.swing.JComponent) was called. |
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
public BasicViewportUI()
protected void installDefaults(JComponent c)
protected void uninstallDefaults(JComponent c)
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUI
ComponentUI
delegate is created.
The delegate object then receives an installUI
message.
This method should perform the following tasks:
UIResource
marker
interface, such as BorderUIResource
or ColorUIResource
.LayoutManager
.JSplitPane
might install a special
component for the divider.installUI
in class ComponentUI
c
- the component for which this delegate will provide
services.ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
ComponentUI
ComponentUI.installUI(javax.swing.JComponent)
was called.uninstallUI
in class ComponentUI
c
- the component for which this delegate has provided
services.ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()