public class BasicTipOfTheDayUI extends TipOfTheDayUI
JXTipOfTheDay
UI.Modifier and Type | Field and Description |
---|---|
protected PropertyChangeListener |
changeListener |
protected Component |
currentTipComponent |
protected JPanel |
tipArea |
protected Font |
tipFont |
protected JXTipOfTheDay |
tipPane |
Constructor and Description |
---|
BasicTipOfTheDayUI(JXTipOfTheDay tipPane) |
Modifier and Type | Method and Description |
---|---|
protected PropertyChangeListener |
createChangeListener() |
JDialog |
createDialog(Component parentComponent,
JXTipOfTheDay.ShowOnStartupChoice choice)
Creates a new JDialog to display a JXTipOfTheDay panel.
|
protected JDialog |
createDialog(Component parentComponent,
JXTipOfTheDay.ShowOnStartupChoice choice,
boolean showPreviousButton) |
static ComponentUI |
createUI(JComponent c) |
Dimension |
getPreferredSize(JComponent c) |
protected void |
installComponents() |
protected void |
installDefaults() |
protected void |
installKeyboardActions() |
protected void |
installListeners() |
void |
installUI(JComponent c) |
protected void |
showCurrentTip() |
protected void |
uninstallComponents() |
protected void |
uninstallDefaults() |
protected void |
uninstallListeners() |
void |
uninstallUI(JComponent c) |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint, update
protected JXTipOfTheDay tipPane
protected JPanel tipArea
protected Component currentTipComponent
protected Font tipFont
protected PropertyChangeListener changeListener
public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)
public static ComponentUI createUI(JComponent c)
public JDialog createDialog(Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice)
TipOfTheDayUI
choice
is not null then the window will offer a way for the
end-user to not show the tip of the day dialog.createDialog
in class TipOfTheDayUI
protected JDialog createDialog(Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice, boolean showPreviousButton)
public void installUI(JComponent c)
installUI
in class ComponentUI
protected void installKeyboardActions()
protected void installListeners()
protected PropertyChangeListener createChangeListener()
protected void installDefaults()
protected void installComponents()
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
protected void showCurrentTip()
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
protected void uninstallListeners()
protected void uninstallComponents()
protected void uninstallDefaults()
Copyright © 2016. All rights reserved.