Package org.pushingpixels.substance.internal.ui

Examples of org.pushingpixels.substance.internal.ui.SubstanceComboBoxUI


    ListUI baseListUI = list.getUI();
    ComboBoxUI baseComboUI = combo.getUI();
    if ((baseListUI instanceof SubstanceListUI)
        && (baseComboUI instanceof SubstanceComboBoxUI)) {
      SubstanceListUI listUI = (SubstanceListUI) baseListUI;
      SubstanceComboBoxUI comboUI = (SubstanceComboBoxUI) baseComboUI;

      ComponentState state = listUI.getCellState(index, result);
      ComponentState prevState = listUI.getPrevCellState(index, result);

      // special case for the combobox. The selected value is
      // painted using the renderer of the list, and the index
      // is -1.
      if (index == -1) {
        ButtonModel transitionModel = comboUI.getTransitionModel();
        state = ComponentState.getState(transitionModel, this.combo);
        prevState = SubstanceCoreUtilities.getPrevComponentState(combo);
        // boolean isEnabled = this.combo.isEnabled();
        // if (isSelected && isEnabled) {
        // state = ComponentState.SELECTED;
View Full Code Here


    ListUI baseListUI = list.getUI();
    ComboBoxUI baseComboUI = combo.getUI();
    if ((baseListUI instanceof SubstanceListUI)
        && (baseComboUI instanceof SubstanceComboBoxUI)) {
      SubstanceListUI listUI = (SubstanceListUI) baseListUI;
      SubstanceComboBoxUI comboUI = (SubstanceComboBoxUI) baseComboUI;

      // special case for the combobox. The selected value is
      // painted using the renderer of the list, and the index
      // is -1.
      if (index == -1) {
        StateTransitionTracker stateTransitionTracker = comboUI
            .getTransitionTracker();
        ModelStateInfo modelStateInfo = stateTransitionTracker
            .getModelStateInfo();
        ComponentState currState = modelStateInfo.getCurrModelState();
        float comboAlpha = SubstanceColorSchemeUtilities.getAlpha(
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.internal.ui.SubstanceComboBoxUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.