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

Method getBookError

src/org/albite/albite/AlbiteMIDlet.java:882–892  ·  view source on GitHub ↗

Returns an initiliazed instance of bookError component. @return the initialized component instance

()

Source from the content-addressed store, hash-verified

880 * @return the initialized component instance
881 */
882 public Alert getBookError() {
883 if (bookError == null) {//GEN-END:|101-getter|0|101-preInit
884 // write pre-init user code here
885 bookError = new Alert("Sorry!", "Sorry, cannot open this book: " + getLoadBook().getTask().getFailureMessage() + ".", null, AlertType.WARNING);//GEN-BEGIN:|101-getter|1|101-postInit
886 bookError.addCommand(getDISMISS_COMMAND());
887 bookError.setCommandListener(this);
888 bookError.setTimeout(Alert.FOREVER);//GEN-END:|101-getter|1|101-postInit
889 // write post-init user code here
890 }//GEN-BEGIN:|101-getter|2|
891 return bookError;
892 }
893 //</editor-fold>//GEN-END:|101-getter|2|
894
895 //<editor-fold defaultstate="collapsed" desc=" Generated Method: lastBookAvailable ">//GEN-BEGIN:|134-if|0|134-preIf

Callers 1

commandActionMethod · 0.95

Calls 6

getLoadBookMethod · 0.95
getDISMISS_COMMANDMethod · 0.95
setTimeoutMethod · 0.80
getFailureMessageMethod · 0.65
getTaskMethod · 0.45
setCommandListenerMethod · 0.45

Tested by

no test coverage detected