MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / setDefinition

Method setDefinition

src/org/albite/albite/AlbiteMIDlet.java:2616–2635  ·  view source on GitHub ↗

Performs an action assigned to the setDefinition entry-point.

()

Source from the content-addressed store, hash-verified

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

Callers 1

wordFoundMethod · 0.95

Calls 4

getWordDefinitionMethod · 0.95
switchDisplayableMethod · 0.95
deleteAllMethod · 0.80
getTitleMethod · 0.45

Tested by

no test coverage detected