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 java.beans.PropertyChangeListenerchangeListenerprotected java.awt.ComponentcurrentTipComponentprotected javax.swing.JPaneltipAreaprotected java.awt.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 java.beans.PropertyChangeListenercreateChangeListener()javax.swing.JDialogcreateDialog(java.awt.Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice)Creates a new JDialog to display a JXTipOfTheDay panel.protected javax.swing.JDialogcreateDialog(java.awt.Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice, boolean showPreviousButton)static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)protected voidinstallComponents()protected voidinstallDefaults()protected voidinstallKeyboardActions()protected voidinstallListeners()voidinstallUI(javax.swing.JComponent c)protected voidshowCurrentTip()protected voiduninstallComponents()protected voiduninstallDefaults()protected voiduninstallListeners()voiduninstallUI(javax.swing.JComponent c)
-
-
-
Field Detail
-
tipPane
protected JXTipOfTheDay tipPane
-
tipArea
protected javax.swing.JPanel tipArea
-
currentTipComponent
protected java.awt.Component currentTipComponent
-
tipFont
protected java.awt.Font tipFont
-
changeListener
protected java.beans.PropertyChangeListener changeListener
-
-
Constructor Detail
-
BasicTipOfTheDayUI
public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
createDialog
public javax.swing.JDialog createDialog(java.awt.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 javax.swing.JDialog createDialog(java.awt.Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice, boolean showPreviousButton)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.ComponentUI
-
installKeyboardActions
protected void installKeyboardActions()
-
installListeners
protected void installListeners()
-
createChangeListener
protected java.beans.PropertyChangeListener createChangeListener()
-
installDefaults
protected void installDefaults()
-
installComponents
protected void installComponents()
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSizein classjavax.swing.plaf.ComponentUI
-
showCurrentTip
protected void showCurrentTip()
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.ComponentUI
-
uninstallListeners
protected void uninstallListeners()
-
uninstallComponents
protected void uninstallComponents()
-
uninstallDefaults
protected void uninstallDefaults()
-
-