LafWidget<T>
AutoScrollWidget
, DesktopIconHoverPreviewWidget
, EditContextMenuWidget
, GhostAnimationWidget
, LockBorderWidget
, MenuSearchWidget
, PasswordStrengthCheckerWidget
, ScrollPaneSelectorWidget
, SelectAllOnFocusGainWidget
, SelectOnEscapeWidget
, TabHoverPreviewWidget
, TabOverviewDialogWidget
, TabPagerWidget
, TreeDragAndDropWidget
public abstract class LafWidgetAdapter<T extends javax.swing.JComponent> extends java.lang.Object implements LafWidget<T>
LafWidget
interface.Modifier and Type | Field | Description |
---|---|---|
protected T |
jcomp |
Associated component.
|
AUTO_SCROLL, COMPONENT_PREVIEW_PAINTER, HAS_LOCK_ICON, IGNORE_GLOBAL_LOCALE, PASSWORD_STRENGTH_CHECKER, TABBED_PANE_PREVIEW_PAINTER, TEXT_EDIT_CONTEXT_MENU, TEXT_FLIP_SELECT_ON_ESCAPE, TEXT_SELECT_ON_FOCUS, TREE_AUTO_DND_SUPPORT
Constructor | Description |
---|---|
LafWidgetAdapter() |
Modifier and Type | Method | Description |
---|---|---|
void |
installComponents() |
Installs components for the associated component.
|
void |
installDefaults() |
Installs default settings for the associated component.
|
void |
installListeners() |
Installs listeners for the associated component.
|
void |
installUI() |
Installs UI on the associated component.
|
void |
setComponent(T jcomp) |
Associates a component with
this widget. |
void |
uninstallComponents() |
Uninstalls components for the associated component.
|
void |
uninstallDefaults() |
Uninstalls default settings for the associated component.
|
void |
uninstallListeners() |
Uninstalls listeners for the associated component.
|
void |
uninstallUI() |
Uninstalls UI on the associated component.
|
requiresCustomLafSupport
protected T extends javax.swing.JComponent jcomp
public void setComponent(T jcomp)
LafWidget
this
widget.setComponent
in interface LafWidget<T extends javax.swing.JComponent>
jcomp
- Component.public void installUI()
LafWidget
public void installComponents()
LafWidget
installComponents
in interface LafWidget<T extends javax.swing.JComponent>
public void installDefaults()
LafWidget
installDefaults
in interface LafWidget<T extends javax.swing.JComponent>
public void installListeners()
LafWidget
installListeners
in interface LafWidget<T extends javax.swing.JComponent>
public void uninstallUI()
LafWidget
uninstallUI
in interface LafWidget<T extends javax.swing.JComponent>
public void uninstallComponents()
LafWidget
uninstallComponents
in interface LafWidget<T extends javax.swing.JComponent>
public void uninstallDefaults()
LafWidget
uninstallDefaults
in interface LafWidget<T extends javax.swing.JComponent>
public void uninstallListeners()
LafWidget
uninstallListeners
in interface LafWidget<T extends javax.swing.JComponent>