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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addButtonComponents
(Container container, Object[] buttons, int initialIndex) protected Object[]
addDetailsButton
(Object[] options, boolean showDetails) protected void
protected void
configureButton
(JButton button) Configures any necessary colors/fonts for the specified button used representing the button portion of the OptionPane.protected Container
protected Container
protected Container
protected LayoutManager
protected Container
protected Container
static ComponentUI
Creates a new BasicOptionPaneUI instance.protected void
customizeBannerArea
(PaintPanel bannerPanel) protected Object[]
Returns the buttons to display from the JOptionPane the receiver is providing the look and feel for.protected int
getMnemonic
(String key, Locale l) protected void
protected void
protected void
boolean
Is details area visible initially.void
setDetailsVisible
(boolean detailsVisible) Sets if details area is visible initially.protected void
protected void
protected void
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
-
Constructor Details
-
BasicJideOptionPaneUI
public BasicJideOptionPaneUI()
-
-
Method Details
-
createUI
Creates a new BasicOptionPaneUI instance.- Parameters:
x
- the component to create UI- Returns:
- the UI instance.
-
createLayoutManager
- Overrides:
createLayoutManager
in classBasicOptionPaneUI
-
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 classBasicOptionPaneUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicOptionPaneUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicOptionPaneUI
-
updateDetailsComponent
protected void updateDetailsComponent() -
createMessageArea
- Overrides:
createMessageArea
in classBasicOptionPaneUI
-
createSeparator
- Overrides:
createSeparator
in classBasicOptionPaneUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicOptionPaneUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicOptionPaneUI
-
createDetailsComponent
-
createButtonArea
- Overrides:
createButtonArea
in classBasicOptionPaneUI
-
addButtonComponents
- Overrides:
addButtonComponents
in classBasicOptionPaneUI
-
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 classBasicOptionPaneUI
-
addDetailsButton
-
configureButton
Configures any necessary colors/fonts for the specified button used representing the button portion of the OptionPane.- Parameters:
button
- the button to configure
-
getMnemonic
-
addIcon
- Overrides:
addIcon
in classBasicOptionPaneUI
-
createBannerArea
-
customizeBannerArea
-
getPainter
-