Returns an initiliazed instance of lookupTask component. @return the initialized component instance
()
| 2568 | * @return the initialized component instance |
| 2569 | */ |
| 2570 | public SimpleCancellableTask getLookupTask() { |
| 2571 | if (lookupTask == null) {//GEN-END:|767-getter|0|767-preInit |
| 2572 | // write pre-init user code here |
| 2573 | lookupTask = new SimpleCancellableTask();//GEN-BEGIN:|767-getter|1|767-execute |
| 2574 | lookupTask.setExecutable(new org.netbeans.microedition.util.Executable() { |
| 2575 | public void execute() throws Exception {//GEN-END:|767-getter|1|767-execute |
| 2576 | // write task-execution user code here |
| 2577 | //#if !(TinyMode || TinyModeExport || LightMode || LightModeExport) |
| 2578 | try { |
| 2579 | searchResult = selectedDictionary.lookUp(searchWord); |
| 2580 | } catch (OutOfMemoryError e) { |
| 2581 | dictman.unloadDictionaries(); |
| 2582 | Runtime.getRuntime().gc(); |
| 2583 | } |
| 2584 | //#endif |
| 2585 | }//GEN-BEGIN:|767-getter|2|767-postInit |
| 2586 | });//GEN-END:|767-getter|2|767-postInit |
| 2587 | // write post-init user code here |
| 2588 | }//GEN-BEGIN:|767-getter|3| |
| 2589 | return lookupTask; |
| 2590 | } |
| 2591 | //</editor-fold>//GEN-END:|767-getter|3| |
| 2592 | |
| 2593 | //<editor-fold defaultstate="collapsed" desc=" Generated Method: wordFound ">//GEN-BEGIN:|777-if|0|777-preIf |
no test coverage detected