@eclipse-scout/core
Version:
Eclipse Scout runtime
24 lines • 1.15 kB
TypeScript
import { KeyStroke, ScoutKeyboardEvent, Tree, TreeNode } from '../../index';
export type TreeEventCurrentNode = {
_treeCurrentNode?: TreeNode;
_$treeCurrentNode?: JQuery;
};
export declare class AbstractTreeNavigationKeyStroke extends KeyStroke {
field: Tree;
nodesFocusable: boolean;
/**
* Defines whether the tree should be focused when navigating.
* This is necessary if the focus is in the filter field: pressing a navigation key should focus the tree to make left/right keystrokes work without closing the filter field
*
* Default is true.
*/
focusTree: boolean;
constructor(tree: Tree, modifierBitMask?: number);
protected _accept(event: ScoutKeyboardEvent & TreeEventCurrentNode): boolean;
handle(event: JQuery.KeyboardEventBase & TreeEventCurrentNode): void;
protected _computeNewSelection(currentNode: TreeNode): TreeNode;
selectNodesAndReveal(newSelection: TreeNode | TreeNode[], debounceSend?: boolean): void;
setNodesFocusable(nodesFocusable: boolean): void;
setFocusTree(focusTree: boolean): void;
}
//# sourceMappingURL=AbstractTreeNavigationKeyStroke.d.ts.map