Package net.alteiar.thread

Examples of net.alteiar.thread.MyRunnable


  @Override
  protected PanelStartGameDialog getNext() {
    PanelStartGameDialog next = null;
    switch (selection) {
    case CREATE:
      Threads.execute(new MyRunnable() {
        @Override
        public void run() {
          MyCampaignFactory.startNewCampaign();
        }

        @Override
        public String getTaskName() {
          return "Create game";
        }
      });
      next = new PanelLoading(getDialog(), this);
      break;
    case LOAD:
      next = new PanelLoadGame(getDialog(), this);
      break;
    case JOIN:
      Threads.execute(new MyRunnable() {
        @Override
        public void run() {
          MyCampaignFactory.joinCampaign();
        }
View Full Code Here


  public void loadCampaign() {
    String campaignName = getCampaignName();
    final String campaignPath = HelpersPath.PATH_SAVE + campaignName;

    Threads.execute(new MyRunnable() {
      @Override
      public void run() {
        MyCampaignFactory.loadCampaign(campaignPath);
      }
View Full Code Here

    gbc_lblMapImage.gridy = 3;
    add(lblMapImage, gbc_lblMapImage);
  }

  private void selectImage(final ImageSelectorStrategy selector) {
    Threads.execute(new MyRunnable() {

      @Override
      public void run() {
        TransfertImage tmp = selector.selectImage();
View Full Code Here

   * This is an internal function and should not be use directly
   */
  public void playDistributed(int i) {
    if (notifyRemote(METH_PLAY_DISTRIBUTED_METHOD, null, 0)) {

      ThreadPoolUtils.getClientPool().execute(new MyRunnable() {
        @Override
        public void run() {
          try {
            player = getAudio().restoreAudio();
            player.play();
View Full Code Here

    dlg.setLocationRelativeTo(null);
    dlg.setVisible(true);

    if (dlg.getReturnStatus() == DialogOkCancel.RET_OK) {

      Threads.execute(new MyRunnable() {

        @Override
        public void run() {
          MapBean map = getMapInfo().getMap();
View Full Code Here

TOP

Related Classes of net.alteiar.thread.MyRunnable

Copyright © 2018 www.massapicom. 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.