Performs an action assigned to the setDefinition entry-point.
()
| 2614 | * Performs an action assigned to the setDefinition entry-point. |
| 2615 | */ |
| 2616 | public void setDefinition() {//GEN-END:|782-entry|0|783-preAction |
| 2617 | // write pre-action user code here |
| 2618 | //#if !(TinyMode || TinyModeExport || LightMode || LightModeExport) |
| 2619 | if (searchResult != null) { |
| 2620 | Form f = getWordDefinition(); |
| 2621 | f.deleteAll(); |
| 2622 | |
| 2623 | f.append( |
| 2624 | new StringItem("Word:", searchWord)); |
| 2625 | f.append( |
| 2626 | new StringItem("Definition:", searchResult[0])); |
| 2627 | f.append( |
| 2628 | new StringItem( |
| 2629 | "Dictionary:", |
| 2630 | selectedDictionary.getTitle())); |
| 2631 | } |
| 2632 | //#endif |
| 2633 | switchDisplayable(null, getWordDefinition());//GEN-LINE:|782-entry|1|783-postAction |
| 2634 | // write post-action user code here |
| 2635 | }//GEN-BEGIN:|782-entry|2| |
| 2636 | //</editor-fold>//GEN-END:|782-entry|2| |
| 2637 | |
| 2638 | //<editor-fold defaultstate="collapsed" desc=" Generated Method: setWord ">//GEN-BEGIN:|791-entry|0|792-preAction |
no test coverage detected