419420421422423424425426427428429
setRequestFocusEnabled(false); } @Override protected State getState() { State rv; rv = super.getState(); if (rv != State.DISABLED && comboBox != null && ! comboBox.isEditable() && XPStyle.getXP().isSkinDefined(comboBox, Part.CP_DROPDOWNBUTTONRIGHT)) {
5253545556575859606162
} super.paint(g,c); } private State getXPState(JComponent c) { State state = State.NORMAL; if (!c.isEnabled()) { state = State.DISABLED; } return state; }
6263646566676869
} private void paintXPBackground(Graphics g, JComponent c) { XPStyle xp = XPStyle.getXP(); Skin skin = xp.getSkin(c, Part.EP_EDIT); State state = getXPState(c); skin.paintSkin(g, 0, 0, c.getWidth(), c.getHeight(), state); }
216217218219220221222223224225226
} super.paint(g, c); } State getXPComboBoxState(JComponent c) { State state = State.NORMAL; if (!c.isEnabled()) { state = State.DISABLED; } else if (isPopupVisible(comboBox)) { state = State.PRESSED; } else if (isRollover) {
229230231232233234235236237238239
return state; } private void paintXPComboBoxBackground(Graphics g, JComponent c) { XPStyle xp = XPStyle.getXP(); State state = getXPComboBoxState(c); Skin skin = null; if (! comboBox.isEditable() && xp.isSkinDefined(c, Part.CP_READONLY)) { skin = xp.getSkin(c, Part.CP_READONLY); }
setRequestFocusEnabled(false); } @Override protected State getState() { State rv; rv = super.getState(); if (rv != State.DISABLED && ! comboBox.isEditable() && XPStyle.getXP().isSkinDefined(comboBox, Part.CP_DROPDOWNBUTTONRIGHT)) {