Class SubstanceCortex.ComponentScope

  • Enclosing class:
    SubstanceCortex


    public static final class SubstanceCortex.ComponentScope
    extends java.lang.Object
    APIs in this scope apply to individual application Components.
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentScope​()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void allowAnimations​(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)
      Allows animations of the specified facet on the specified control.
      static void disallowAnimations​(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 SubstanceSkin getCurrentSkin​(java.awt.Component c)
      Returns the current skin for the specified component.
      static SubstanceSlices.DecorationAreaType getImmediateDecorationType​(java.awt.Component comp)
      Returns the immediate decoration area type of the specified component.
      static boolean isAnimationAllowed​(java.awt.Component comp, SubstanceSlices.AnimationFacet animationFacet)
      Checks whether the specified animation facet is allowed on the specified component.
      static void registerTabCloseChangeListener​(javax.swing.JTabbedPane tabbedPane, BaseTabCloseListener tabCloseListener)
      Registers the specified listener on tab-close events on the specified tabbed pane.
      static void setAutomaticDragAndDropSupportPresence​(javax.swing.JTree tree, java.lang.Boolean hasAutomaticDragAndDropSupport)
      Specifies whether the tree should have automatic drag and drop support.
      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.
      static void setButtonOpenSide​(javax.swing.JComponent comp, SubstanceSlices.Side openSide)
      Specifies the open side for the specific button component.
      static void setButtonOpenSides​(javax.swing.JComponent comp, java.util.Set<SubstanceSlices.Side> openSides)
      Specifies the open sides for the specific button component.
      static void setButtonShaper​(javax.swing.JComponent comp, SubstanceButtonShaper buttonShaper)
      Specifies the button shaper to be used for the specific component.
      static void setButtonStraightSide​(javax.swing.JComponent comp, SubstanceSlices.Side straightSide)
      Specifies the straight side for the specific button component.
      static void setButtonStraightSides​(javax.swing.JComponent comp, java.util.Set<SubstanceSlices.Side> straightSides)
      Specifies the straight sides for the specific button component.
      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.
      static void setComboBoxPopupFlyoutOrientation​(javax.swing.JComboBox comboBox, java.lang.Integer comboPopupFlyoutOrientation)
      Specifies the combobox popup flyout orientation.
      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.
      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.
      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.
      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.
      static void setLockIconVisible​(javax.swing.JComponent comp, java.lang.Boolean visible)
      Specifies component-level visibility of the lock icon on the specific component.
      static void setNumberOfPasswordEchoesPerCharacter​(javax.swing.JPasswordField passwordField, int echoCount)
      Specifies the number of echo characters for each password character in the specific password field.
      static void setPasswordStrengthChecker​(javax.swing.JPasswordField passwordField, PasswordStrengthChecker passwordStrengthChecker)
      Specifies password strength checker for the specific password field.
      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.
      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.
      static void setTabCloseButtonsVisible​(javax.swing.JTabbedPane tabbedPane, java.lang.Boolean tabCloseButtonsVisible)
      Configures visibility of close buttons on all tabs in the specified tabbed pane.
      static void setTabCloseButtonVisible​(javax.swing.JComponent tabComponent, java.lang.Boolean tabCloseButtonVisible)
      Configures visibility of close button on the specified tab component.
      static void setTabCloseCallback​(javax.swing.JComponent tabComponent, TabCloseCallback tabCloseCallback)
      Configures the callback for deciding on the tab close type on the specified tab component.
      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.
      static void setTabContentPaneBorderKind​(javax.swing.JTabbedPane tabbedPane, SubstanceSlices.TabContentPaneBorderKind tabContentPaneBorderKind)
      Specifies the content pane border kind for the specified tabbed pane.
      static void setTabContentsModified​(javax.swing.JComponent tabComponent, java.lang.Boolean contentsModified)
      Specifies that contents of a tab component in JTabbedPane have been modified and not saved.
      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 / ...
      static void setToolbarButtonCornerRadius​(javax.swing.AbstractButton button, float toolbarButtonCornerRadius)
      Specifies corner radius for the specific button.
      static void unregisterTabCloseChangeListener​(javax.swing.JTabbedPane tabbedPane, BaseTabCloseListener tabCloseListener)
      Unregisters the specified listener on tab-close events on the specified tabbed pane.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait