swingx
Version 2005-08-19

org.jdesktop.swingx.plaf.basic
Class BasicTipOfTheDayUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by org.jdesktop.swingx.plaf.TipOfTheDayUI
              extended by org.jdesktop.swingx.plaf.basic.BasicTipOfTheDayUI
Direct Known Subclasses:
WindowsTipOfTheDayUI

public class BasicTipOfTheDayUI
extends TipOfTheDayUI

Base implementation of the JXTipOfTheDay UI.


Field Summary
protected  PropertyChangeListener changeListener
           
protected  Component currentTipComponent
           
protected  JPanel tipArea
           
protected  Font tipFont
           
protected  JXTipOfTheDay tipPane
           
 
Constructor Summary
BasicTipOfTheDayUI(JXTipOfTheDay tipPane)
           
 
Method Summary
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)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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: TipOfTheDayUI
Creates a new JDialog to display a JXTipOfTheDay panel. If choice is not null then the window will offer a way for the end-user to not show the tip of the day dialog.

Specified by:
createDialog in class TipOfTheDayUI
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:
installUI in class ComponentUI

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:
getPreferredSize in class ComponentUI

showCurrentTip

protected void showCurrentTip()

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

uninstallListeners

protected void uninstallListeners()

uninstallComponents

protected void uninstallComponents()

uninstallDefaults

protected void uninstallDefaults()

swingx
Version 2005-08-19