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.

Author:
Frederic Lavigne

Constructor Summary
BasicTipOfTheDayUI(JXTipOfTheDay tipPane)
           
 
Method Summary
 javax.swing.JDialog createDialog(java.awt.Component parentComponent, JXTipOfTheDay.ShowOnStartupChoice choice)
          Creates a new JDialog to display a JXTipOfTheDay panel.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
 void installUI(javax.swing.JComponent c)
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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: 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

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI