211212213214215216217218219220221
Assert.assertion(c instanceof TreeHook, "Navigator node is instance of TreeHook"); // Apply the mode to the command set according to the node selected DataModel model = ((TreeHook) c).getDataModel(); model.grabFocus(); } } } }
230231232233234235236237238239240
267268269270271272273274275276277
if (path != null) { DataModel m = ((TreeHook) path.getLastPathComponent()).getDataModel(); if (m != null) { m.grabFocus(); return m; } }
99100101102103104105106107108109
UnoRuntime.queryInterface( XAccessibleComponent.class,oObj); tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { acc.grabFocus(); } }); return tEnv;
124125126127128129130131132133134
101102103104105106107108109110111
190191192193194195196197198199200
XAccessibleComponent.class, oObj); tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { acomp.grabFocus(); } }); return tEnv; }
198199200201202203204205206207208
tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { System.out.println("Grabbing focus ... "); acomp1.grabFocus(); acomp.grabFocus(); } }); return tEnv;
184185186187188189190191192193194