hackedteam/core-blackberry

View on GitHub
InjectionFramework/src/blackberry/InjectionFrameworkScreen.java

Summary

Maintainability
A
0 mins
Test Coverage
package blackberry;

import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.container.MainScreen;

/**
 * A class extending the MainScreen class, which provides default standard
 * behavior for BlackBerry GUI applications.
 */
public final class InjectionFrameworkScreen extends MainScreen
{
    /**
     * Creates a new InjectionFrameworkScreen object
     */
    public InjectionFrameworkScreen()
    {        
        // Set the displayed title of the screen       
        setTitle("Injection Framework");
    }
    
    public boolean onClose(){
        Dialog.alert("Goodbye!");
        InjectionFrameworkApp app = (InjectionFrameworkApp)getApplication();
        app.onClose();
        
        return true;
    }
}