/** * Returns a set containing the current state of the {@link JSplitPane} component. * * @return The accessible state set. */ public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet result = super.getAccessibleStateSet(); if (getOrientation() == HORIZONTAL_SPLIT) { result.add(AccessibleState.HORIZONTAL); } else if (getOrientation() == VERTICAL_SPLIT) { result.add(AccessibleState.VERTICAL); } return result; }
/** * Get the state of this object. * * @return an instance of AccessibleState containing the current state of the object * @see AccessibleState */ public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet states = super.getAccessibleStateSet(); if (((java.awt.List) source).isMultipleMode()) { states.add(AccessibleState.MULTISELECTABLE); } if (((java.awt.List) source).getSelectedItems().length > 0) { states.add(AccessibleState.SELECTED); } return states; }
/** * Get the state set of this object. * * @return an instance of AccessibleState containing the current state of the object * @see AccessibleState */ public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet states = super.getAccessibleStateSet(); if (getValueIsAdjusting()) { states.add(AccessibleState.BUSY); } if (getOrientation() == VERTICAL) { states.add(AccessibleState.VERTICAL); } else { states.add(AccessibleState.HORIZONTAL); } return states; }
@Override public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet aStateSet = super.getAccessibleStateSet(); if (isAccessibleChildSelected(accessibleIndexInParent)) { aStateSet.add(AccessibleState.SELECTED); } return aStateSet; }
@Override public AccessibleStateSet getAccessibleStateSet() { toolkit.lockAWT(); try { AccessibleStateSet aStateSet = super.getAccessibleStateSet(); if (isMultipleMode()) { aStateSet.add(AccessibleState.MULTISELECTABLE); } return aStateSet; } finally { toolkit.unlockAWT(); } }
/** * Gets the state set of this object. * * @return an instance of AccessibleStateSet describing the states of the object * @see AccessibleState */ public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet states = super.getAccessibleStateSet(); states.add(AccessibleState.SINGLE_LINE); return states; }
/** * Returns a set containing the current state of the {@link JProgressBar} component. * * @return The accessible state set. */ public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet result = super.getAccessibleStateSet(); if (orientation == JProgressBar.HORIZONTAL) result.add(AccessibleState.HORIZONTAL); else if (orientation == JProgressBar.VERTICAL) result.add(AccessibleState.VERTICAL); return result; }
@Override public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet set = super.getAccessibleStateSet(); set.add(AccessibleState.MULTI_LINE); return set; }