Package org.jdesktop.swingx.plaf.basic
Class BasicTipOfTheDayUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PanelUI
-
- org.jdesktop.swingx.plaf.TipOfTheDayUI
-
- org.jdesktop.swingx.plaf.basic.BasicTipOfTheDayUI
-
- Direct Known Subclasses:
WindowsTipOfTheDayUI
public class BasicTipOfTheDayUI extends TipOfTheDayUI
Base implementation of theJXTipOfTheDayUI.- Author:
- Frederic Lavigne
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyChangeListenerchangeListenerprotected ComponentcurrentTipComponentprotected JPaneltipAreaprotected FonttipFontprotected JXTipOfTheDaytipPane
-
Constructor Summary
Constructors Constructor Description BasicTipOfTheDayUI(JXTipOfTheDay tipPane)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyChangeListenercreateChangeListener()JDialogcreateDialog(Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice)Creates a new JDialog to display a JXTipOfTheDay panel.protected JDialogcreateDialog(Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice, boolean showPreviousButton)static ComponentUIcreateUI(JComponent c)DimensiongetPreferredSize(JComponent c)protected voidinstallComponents()protected voidinstallDefaults()protected voidinstallKeyboardActions()protected voidinstallListeners()voidinstallUI(JComponent c)protected voidshowCurrentTip()protected voiduninstallComponents()protected voiduninstallDefaults()protected voiduninstallListeners()voiduninstallUI(JComponent c)-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint, update
-
-
-
-
Field Detail
-
tipPane
protected JXTipOfTheDay tipPane
-
tipArea
protected JPanel tipArea
-
currentTipComponent
protected Component currentTipComponent
-
tipFont
protected Font tipFont
-
changeListener
protected PropertyChangeListener changeListener
-
-
Constructor Detail
-
BasicTipOfTheDayUI
public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
createDialog
public JDialog createDialog(Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice)
Description copied from class:TipOfTheDayUICreates a new JDialog to display a JXTipOfTheDay panel. Ifchoiceis not null then the window will offer a way for the end-user to not show the tip of the day dialog.- Specified by:
createDialogin classTipOfTheDayUI- Returns:
- a new JDialog to display a JXTipOfTheDay panel
-
createDialog
protected JDialog createDialog(Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice, boolean showPreviousButton)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classComponentUI
-
installKeyboardActions
protected void installKeyboardActions()
-
installListeners
protected void installListeners()
-
createChangeListener
protected PropertyChangeListener createChangeListener()
-
installDefaults
protected void installDefaults()
-
installComponents
protected void installComponents()
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classComponentUI
-
showCurrentTip
protected void showCurrentTip()
-
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUIin classComponentUI
-
uninstallListeners
protected void uninstallListeners()
-
uninstallComponents
protected void uninstallComponents()
-
uninstallDefaults
protected void uninstallDefaults()
-
-