walker.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { KeyCode } from '../common/event_util.js';
  2. import { AxisMap } from '../rule_engine/dynamic_cstr.js';
  3. import { Focus } from './focus.js';
  4. import { RebuildStree } from './rebuild_stree.js';
  5. export interface Walker {
  6. modifier: boolean;
  7. isActive(): boolean;
  8. activate(): void;
  9. deactivate(): void;
  10. speech(): string;
  11. getXml(): Element;
  12. getRebuilt(): RebuildStree;
  13. getFocus(opt_update?: boolean): Focus;
  14. setFocus(focus: Focus): void;
  15. getDepth(): number;
  16. move(key: KeyCode): boolean | null;
  17. update(options: AxisMap): void;
  18. refocus(): void;
  19. }
  20. export declare enum WalkerMoves {
  21. UP = "up",
  22. DOWN = "down",
  23. LEFT = "left",
  24. RIGHT = "right",
  25. REPEAT = "repeat",
  26. DEPTH = "depth",
  27. ENTER = "enter",
  28. EXPAND = "expand",
  29. HOME = "home",
  30. SUMMARY = "summary",
  31. DETAIL = "detail",
  32. ROW = "row",
  33. CELL = "cell"
  34. }
  35. export declare class WalkerState {
  36. private static STATE;
  37. static resetState(id: string): void;
  38. static setState(id: string, value: string): void;
  39. static getState(id: string): string;
  40. }