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

Method getExitBox

src/org/albite/albite/AlbiteMIDlet.java:3351–3362  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

3349 * @return the initialized component instance
3350 */
3351 public Alert getExitBox() {
3352 if (exitBox == null) {//GEN-END:|547-getter|0|547-preInit
3353 // write pre-init user code here
3354 exitBox = new Alert("Quit", "Do you want to quit?", getAlbiteLogo(), AlertType.CONFIRMATION);//GEN-BEGIN:|547-getter|1|547-postInit
3355 exitBox.addCommand(getYES_COMMAND());
3356 exitBox.addCommand(getNO_COMMAND());
3357 exitBox.setCommandListener(this);
3358 exitBox.setTimeout(Alert.FOREVER);//GEN-END:|547-getter|1|547-postInit
3359 // write post-init user code here
3360 }//GEN-BEGIN:|547-getter|2|
3361 return exitBox;
3362 }
3363 //</editor-fold>//GEN-END:|547-getter|2|
3364
3365 //<editor-fold defaultstate="collapsed" desc=" Generated Getter: languages ">//GEN-BEGIN:|1023-getter|0|1023-preInit

Callers 1

quitMethod · 0.95

Calls 5

getAlbiteLogoMethod · 0.95
getYES_COMMANDMethod · 0.95
getNO_COMMANDMethod · 0.95
setTimeoutMethod · 0.80
setCommandListenerMethod · 0.45

Tested by

no test coverage detected