Class SubstanceCortex.ComponentScope
- java.lang.Object
-
- org.pushingpixels.substance.api.SubstanceCortex.ComponentScope
-
- Enclosing class:
- SubstanceCortex
public static final class SubstanceCortex.ComponentScope extends java.lang.ObjectAPIs in this scope apply to individual applicationComponents.
-
-
Constructor Summary
Constructors Constructor Description ComponentScope()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidallowAnimations(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)Allows animations of the specified facet on the specified control.static voiddisallowAnimations(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)Disallows animations of the specified facet on the specified control.static java.util.Set<BaseTabCloseListener>getAllTabCloseListeners(javax.swing.JTabbedPane tabbedPane)Returns all listeners registered on tab closing of the specified tabbed pane.static SubstanceSkingetCurrentSkin(java.awt.Component c)Returns the current skin for the specified component.static SubstanceSlices.DecorationAreaTypegetImmediateDecorationType(java.awt.Component comp)Returns the immediate decoration area type of the specified component.static booleanisAnimationAllowed(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)Checks whether the specified animation facet is allowed on the specified component.static voidregisterTabCloseChangeListener(javax.swing.JTabbedPane tabbedPane, BaseTabCloseListener tabCloseListener)Registers the specified listener on tab-close events on the specified tabbed pane.static voidsetAutomaticDragAndDropSupportPresence(javax.swing.JTree tree, java.lang.Boolean hasAutomaticDragAndDropSupport)Specifies whether the tree should have automatic drag and drop support.static voidsetAutomaticScrollPresence(javax.swing.JScrollPane scrollPane, java.lang.Boolean hasAutomaticScroll)Specifies whether the scroll pane should have have auto-scroll support invoked on mouse button click that triggers popups.static voidsetButtonOpenSide(javax.swing.JComponent comp, SubstanceSlices.Side openSide)Specifies the open side for the specific button component.static voidsetButtonOpenSides(javax.swing.JComponent comp, java.util.Set<SubstanceSlices.Side> openSides)Specifies the open sides for the specific button component.static voidsetButtonShaper(javax.swing.JComponent comp, SubstanceButtonShaper buttonShaper)Specifies the button shaper to be used for the specific component.static voidsetButtonStraightSide(javax.swing.JComponent comp, SubstanceSlices.Side straightSide)Specifies the straight side for the specific button component.static voidsetButtonStraightSides(javax.swing.JComponent comp, java.util.Set<SubstanceSlices.Side> straightSides)Specifies the straight sides for the specific button component.static voidsetCapsLockIconVisible(javax.swing.JPasswordField passwordField, java.lang.Boolean visible)Specifies component-level visibility of the caps lock icon on the specific password field.static voidsetComboBoxPopupFlyoutOrientation(javax.swing.JComboBox comboBox, java.lang.Integer comboPopupFlyoutOrientation)Specifies the combobox popup flyout orientation.static voidsetComboBoxPrototypeCallback(javax.swing.JComboBox comboBox, ComboPopupPrototypeCallback comboPopupPrototypeCallback)Specifies the combobox popup prototype callback which is used to compute the width of the popup at runtime.static voidsetComboBoxPrototypeDisplayValue(javax.swing.JComboBox comboBox, java.lang.Object comboPopupPrototypeDisplayValue)Specifies the combobox popup prototype display value which is used to compute the width of the popup at runtime.static voidsetFlipTextSelectionOnEscape(javax.swing.text.JTextComponent comp, java.lang.Boolean flipTextSelectionOnEscape)Specifies whether the text component contents should flip selection on ESCAPE key press.static voidsetIconThemingStrategy(javax.swing.JComponent component, SubstanceSlices.IconThemingStrategy iconThemingStrategy)Specifies how the icon(s) on the specified component should match the color of the current color scheme when it is in default state.static voidsetLockIconVisible(javax.swing.JComponent comp, java.lang.Boolean visible)Specifies component-level visibility of the lock icon on the specific component.static voidsetNumberOfPasswordEchoesPerCharacter(javax.swing.JPasswordField passwordField, int echoCount)Specifies the number of echo characters for each password character in the specific password field.static voidsetPasswordStrengthChecker(javax.swing.JPasswordField passwordField, PasswordStrengthChecker passwordStrengthChecker)Specifies password strength checker for the specific password field.static voidsetRunModifiedAnimationOnTabCloseButton(javax.swing.JComponent tabComponent, java.lang.Boolean runModifiedAnimationOnTabCloseButton)Specifies that only the close button of a marked-as-modified tab component should pulsate.static voidsetRunModifiedAnimationOnTabCloseButton(javax.swing.JTabbedPane tabbedPane, java.lang.Boolean runModifiedAnimationOnTabCloseButton)Specifies that only the close button of a marked-as-modified tab components should pulsate.static voidsetTabCloseButtonsVisible(javax.swing.JTabbedPane tabbedPane, java.lang.Boolean tabCloseButtonsVisible)Configures visibility of close buttons on all tabs in the specified tabbed pane.static voidsetTabCloseButtonVisible(javax.swing.JComponent tabComponent, java.lang.Boolean tabCloseButtonVisible)Configures visibility of close button on the specified tab component.static voidsetTabCloseCallback(javax.swing.JComponent tabComponent, TabCloseCallback tabCloseCallback)Configures the callback for deciding on the tab close type on the specified tab component.static voidsetTabCloseCallback(javax.swing.JTabbedPane tabbedPane, TabCloseCallback tabCloseCallback)Configures the callback for deciding on the tab close type on all tabs in the specified tabbed pane.static voidsetTabContentPaneBorderKind(javax.swing.JTabbedPane tabbedPane, SubstanceSlices.TabContentPaneBorderKind tabContentPaneBorderKind)Specifies the content pane border kind for the specified tabbed pane.static voidsetTabContentsModified(javax.swing.JComponent tabComponent, java.lang.Boolean contentsModified)Specifies that contents of a tab component inJTabbedPanehave been modified and not saved.static voidsetTextEditContextMenuPresence(javax.swing.text.JTextComponent comp, java.lang.Boolean hasEditContextMenu)Specifies whether the text component should have the edit context menu (with Cut / Copy / Paste / ...static voidsetToolbarButtonCornerRadius(javax.swing.AbstractButton button, float toolbarButtonCornerRadius)Specifies corner radius for the specific button.static voidunregisterTabCloseChangeListener(javax.swing.JTabbedPane tabbedPane, BaseTabCloseListener tabCloseListener)Unregisters the specified listener on tab-close events on the specified tabbed pane.
-
-
-
Method Detail
-
getCurrentSkin
public static SubstanceSkin getCurrentSkin(java.awt.Component c)
Returns the current skin for the specified component. If the current look-and-feel is not Substance, this method returnsnull.- Parameters:
c- Component. May benull- in this case the global current Substance skin will be returned.- Returns:
- Current skin for the specified component.
- See Also:
SubstanceCortex.GlobalScope.getCurrentSkin()
-
registerTabCloseChangeListener
public static void registerTabCloseChangeListener(javax.swing.JTabbedPane tabbedPane, BaseTabCloseListener tabCloseListener)Registers the specified listener on tab-close events on the specified tabbed pane.- Parameters:
tabbedPane- Tabbed pane. Must be notnull.tabCloseListener- Listener to register.- See Also:
SubstanceCortex.GlobalScope.registerTabCloseChangeListener(BaseTabCloseListener),unregisterTabCloseChangeListener(JTabbedPane, BaseTabCloseListener),getAllTabCloseListeners(JTabbedPane)
-
unregisterTabCloseChangeListener
public static void unregisterTabCloseChangeListener(javax.swing.JTabbedPane tabbedPane, BaseTabCloseListener tabCloseListener)Unregisters the specified listener on tab-close events on the specified tabbed pane.- Parameters:
tabbedPane- Tabbed pane. Must be notnull.tabCloseListener- Listener to unregister.- See Also:
SubstanceCortex.GlobalScope.unregisterTabCloseChangeListener(BaseTabCloseListener),registerTabCloseChangeListener(JTabbedPane, BaseTabCloseListener),getAllTabCloseListeners(JTabbedPane)
-
getAllTabCloseListeners
public static java.util.Set<BaseTabCloseListener> getAllTabCloseListeners(javax.swing.JTabbedPane tabbedPane)
Returns all listeners registered on tab closing of the specified tabbed pane.- Parameters:
tabbedPane- A tabbed pane. Must be notnull.- Returns:
- All listeners registered on tab closing of the specified tabbed pane.
- See Also:
registerTabCloseChangeListener(JTabbedPane, BaseTabCloseListener),unregisterTabCloseChangeListener(JTabbedPane, BaseTabCloseListener)
-
allowAnimations
public static void allowAnimations(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)Allows animations of the specified facet on the specified control. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Substance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to allow.comp- Control for allowing the animation facet.
-
disallowAnimations
public static void disallowAnimations(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)Disallows animations of the specified facet on the specified control. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Substance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to disallow.comp- Control for disallowing the animation facet.
-
isAnimationAllowed
public static boolean isAnimationAllowed(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)Checks whether the specified animation facet is allowed on the specified component.- Parameters:
animationFacet- Animation facet.comp- Component.- Returns:
trueif the specified animation facet is allowed on the specified component,falseotherwise.
-
getImmediateDecorationType
public static SubstanceSlices.DecorationAreaType getImmediateDecorationType(java.awt.Component comp)
Returns the immediate decoration area type of the specified component. The component is checked for the registered decoration area type. IfSubstanceCortex.ComponentOrParentChainScope.setDecorationType(JComponent, SubstanceSlices.DecorationAreaType)was not called on this component, this method returnsnull.- Parameters:
comp- Component.- Returns:
- Immediate decoration area type of the component.
- See Also:
SubstanceCortex.ComponentOrParentChainScope.setDecorationType(JComponent, SubstanceSlices.DecorationAreaType),SubstanceCortex.ComponentOrParentChainScope.getDecorationType(Component)
-
setLockIconVisible
public static void setLockIconVisible(javax.swing.JComponent comp, java.lang.Boolean visible)Specifies component-level visibility of the lock icon on the specific component.- Parameters:
comp- Component.visible- Iftrue, the specific text component will show a lock icon when it is in non-editable mode. Passnullto reset to the default behavior.- See Also:
SubstanceCortex.GlobalScope.setLockIconVisible(Boolean),SubstanceCortex.GlobalScope.setExtraWidgetsPresence(Boolean),SubstanceCortex.ComponentOrParentChainScope.setExtraWidgetsPresence(JComponent, Boolean)
-
setCapsLockIconVisible
public static void setCapsLockIconVisible(javax.swing.JPasswordField passwordField, java.lang.Boolean visible)Specifies component-level visibility of the caps lock icon on the specific password field. Note that this functionality may not be supported on all platforms. SeeToolkit.getLockingKeyState(int)documentation for more.- Parameters:
passwordField- Password field.visible- Iftrue, the specific password field will show an indicator icon when it is focused and caps lock is on. Passnullto reset to the default behavior.- See Also:
SubstanceCortex.GlobalScope.setCapsLockIconVisible(Boolean),SubstanceCortex.GlobalScope.setExtraWidgetsPresence(Boolean),SubstanceCortex.ComponentOrParentChainScope.setExtraWidgetsPresence(JComponent, Boolean)
-
setPasswordStrengthChecker
public static void setPasswordStrengthChecker(javax.swing.JPasswordField passwordField, PasswordStrengthChecker passwordStrengthChecker)Specifies password strength checker for the specific password field.- Parameters:
passwordField- Password field.passwordStrengthChecker- Password strength checker
-
setFlipTextSelectionOnEscape
public static void setFlipTextSelectionOnEscape(javax.swing.text.JTextComponent comp, java.lang.Boolean flipTextSelectionOnEscape)Specifies whether the text component contents should flip selection on ESCAPE key press.- Parameters:
comp- Text component.flipTextSelectionOnEscape- Iftrue, the contents of the specified text component will flip selection on ESCAPE key press. Passnullto reset to the default behavior.
-
setTextEditContextMenuPresence
public static void setTextEditContextMenuPresence(javax.swing.text.JTextComponent comp, java.lang.Boolean hasEditContextMenu)Specifies whether the text component should have the edit context menu (with Cut / Copy / Paste / ... menu items).- Parameters:
comp- Text component.hasEditContextMenu- Iftrue, the text component will have the edit context menu (with Cut / Copy / Paste / ... menu items). Passnullto reset to the default behavior.- See Also:
SubstanceCortex.GlobalScope.setTextEditContextMenuPresence(Boolean)
-
setAutomaticDragAndDropSupportPresence
public static void setAutomaticDragAndDropSupportPresence(javax.swing.JTree tree, java.lang.Boolean hasAutomaticDragAndDropSupport)Specifies whether the tree should have automatic drag and drop support.- Parameters:
tree- Tree component.hasAutomaticDragAndDropSupport- Iftrue, the tree will have automatic drag and drop support. Passnullto reset to the default behavior.- See Also:
SubstanceCortex.GlobalScope.setAutomaticDragAndDropSupportPresence(Boolean)
-
setAutomaticScrollPresence
public static void setAutomaticScrollPresence(javax.swing.JScrollPane scrollPane, java.lang.Boolean hasAutomaticScroll)Specifies whether the scroll pane should have have auto-scroll support invoked on mouse button click that triggers popups.- Parameters:
scrollPane- Scroll pane component.hasAutomaticScroll- Iftrue, the scroll pane will have have auto-scroll support invoked on mouse button click that triggers popups. Passnullto reset to the default behavior.- See Also:
SubstanceCortex.GlobalScope.setAutomaticScrollPresence(Boolean),SubstanceCortex.GlobalScope.setExtraWidgetsPresence(Boolean),SubstanceCortex.ComponentOrParentChainScope.setExtraWidgetsPresence(JComponent, Boolean)
-
setButtonOpenSide
public static void setButtonOpenSide(javax.swing.JComponent comp, SubstanceSlices.Side openSide)Specifies the open side for the specific button component. Note that theSubstanceButtonShaperimplementations are not required to respect this call. The defaultPillButtonShaperandClassicButtonShaperrespect this call.- Parameters:
comp- Component.openSide- Open side.- See Also:
setButtonOpenSides(JComponent, Set),setButtonStraightSide(JComponent, org.pushingpixels.substance.api.SubstanceSlices.Side)
-
setButtonOpenSides
public static void setButtonOpenSides(javax.swing.JComponent comp, java.util.Set<SubstanceSlices.Side> openSides)Specifies the open sides for the specific button component. Note that theSubstanceButtonShaperimplementations are not required to respect this call. The defaultPillButtonShaperandClassicButtonShaperrespect this call.- Parameters:
comp- Component.openSides- Open sides.- See Also:
setButtonOpenSide(JComponent, org.pushingpixels.substance.api.SubstanceSlices.Side),setButtonStraightSides(JComponent, Set)
-
setButtonStraightSide
public static void setButtonStraightSide(javax.swing.JComponent comp, SubstanceSlices.Side straightSide)Specifies the straight side for the specific button component. Note that theSubstanceButtonShaperimplementations are not required to respect this call. The defaultPillButtonShaperandClassicButtonShaperrespect this call.- Parameters:
comp- Component.straightSide- Straight side.- See Also:
setButtonOpenSide(JComponent, org.pushingpixels.substance.api.SubstanceSlices.Side),setButtonStraightSides(JComponent, Set)
-
setButtonStraightSides
public static void setButtonStraightSides(javax.swing.JComponent comp, java.util.Set<SubstanceSlices.Side> straightSides)Specifies the straight sides for the specific button component. Note that theSubstanceButtonShaperimplementations are not required to respect this call. The defaultPillButtonShaperandClassicButtonShaperrespect this call.- Parameters:
comp- Component.straightSides- Straight sides.- See Also:
setButtonStraightSide(JComponent, org.pushingpixels.substance.api.SubstanceSlices.Side),setButtonOpenSides(JComponent, Set)
-
setToolbarButtonCornerRadius
public static void setToolbarButtonCornerRadius(javax.swing.AbstractButton button, float toolbarButtonCornerRadius)Specifies corner radius for the specific button. Note that this only applies when the button is in aJToolBar.- Parameters:
button- Button.toolbarButtonCornerRadius- Corner radius for the button when it is in aJToolBar.- See Also:
SubstanceCortex.ComponentOrParentChainScope.setToolbarButtonCornerRadius(JToolBar, float),SubstanceCortex.GlobalScope.setToolbarButtonCornerRadius(float)
-
setTabContentsModified
public static void setTabContentsModified(javax.swing.JComponent tabComponent, java.lang.Boolean contentsModified)Specifies that contents of a tab component in
JTabbedPanehave been modified and not saved.setRunModifiedAnimationOnTabCloseButton(JComponent, Boolean),setRunModifiedAnimationOnTabCloseButton(JTabbedPane, Boolean)andSubstanceCortex.GlobalScope.setRunModifiedAnimationOnTabCloseButton(Boolean)APIs control whether the entire tab or its close button area is animated.The animation cycles between red, orange and yellow color schemes. In most cases (all but tabs not marked with
setRunModifiedAnimationOnTabCloseButton(JComponent, Boolean),setRunModifiedAnimationOnTabCloseButton(JTabbedPane, Boolean)andSubstanceCortex.GlobalScope.setRunModifiedAnimationOnTabCloseButton(Boolean)APIs), the animation will be visible only when the mouse hovers over the close button of the tab. The tooltip of the close button is changed as well to reflect that the container contents are marked as modified.- Parameters:
tabComponent- Tab component.contentsModified- Iftrue, the close button of the matching tab of the matching frame / dialog will be animated.- See Also:
SubstanceCortex.RootPaneScope.setContentsModified(JRootPane, Boolean)
-
setTabCloseButtonsVisible
public static void setTabCloseButtonsVisible(javax.swing.JTabbedPane tabbedPane, java.lang.Boolean tabCloseButtonsVisible)Configures visibility of close buttons on all tabs in the specified tabbed pane.- Parameters:
tabbedPane- Tabbed pane.tabCloseButtonsVisible- Iftrue, all tabs in the tabbed pane will show close buttons.- See Also:
setTabCloseButtonVisible(JComponent, Boolean),SubstanceCortex.GlobalScope.setTabCloseButtonsVisible(Boolean)
-
setTabCloseButtonVisible
public static void setTabCloseButtonVisible(javax.swing.JComponent tabComponent, java.lang.Boolean tabCloseButtonVisible)Configures visibility of close button on the specified tab component.- Parameters:
tabComponent- Tab component.tabCloseButtonVisible- Iftrue, the tab will show close button.- See Also:
setTabCloseButtonsVisible(JTabbedPane, Boolean),SubstanceCortex.GlobalScope.setTabCloseButtonsVisible(Boolean)
-
setTabCloseCallback
public static void setTabCloseCallback(javax.swing.JTabbedPane tabbedPane, TabCloseCallback tabCloseCallback)Configures the callback for deciding on the tab close type on all tabs in the specified tabbed pane. Note that this is only relevant for tabs configured withsetTabCloseButtonVisible(JComponent, Boolean),setTabCloseButtonsVisible(JTabbedPane, Boolean)andSubstanceCortex.GlobalScope.setTabCloseButtonsVisible(Boolean)APIs.- Parameters:
tabbedPane- Tabbed pane.tabCloseCallback- Callback for deciding on the tab close type on all tabs in the tabbed pane.- See Also:
setTabCloseCallback(JComponent, TabCloseCallback),SubstanceCortex.GlobalScope.setTabCloseCallback(TabCloseCallback)
-
setTabCloseCallback
public static void setTabCloseCallback(javax.swing.JComponent tabComponent, TabCloseCallback tabCloseCallback)Configures the callback for deciding on the tab close type on the specified tab component. Note that this is only relevant for tabs configured withsetTabCloseButtonVisible(JComponent, Boolean),setTabCloseButtonsVisible(JTabbedPane, Boolean)andSubstanceCortex.GlobalScope.setTabCloseButtonsVisible(Boolean)APIs.- Parameters:
tabComponent- Tab component.tabCloseCallback- Callback for deciding on the tab close type on the tab component.- See Also:
setTabCloseCallback(JTabbedPane, TabCloseCallback),SubstanceCortex.GlobalScope.setTabCloseCallback(TabCloseCallback)
-
setRunModifiedAnimationOnTabCloseButton
public static void setRunModifiedAnimationOnTabCloseButton(javax.swing.JTabbedPane tabbedPane, java.lang.Boolean runModifiedAnimationOnTabCloseButton)Specifies that only the close button of a marked-as-modified tab components should pulsate. By default, the animation on modified tabs is on the entire tab rectangle. Note that this is only relevant for tabs configured withsetTabContentsModified(JComponent, Boolean).- Parameters:
tabbedPane- Tabbed pane.runModifiedAnimationOnTabCloseButton- Iftrue, the marked-as-modified animation will run only on the tab close button.- See Also:
setRunModifiedAnimationOnTabCloseButton(JComponent, Boolean),SubstanceCortex.GlobalScope.setRunModifiedAnimationOnTabCloseButton(Boolean)
-
setRunModifiedAnimationOnTabCloseButton
public static void setRunModifiedAnimationOnTabCloseButton(javax.swing.JComponent tabComponent, java.lang.Boolean runModifiedAnimationOnTabCloseButton)Specifies that only the close button of a marked-as-modified tab component should pulsate. By default, the animation on modified tabs is on the entire tab rectangle. Note that this is only relevant for tabs configured withsetTabContentsModified(JComponent, Boolean).- Parameters:
tabComponent- Tab component.runModifiedAnimationOnTabCloseButton- Iftrue, the marked-as-modified animation will run only on the tab close button.- See Also:
setRunModifiedAnimationOnTabCloseButton(JTabbedPane, Boolean),SubstanceCortex.GlobalScope.setRunModifiedAnimationOnTabCloseButton(Boolean)
-
setTabContentPaneBorderKind
public static void setTabContentPaneBorderKind(javax.swing.JTabbedPane tabbedPane, SubstanceSlices.TabContentPaneBorderKind tabContentPaneBorderKind)Specifies the content pane border kind for the specified tabbed pane.- Parameters:
tabbedPane- Tabbed pane.tabContentPaneBorderKind- Content pane border kind for the specified tabbed pane.- See Also:
SubstanceCortex.GlobalScope.setTabContentPaneBorderKind(SubstanceSlices.TabContentPaneBorderKind)
-
setButtonShaper
public static void setButtonShaper(javax.swing.JComponent comp, SubstanceButtonShaper buttonShaper)Specifies the button shaper to be used for the specific component.- Parameters:
comp- Component.buttonShaper- Button shaper to be used for the component.
-
setNumberOfPasswordEchoesPerCharacter
public static void setNumberOfPasswordEchoesPerCharacter(javax.swing.JPasswordField passwordField, int echoCount)Specifies the number of echo characters for each password character in the specific password field.- Parameters:
passwordField- Password field.echoCount- Number of echo characters for each password character in the password field.- See Also:
SubstanceCortex.GlobalScope.setNumberOfPasswordEchoesPerCharacter(int)
-
setComboBoxPrototypeCallback
public static void setComboBoxPrototypeCallback(javax.swing.JComboBox comboBox, ComboPopupPrototypeCallback comboPopupPrototypeCallback)Specifies the combobox popup prototype callback which is used to compute the width of the popup at runtime.- Parameters:
comboBox- Combobox.comboPopupPrototypeCallback- Popup prototype callback which is used to compute the width of the popup at runtime.- See Also:
setComboBoxPrototypeDisplayValue(JComboBox, Object),SubstanceCortex.GlobalScope.setComboBoxPrototypeCallback(ComboPopupPrototypeCallback)
-
setComboBoxPrototypeDisplayValue
public static void setComboBoxPrototypeDisplayValue(javax.swing.JComboBox comboBox, java.lang.Object comboPopupPrototypeDisplayValue)Specifies the combobox popup prototype display value which is used to compute the width of the popup at runtime.- Parameters:
comboBox- Combobox.comboPopupPrototypeDisplayValue- Popup prototype display value which is used to compute the width of the popup at runtime.- See Also:
setComboBoxPrototypeCallback(JComboBox, ComboPopupPrototypeCallback),SubstanceCortex.GlobalScope.setComboBoxPrototypeCallback(ComboPopupPrototypeCallback)
-
setComboBoxPopupFlyoutOrientation
public static void setComboBoxPopupFlyoutOrientation(javax.swing.JComboBox comboBox, java.lang.Integer comboPopupFlyoutOrientation)Specifies the combobox popup flyout orientation. The value should be eithernullto reset to the default flyout orientation or one of theIntegers below:- The default
SwingConstants.SOUTH- the popup is displayed directly below the combobox aligned to the left. SwingConstants.NORTH- the popup is displayed directly above the combobox aligned to the left.SwingConstants.EAST- the popup is displayed to the left of the combobox aligned to the top.SwingConstants.WEST- the popup is displayed to the right of the combobox aligned to the top.SwingConstants.CENTER- the popup is displayed centered vertically over the combobox aligned to the left.
Note that the combo arrow changes in accordance with the combo popup flyout orientation.
- Parameters:
comboBox- Combobox.comboPopupFlyoutOrientation- Flyout orientation for combobox popup.- See Also:
SubstanceCortex.GlobalScope.setComboBoxPopupFlyoutOrientation(int)
- The default
-
setIconThemingStrategy
public static void setIconThemingStrategy(javax.swing.JComponent component, SubstanceSlices.IconThemingStrategy iconThemingStrategy)Specifies how the icon(s) on the specified component should match the color of the current color scheme when it is in default state. The control is in default state when it's not pressed, not selected, not armed and not rolled over. By default, all controls show regular (full-color original) icons.- Parameters:
component- Component.iconThemingStrategy- Icon theming strategy for the component icon(s).- See Also:
SubstanceCortex.GlobalScope.setIconThemingStrategy(IconThemingStrategy)
-
-