/** * Returns the icon for the specified arrow button. * * @param button * Arrow button. * @return Icon for the specified button. */ private Icon getCurrentIcon(JButton button) { Icon icon = SubstanceCoreUtilities .getArrowIcon(button, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); return icon; }
/** * Returns the icon for the specified arrow button. * * @param button * Arrow button. * @return Icon for the specified button. */ private Icon getCurrentIcon(JButton button) { Icon icon = SubstanceCoreUtilities .getArrowIcon(button, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); return icon; }
@Override protected void installDefaults() { super.installDefaults(); // this icon must be created after the font has been installed // on the combobox this.uneditableArrowIcon = SubstanceCoreUtilities.getArrowIcon( this.comboBox, new TransitionAwareIcon.TransitionAwareUIDelegate() { @Override public TransitionAwareUI getTransitionAwareUI() { return (TransitionAwareUI) comboBox.getUI(); } }, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); this.updateComboBoxBorder(); }
@Override protected void installDefaults() { super.installDefaults(); // this icon must be created after the font has been installed // on the combobox this.uneditableArrowIcon = SubstanceCoreUtilities.getArrowIcon( this.comboBox, new TransitionAwareIcon.TransitionAwareUIDelegate() { @Override public TransitionAwareUI getTransitionAwareUI() { return (TransitionAwareUI) comboBox.getUI(); } }, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); this.updateComboBoxBorder(); }
@Override protected Rectangle computePopupBounds(int px, int py, int pw, int ph) { int popupFlyoutOrientation = SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox); Insets insets = this.getInsets(); int dx = 0;
@Override protected Rectangle computePopupBounds(int px, int py, int pw, int ph) { int popupFlyoutOrientation = SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox); Insets insets = this.getInsets(); int dx = 0;
arrowButton, SubstanceCoreUtilities .getPopupFlyoutOrientation(SubstanceComboBoxUI.this.comboBox)));
arrowButton, SubstanceCoreUtilities .getPopupFlyoutOrientation(SubstanceComboBoxUI.this.comboBox)));