Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * 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;
 }
Esempio n. 4
0
 @Override
 public AccessibleStateSet getAccessibleStateSet() {
   AccessibleStateSet aStateSet = super.getAccessibleStateSet();
   if (isAccessibleChildSelected(accessibleIndexInParent)) {
     aStateSet.add(AccessibleState.SELECTED);
   }
   return aStateSet;
 }
Esempio n. 5
0
 @Override
 public AccessibleStateSet getAccessibleStateSet() {
   toolkit.lockAWT();
   try {
     AccessibleStateSet aStateSet = super.getAccessibleStateSet();
     if (isMultipleMode()) {
       aStateSet.add(AccessibleState.MULTISELECTABLE);
     }
     return aStateSet;
   } finally {
     toolkit.unlockAWT();
   }
 }
Esempio n. 6
0
 /**
  * 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;
 }
Esempio n. 7
0
 /**
  * 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;
 }
Esempio n. 8
0
 @Override
 public AccessibleStateSet getAccessibleStateSet() {
   AccessibleStateSet set = super.getAccessibleStateSet();
   set.add(AccessibleState.MULTI_LINE);
   return set;
 }