Examples of MainScreen


Examples of fr.soleil.bossanova.gui.MainScreen

    init();

    ResourceBundle rb = ResourceBundle.getBundle("fr.soleil.bossanova.resources.application");
    String title = rb.getString("project.name") + " " + rb.getString("project.version") + " " + rb.getString("build.date");

    mainScreen = new MainScreen(title, standAlone);
    if (standAlone) {
      mainScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      BatchManager.createNewBatch();
    }
    // Bug 17412
View Full Code Here

Examples of fr.soleil.bossanova.gui.MainScreen

    String title = rb.getString("project.name") + " "
        + rb.getString("project.version") + " "
        + rb.getString("build.date");
 
   
    mainScreen = new MainScreen(title, standAlone);
    if (standAlone) {
      mainScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      BatchManager.createNewBatch();
    }
    // Bug 17412
View Full Code Here

Examples of fr.soleil.bossanova.gui.MainScreen

    String title = rb.getString("project.name") + " "
        + rb.getString("project.version") + " "
        + rb.getString("build.date");


    mainScreen = new MainScreen(title, standAlone);
    if (standAlone) {
      mainScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      BatchManager.createNewBatch();
    }
    // Bug 17412
View Full Code Here

Examples of fr.soleil.bossanova.gui.MainScreen

        initSystemProperties();

        try {
            application = new Bossanova2();
            application.initUI(false);
            MainScreen mainScreen = application.getMainScreen();
            add(mainScreen.getContentPane());

            //mainScreen.setSize(new Dimension(800, 600));
            //setSize(new Dimension(800, 600));
            mainScreen.setSize(new Dimension(400, 300));
            setSize(new Dimension(400, 300));
        } catch (Exception e) {
            JXErrorPane.showDialog(e);
        }
    }
View Full Code Here

Examples of fr.soleil.bossanova.gui.MainScreen

    StateMachine.getInstance().transitionTo(StateMachine.MODEL_OPEN);

    // Select the new step.
    BossaNovaData.getSingleton().getApplication().setSelectedStep(sequencer.getBatch().getStep(0), false);

    MainScreen mainScreen = BossaNovaData.getSingleton().getApplication().getMainScreen();
    if (mainScreen != null) {
      mainScreen.enableStepButton();
    }
  }
View Full Code Here

Examples of gui.MainScreen

    theMap = new Map();
    //start off in a town
    currentTown = new Town();
   
    //initialize the main gui
    mainScreen = new MainScreen();
   
    //set the first store as the first store for the store screen
    mainScreen.setTownAndStore(currentTown)
  }
View Full Code Here

Examples of net.rim.device.api.ui.container.MainScreen

     
      new Thread () {
        public void run() {
          try
          {
            MainScreen ms = (MainScreen)_browserField.getScreen();
            //LabelField label = new LabelField (_text, LabelField.USE_ALL_WIDTH);
            ms.setTitle(_text);
            ms.getDelegate().invalidate();
            //ms.doPaint();
          }
          catch (Exception e) {
            //throw new RuntimeException(e.getMessage());
          }
View Full Code Here

Examples of net.rim.device.api.ui.container.MainScreen

    {
      Object result = Boolean.FALSE;

      if (args.length >= 2 && menu == null)
      {
        MainScreen screen = (MainScreen) SendMenuExtension.getBrowserField().getScreen();
   
        int sendType = Integer.parseInt(args[0].toString());
        boolean getAll = (args.length>=3) ? ((Boolean) args[2]).booleanValue() : false;
        int ordering = (args.length>=4) ? Integer.parseInt(args[3].toString()) : 0;
        int priority = (args.length>=5) ? Integer.parseInt(args[4].toString()) : 0;
       
        try
        {
          JSONObject context = new JSONObject(args[1].toString());
         
          SendCommand[] sendCommands = SendCommandRepository.getInstance().get(sendType,context,getAll);
         
          if(sendCommands != null && sendCommands.length > 0)
          {
            if(args.length >= 6 && args[5] != null)
            {
              try
              {
                JSONObject filterArgs = new JSONObject(args[5].toString());
                SendContextFilter filter = new SendContextFilter(filterArgs);
                for (int i = 0; i < sendCommands.length; i++)
                {
                  sendCommands[i].setSendCommandContextFilter(filter);
                }
              } catch (JSONException e) {
                System.out.println(e.toString());
              }
            }
            SendCommandMenu sendCommandmenu = new SendCommandMenu(sendCommands, 0, 0);
            SendCommandMenuItem[] menuItems = sendCommandmenu.getSendCommandMenuItems();
            menu = new SubMenu(menuItems,menuLabel,ordering,priority);
            screen.addMenuItem(menu.getMenuItem());
            result = Boolean.TRUE;
          }
        }
        catch (JSONException e)
        {
View Full Code Here

Examples of net.rim.device.api.ui.container.MainScreen

    public Object invoke(Object obj, Object[] args) throws Exception
    {
      if (menu != null)
      {
        MainScreen screen = (MainScreen) SendMenuExtension.getBrowserField().getScreen();
        screen.removeMenuItem(menu.getMenuItem());
        menu = null;
        return Boolean.TRUE;
      }
     
      return Boolean.FALSE;
View Full Code Here

Examples of net.rim.device.api.ui.container.MainScreen

    /**
     * @see blackberry.core.ScriptableFunctionBase#execute(Object, Object[])
     */
    public Object execute( Object thiz, Object[] args ) throws Exception {
        // Get the screen that currently owns the BrowserField
        MainScreen screen = (MainScreen) MenuExtension.getBrowserField().getScreen();
        ShowMenu thread = new ShowMenu( screen.getMenu( Menu.INSTANCE_DEFAULT ) );
        screen.getApplication().invokeLater( thread );

        return UNDEFINED;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.