Пример #1
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;
 }
Пример #2
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;
 }
Пример #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 (getState()) {
     states.add(AccessibleState.CHECKED);
   }
   return states;
 }
Пример #4
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;
 }