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 classThis 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 voidaddButtonComponents(Container container, Object[] buttons, int initialIndex) protected Object[]addDetailsButton(Object[] options, boolean showDetails) protected voidprotected voidconfigureButton(JButton button) Configures any necessary colors/fonts for the specified button used representing the button portion of the OptionPane.protected Containerprotected Containerprotected Containerprotected LayoutManagerprotected Containerprotected Containerstatic ComponentUICreates a new BasicOptionPaneUI instance.protected voidcustomizeBannerArea(PaintPanel bannerPanel) protected Object[]Returns the buttons to display from the JOptionPane the receiver is providing the look and feel for.protected intgetMnemonic(String key, Locale l) protected voidprotected voidprotected voidbooleanIs details area visible initially.voidsetDetailsVisible(boolean detailsVisible) Sets if details area is visible initially.protected voidprotected voidprotected voidMethods 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, uninstallUIMethods 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:
createLayoutManagerin 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:
installComponentsin classBasicOptionPaneUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicOptionPaneUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicOptionPaneUI
-
updateDetailsComponent
protected void updateDetailsComponent() -
createMessageArea
- Overrides:
createMessageAreain classBasicOptionPaneUI
-
createSeparator
- Overrides:
createSeparatorin classBasicOptionPaneUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicOptionPaneUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicOptionPaneUI
-
createDetailsComponent
-
createButtonArea
- Overrides:
createButtonAreain classBasicOptionPaneUI
-
addButtonComponents
- Overrides:
addButtonComponentsin 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:
getButtonsin 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:
addIconin classBasicOptionPaneUI
-
createBannerArea
-
customizeBannerArea
-
getPainter
-