JIDE 3.5.15

com.jidesoft.plaf.basic
Class BasicJideOptionPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.OptionPaneUI
          extended by javax.swing.plaf.basic.BasicOptionPaneUI
              extended by com.jidesoft.plaf.basic.BasicJideOptionPaneUI

public class BasicJideOptionPaneUI
extends BasicOptionPaneUI


Nested Class Summary
protected static class BasicJideOptionPaneUI.ButtonFactory
          This class is used to create the default buttons.
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicOptionPaneUI
BasicOptionPaneUI.ButtonActionListener, BasicOptionPaneUI.ButtonAreaLayout, BasicOptionPaneUI.PropertyChangeHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicOptionPaneUI
hasCustomComponents, initialFocusComponent, inputComponent, MinimumHeight, minimumSize, MinimumWidth, optionPane, propertyChangeListener
 
Constructor Summary
BasicJideOptionPaneUI()
           
 
Method Summary
protected  void addButtonComponents(Container container, Object[] buttons, int initialIndex)
           
protected  Object[] addDetailsButton(Object[] options, boolean showDetails)
           
protected  void addIcon(Container top)
           
protected  void configureButton(JButton button)
          Configures any necessary colors/fonts for the specified button used representing the button portion of the OptionPane.
protected  Container createBannerArea()
           
protected  Container createButtonArea()
           
protected  Container createDetailsComponent()
           
protected  LayoutManager createLayoutManager()
           
protected  Container createMessageArea()
           
protected  Container createSeparator()
           
static ComponentUI createUI(JComponent x)
          Creates a new BasicOptionPaneUI instance.
protected  void customizeBannerArea(PaintPanel bannerPanel)
           
protected  Object[] getButtons()
          Returns the buttons to display from the JOptionPane the receiver is providing the look and feel for.
protected  int getMnemonic(String key, Locale l)
           
 ThemePainter getPainter()
           
protected  void installComponents()
           
protected  void installDefaults()
           
protected  void installListeners()
           
 boolean isDetailsVisible()
          Is details area visible initially.
 void setDetailsVisible(boolean detailsVisible)
          Sets if details area is visible initially.
protected  void uninstallDefaults()
           
protected  void uninstallListeners()
           
protected  void updateDetailsComponent()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicOptionPaneUI
addMessageComponents, burstStringInto, containsCustomComponents, createButtonActionListener, createPropertyChangeListener, getIcon, getIconForType, getInitialValueIndex, getMaxCharactersPerLineCount, getMessage, getMinimumOptionPaneSize, getPreferredSize, getSizeButtonsToSameWidth, installKeyboardActions, installUI, resetInputValue, selectInitialValue, uninstallComponents, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicJideOptionPaneUI

public BasicJideOptionPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent x)
Creates a new BasicOptionPaneUI instance.

Parameters:
x - the component to create UI
Returns:
the UI instance.

createLayoutManager

protected LayoutManager createLayoutManager()
Overrides:
createLayoutManager in class BasicOptionPaneUI

isDetailsVisible

public boolean isDetailsVisible()
Is details area visible initially.

Returns:
true if details area is visible.

setDetailsVisible

public void setDetailsVisible(boolean detailsVisible)
Sets if details area is visible initially.

Parameters:
detailsVisible - the flag

installComponents

protected void installComponents()
Overrides:
installComponents in class BasicOptionPaneUI

installListeners

protected void installListeners()
Overrides:
installListeners in class BasicOptionPaneUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class BasicOptionPaneUI

updateDetailsComponent

protected void updateDetailsComponent()

createMessageArea

protected Container createMessageArea()
Overrides:
createMessageArea in class BasicOptionPaneUI

createSeparator

protected Container createSeparator()
Overrides:
createSeparator in class BasicOptionPaneUI

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class BasicOptionPaneUI

uninstallDefaults

protected void uninstallDefaults()
Overrides:
uninstallDefaults in class BasicOptionPaneUI

createDetailsComponent

protected Container createDetailsComponent()

createButtonArea

protected Container createButtonArea()
Overrides:
createButtonArea in class BasicOptionPaneUI

addButtonComponents

protected void addButtonComponents(Container container,
                                   Object[] buttons,
                                   int initialIndex)
Overrides:
addButtonComponents in class BasicOptionPaneUI

getButtons

protected Object[] getButtons()
Returns the buttons to display from the JOptionPane the receiver is providing the look and feel for. If the JOptionPane has options set, they will be provided, otherwise if the optionType is YES_NO_OPTION, yesNoOptions is returned, if the type is YES_NO_CANCEL_OPTION yesNoCancelOptions is returned, otherwise defaultButtons are returned.

Overrides:
getButtons in class BasicOptionPaneUI

addDetailsButton

protected Object[] addDetailsButton(Object[] options,
                                    boolean showDetails)

configureButton

protected void configureButton(JButton button)
Configures any necessary colors/fonts for the specified button used representing the button portion of the OptionPane.

Parameters:
button - the button to configure

getMnemonic

protected int getMnemonic(String key,
                          Locale l)

addIcon

protected void addIcon(Container top)
Overrides:
addIcon in class BasicOptionPaneUI

createBannerArea

protected Container createBannerArea()

customizeBannerArea

protected void customizeBannerArea(PaintPanel bannerPanel)

getPainter

public ThemePainter getPainter()

JIDE 3.5.15