int osState = ACC.STATE_NORMAL; if ((state & ACC.STATE_SELECTED) != 0){ osState |= COM.STATE_SYSTEM_SELECTED; } if ((state & ACC.STATE_SELECTABLE) != 0){ osState |= COM.STATE_SYSTEM_SELECTABLE; } if ((state & ACC.STATE_MULTISELECTABLE) != 0){ osState |= COM.STATE_SYSTEM_MULTISELECTABLE; } if ((state & ACC.STATE_FOCUSED) != 0){ osState |= COM.STATE_SYSTEM_FOCUSED; } if ((state & ACC.STATE_FOCUSABLE) != 0){ osState |= COM.STATE_SYSTEM_FOCUSABLE; } if ((state & ACC.STATE_PRESSED) != 0){ osState |= COM.STATE_SYSTEM_PRESSED; } if ((state & ACC.STATE_CHECKED) != 0){ osState |= COM.STATE_SYSTEM_CHECKED; } if ((state & ACC.STATE_EXPANDED) != 0){ osState |= COM.STATE_SYSTEM_EXPANDED; } if ((state & ACC.STATE_COLLAPSED) != 0){ osState |= COM.STATE_SYSTEM_COLLAPSED; } if ((state & ACC.STATE_HOTTRACKED) != 0){ osState |= COM.STATE_SYSTEM_HOTTRACKED; } if ((state & ACC.STATE_BUSY) != 0){ osState |= COM.STATE_SYSTEM_BUSY; } if ((state & ACC.STATE_READONLY) != 0){ osState |= COM.STATE_SYSTEM_READONLY; } if ((state & ACC.STATE_INVISIBLE) != 0){ osState |= COM.STATE_SYSTEM_INVISIBLE; } if ((state & ACC.STATE_OFFSCREEN) != 0){ osState |= COM.STATE_SYSTEM_OFFSCREEN; } if ((state & ACC.STATE_SIZEABLE) != 0){ osState |= COM.STATE_SYSTEM_SIZEABLE; }
int osState = 0; if ((state & ACC.STATE_SELECTED) != 0) osState |= COM.STATE_SYSTEM_SELECTED; if ((state & ACC.STATE_SELECTABLE) != 0) osState |= COM.STATE_SYSTEM_SELECTABLE; if ((state & ACC.STATE_MULTISELECTABLE) != 0) osState |= COM.STATE_SYSTEM_MULTISELECTABLE; if ((state & ACC.STATE_FOCUSED) != 0) osState |= COM.STATE_SYSTEM_FOCUSED; if ((state & ACC.STATE_FOCUSABLE) != 0) osState |= COM.STATE_SYSTEM_FOCUSABLE; if ((state & ACC.STATE_PRESSED) != 0) osState |= COM.STATE_SYSTEM_PRESSED; if ((state & ACC.STATE_CHECKED) != 0) osState |= COM.STATE_SYSTEM_CHECKED; if ((state & ACC.STATE_EXPANDED) != 0) osState |= COM.STATE_SYSTEM_EXPANDED; if ((state & ACC.STATE_COLLAPSED) != 0) osState |= COM.STATE_SYSTEM_COLLAPSED; if ((state & ACC.STATE_HOTTRACKED) != 0) osState |= COM.STATE_SYSTEM_HOTTRACKED; if ((state & ACC.STATE_BUSY) != 0) osState |= COM.STATE_SYSTEM_BUSY; if ((state & ACC.STATE_READONLY) != 0) osState |= COM.STATE_SYSTEM_READONLY; if ((state & ACC.STATE_INVISIBLE) != 0) osState |= COM.STATE_SYSTEM_INVISIBLE; if ((state & ACC.STATE_OFFSCREEN) != 0) osState |= COM.STATE_SYSTEM_OFFSCREEN; if ((state & ACC.STATE_SIZEABLE) != 0) osState |= COM.STATE_SYSTEM_SIZEABLE;
	int stateToOs(int state) {		int osState = ACC.STATE_NORMAL;		if ((state & ACC.STATE_SELECTED) != 0){			osState |= COM.STATE_SYSTEM_SELECTED;		}		if ((state & ACC.STATE_SELECTABLE) != 0){			osState |= COM.STATE_SYSTEM_SELECTABLE;		}		if ((state & ACC.STATE_MULTISELECTABLE) != 0){			osState |= COM.STATE_SYSTEM_MULTISELECTABLE;		}		if ((state & ACC.STATE_FOCUSED) != 0){			osState |= COM.STATE_SYSTEM_FOCUSED;		}		if ((state & ACC.STATE_FOCUSABLE) != 0){			osState |= COM.STATE_SYSTEM_FOCUSABLE;		}		if ((state & ACC.STATE_PRESSED) != 0){			osState |= COM.STATE_SYSTEM_PRESSED;		}		if ((state & ACC.STATE_CHECKED) != 0){			osState |= COM.STATE_SYSTEM_CHECKED;		}		if ((state & ACC.STATE_EXPANDED) != 0){			osState |= COM.STATE_SYSTEM_EXPANDED;		}		if ((state & ACC.STATE_COLLAPSED) != 0){			osState |= COM.STATE_SYSTEM_COLLAPSED;		}		if ((state & ACC.STATE_HOTTRACKED) != 0){			osState |= COM.STATE_SYSTEM_HOTTRACKED;		}		if ((state & ACC.STATE_BUSY) != 0){			osState |= COM.STATE_SYSTEM_BUSY;		}		if ((state & ACC.STATE_READONLY) != 0){			osState |= COM.STATE_SYSTEM_READONLY;		}		if ((state & ACC.STATE_INVISIBLE) != 0){			osState |= COM.STATE_SYSTEM_INVISIBLE;		}		if ((state & ACC.STATE_OFFSCREEN) != 0){			osState |= COM.STATE_SYSTEM_OFFSCREEN;		}		if ((state & ACC.STATE_SIZEABLE) != 0){			osState |= COM.STATE_SYSTEM_SIZEABLE;		}		return osState;	}