Package com.jidesoft.plaf.basic
Class BasicJideOptionPaneUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.OptionPaneUI
-
- javax.swing.plaf.basic.BasicOptionPaneUI
-
- com.jidesoft.plaf.basic.BasicJideOptionPaneUI
-
public class BasicJideOptionPaneUI extends javax.swing.plaf.basic.BasicOptionPaneUI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BasicJideOptionPaneUI.ButtonFactory
This class is used to create the default buttons.
-
Constructor Summary
Constructors Constructor Description BasicJideOptionPaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addButtonComponents(java.awt.Container container, java.lang.Object[] buttons, int initialIndex)
protected java.lang.Object[]
addDetailsButton(java.lang.Object[] options, boolean showDetails)
protected void
addIcon(java.awt.Container top)
protected void
configureButton(javax.swing.JButton button)
Configures any necessary colors/fonts for the specified button used representing the button portion of the OptionPane.protected java.awt.Container
createBannerArea()
protected java.awt.Container
createButtonArea()
protected java.awt.Container
createDetailsComponent()
protected java.awt.LayoutManager
createLayoutManager()
protected java.awt.Container
createMessageArea()
protected java.awt.Container
createSeparator()
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent x)
Creates a new BasicOptionPaneUI instance.protected void
customizeBannerArea(PaintPanel bannerPanel)
protected java.lang.Object[]
getButtons()
Returns the buttons to display from the JOptionPane the receiver is providing the look and feel for.protected int
getMnemonic(java.lang.String key, java.util.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
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
Creates a new BasicOptionPaneUI instance.- Parameters:
x
- the component to create UI- Returns:
- the UI instance.
-
createLayoutManager
protected java.awt.LayoutManager createLayoutManager()
- Overrides:
createLayoutManager
in classjavax.swing.plaf.basic.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 classjavax.swing.plaf.basic.BasicOptionPaneUI
-
installListeners
protected void installListeners()
- Overrides:
installListeners
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
updateDetailsComponent
protected void updateDetailsComponent()
-
createMessageArea
protected java.awt.Container createMessageArea()
- Overrides:
createMessageArea
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
createSeparator
protected java.awt.Container createSeparator()
- Overrides:
createSeparator
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
createDetailsComponent
protected java.awt.Container createDetailsComponent()
-
createButtonArea
protected java.awt.Container createButtonArea()
- Overrides:
createButtonArea
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
addButtonComponents
protected void addButtonComponents(java.awt.Container container, java.lang.Object[] buttons, int initialIndex)
- Overrides:
addButtonComponents
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
getButtons
protected java.lang.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 classjavax.swing.plaf.basic.BasicOptionPaneUI
-
addDetailsButton
protected java.lang.Object[] addDetailsButton(java.lang.Object[] options, boolean showDetails)
-
configureButton
protected void configureButton(javax.swing.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(java.lang.String key, java.util.Locale l)
-
addIcon
protected void addIcon(java.awt.Container top)
- Overrides:
addIcon
in classjavax.swing.plaf.basic.BasicOptionPaneUI
-
createBannerArea
protected java.awt.Container createBannerArea()
-
customizeBannerArea
protected void customizeBannerArea(PaintPanel bannerPanel)
-
getPainter
public ThemePainter getPainter()
-
-