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 classBasicJideOptionPaneUI.ButtonFactoryThis 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 voidaddButtonComponents(java.awt.Container container, java.lang.Object[] buttons, int initialIndex)protected java.lang.Object[]addDetailsButton(java.lang.Object[] options, boolean showDetails)protected voidaddIcon(java.awt.Container top)protected voidconfigureButton(javax.swing.JButton button)Configures any necessary colors/fonts for the specified button used representing the button portion of the OptionPane.protected java.awt.ContainercreateBannerArea()protected java.awt.ContainercreateButtonArea()protected java.awt.ContainercreateDetailsComponent()protected java.awt.LayoutManagercreateLayoutManager()protected java.awt.ContainercreateMessageArea()protected java.awt.ContainercreateSeparator()static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent x)Creates a new BasicOptionPaneUI instance.protected voidcustomizeBannerArea(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 intgetMnemonic(java.lang.String key, java.util.Locale l)ThemePaintergetPainter()protected voidinstallComponents()protected voidinstallDefaults()protected voidinstallListeners()booleanisDetailsVisible()Is details area visible initially.voidsetDetailsVisible(boolean detailsVisible)Sets if details area is visible initially.protected voiduninstallDefaults()protected voiduninstallListeners()protected voidupdateDetailsComponent()-
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:
createLayoutManagerin 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:
installComponentsin classjavax.swing.plaf.basic.BasicOptionPaneUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicOptionPaneUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicOptionPaneUI
-
updateDetailsComponent
protected void updateDetailsComponent()
-
createMessageArea
protected java.awt.Container createMessageArea()
- Overrides:
createMessageAreain classjavax.swing.plaf.basic.BasicOptionPaneUI
-
createSeparator
protected java.awt.Container createSeparator()
- Overrides:
createSeparatorin classjavax.swing.plaf.basic.BasicOptionPaneUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicOptionPaneUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classjavax.swing.plaf.basic.BasicOptionPaneUI
-
createDetailsComponent
protected java.awt.Container createDetailsComponent()
-
createButtonArea
protected java.awt.Container createButtonArea()
- Overrides:
createButtonAreain classjavax.swing.plaf.basic.BasicOptionPaneUI
-
addButtonComponents
protected void addButtonComponents(java.awt.Container container, java.lang.Object[] buttons, int initialIndex)- Overrides:
addButtonComponentsin 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:
getButtonsin 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:
addIconin classjavax.swing.plaf.basic.BasicOptionPaneUI
-
createBannerArea
protected java.awt.Container createBannerArea()
-
customizeBannerArea
protected void customizeBannerArea(PaintPanel bannerPanel)
-
getPainter
public ThemePainter getPainter()
-
-