/** * 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; }
/** * 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 (getState()) { states.add(AccessibleState.CHECKED); } return states; }
/** * 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; }