Examples of MessageBox


Examples of allfours.ui.MessageBox

   * Gibt eine Nachricht (MessageBox aus)
   * @param msg Nachricht
   */
  public void ShowMessage(String msg)
  {
    new MessageBox(window, msg, false);
  }
View Full Code Here

Examples of belotetime.core.dialog.MessageBox

      TotalNbGameWon.setText(stat.getNbPartieWon() + "");
      TotalPointLabel.setText(stat.getNbPoints() + "");
      averageLabel.setText(stat.getAverage() + "");

    } catch (Exception e) {
      MessageBox m = new MessageBox("Echec", e.getMessage());
      e.printStackTrace();
      m.show();
    }

    gridPane.add(nameLabelRef, 0, 1);
    gridPane.add(nameLabel, 1, 1);
    GridPane.setMargin(nameLabel, insets);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.MessageBox

        ContactData data = datas.get(currentItem);
        if(data == null)
          return;
        final String jid = data.get(JID);   
        final String nick = data.get(ALIAS);
        final MessageBox box = MessageBox.prompt(JabberApp.getConstants().Rename(), JabberApp.getConstants().RenamePrompt()+" "+nick+":");
        box.addCallback(new Listener<MessageBoxEvent>()
        { 
          public void handleEvent(MessageBoxEvent be)
          { 
            if(!be.value.isEmpty())
            {
              if(!be.buttonClicked.getItemId().equals(MessageBox.OK))
                return;
              if(!nick.equals(be.value))
                JabberApp.instance().renameUser(XmppID.parseId(jid), be.value);
            }
          } 
        });
      }
       
      });
     
      groupMenuItem = new MenuItem(JabberApp.getConstants().Group());
      groupMenu = new Menu();
      groupMenuItem.setSubMenu(groupMenu);
      groupMenuItem.addListener(Events.Activate, new Listener<MenuEvent>()
      {
      public void handleEvent(MenuEvent be)
      {
        List<ContactData> datas = store.getModels();
        ContactData data = datas.get(currentItem);
        if(data == null)
          return;
        final String jid = data.get(JID);
        final String group = data.get(USER_GROUP_DD);
        final String nick = data.get(ALIAS);
       
        Menu groupMenu = groupMenuItem.getSubMenu();
        groupMenu.removeAll();
        for(String g:m_groups)
        {
          CheckMenuItem gItem = new CheckMenuItem(g);
          gItem.setGroup("groups");
          if(g.equals(group))
            gItem.setChecked(true);
          groupMenu.add(gItem);
          gItem.addListener(Events.Select, new Listener<MenuEvent>()
          {
            public void handleEvent(MenuEvent be)
            {
              MenuItem mItem = (MenuItem)be.item;
              String newGroup = mItem.getText();
              if(!newGroup.equals(group))
                JabberApp.instance().changeGroup(XmppID.parseId(jid),nick, newGroup);
            }
           
          });
        }
        groupMenu.add(new SeparatorMenuItem());
        MenuItem newGroupItem = new MenuItem(JabberApp.getConstants().New_Group());
        newGroupItem.addListener(Events.Select, new Listener<MenuEvent>()
        {
          public void handleEvent(MenuEvent be)
          {
            final MessageBox box = MessageBox.prompt(JabberApp.getConstants().New_Group(), JabberApp.getConstants().NewGroupPrompt());
            box.addCallback(new Listener<MessageBoxEvent>()
            { 
              public void handleEvent(MessageBoxEvent be)
              { 
                if(!be.value.isEmpty())
                {
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.box.MessageBox

public class LogTabPanel extends TabPanel {
 
  protected static JobDebugServiceAsync debugService=GWT.create(JobDebugService.class);
 
  public LogTabPanel(){
    final MessageBox box = new MessageBox(
        "取消调试么?", "此次调试正在运行,要取消本次调试么?");
    box.setPredefinedButtons(
        PredefinedButton.YES,
        PredefinedButton.NO,
        PredefinedButton.CANCEL);
    box.setIcon(MessageBox.ICONS
        .question());
    box.addHideHandler(new HideHandler() {
      @Override
      public void onHide(HideEvent event) {
        final LogTextPanel item = (LogTextPanel) box.getData("item");
        Dialog btn = (Dialog) event.getSource();
        String choice = btn.getHideButton().getItemId();
        if(choice.equalsIgnoreCase("yes")){
          debugService.cancelDebug(item.getDebugId(), new AsyncCallback<Void>() {
           
            @Override
            public void onSuccess(Void result) {
              item.getTimer().cancel();
              closeTab(item);
            }

            @Override
            public void onFailure(Throwable caught) {
              Window.alert("调试取消失败");
            }
          });
        }else if(choice.equalsIgnoreCase("no")){
          item.getTimer().cancel();
          closeTab(item);
        }else{
          //do nothing
        }
      }
    });
    addBeforeCloseHandler(new BeforeCloseHandler<Widget>() {
      @Override
      public void onBeforeClose(
          final BeforeCloseEvent<Widget> bcEvent) {
        final LogTextPanel item = (LogTextPanel) bcEvent.getItem();
        box.setData("item", item);
        if(item.isRunning() == true){
          box.show();
          bcEvent.setCancelled(true);
        }
      }
    });
  }
View Full Code Here

Examples of de.novanic.gwteventservice.demo.conversationapp.client.conversation.ui.message.MessageBox

        });

        aConversationChannelPanel.addChannelSelectListener(new ChannelSelectListener() {
            public void onSelect(final String aChannel) {
                if(myChannel != null && !aChannel.equals(myChannel.getName())) {
                    final MessageBox theMessageBox = MessageBoxCreator.createYesNoMessage("Join channel \"" + aChannel + "\"?");
                    theMessageBox.addButtonListener(new MessageButtonListener() {
                        public void onClick(Button aButton) {
                            switch(aButton) {
                                case YES:
                                    myConversationService.join(myUser, aChannel, new VoidAsyncCallback<Channel>());
                                default:
                                    theMessageBox.close();
                            }
                        }
                    });
                }
            }
View Full Code Here

Examples of eu.mihosoft.vrl.visual.MessageBox

            } catch (IllegalAccessException ex) {
                Logger.getLogger(Studio.class.getName()).
                        log(Level.SEVERE, null, ex);
            }
        } else if (getCurrentCanvas().getClipBoard().isEmpty()) {
            MessageBox mBox = getCurrentCanvas().getMessageBox();
            mBox.addUniqueMessage("Can't group components:",
                    "Please select at least one component!", null,
                    MessageType.ERROR);
        } else if (onlyWindows) {
            getCurrentCanvas().getWindowGroupController().
                    createGroupFromSelectedWindows();
        } else {
            MessageBox mBox = getCurrentCanvas().getMessageBox();
            mBox.addUniqueMessage("Can't group components:",
                    "Only components of same type can be grouped!"
                    + "<ul>"
                    + " <li>Select windows to define a window group "
                    + "(code windows and non VRL windows are not supported)."
                    + "</li>"
View Full Code Here

Examples of net.datacrow.console.windows.messageboxes.MessageBox

     * Opens an information dialog. The message can either be a string or a resource key.
     * @param msg Message string or resource key.
     * @return
     */   
    public static void displayMessage(String msg) {
        MessageBox mb = new MessageBox(msg.startsWith("msg") ? DcResources.getText(msg) : msg, MessageBox._INFORMATION);
        open(mb);
    }
View Full Code Here

Examples of net.datacrow.console.windows.messageboxes.MessageBox

     * Opens an error dialog. The message can either be a string or a resource key.
     * @param msg Message string or resource key.
     * @return
     */   
    public static void displayErrorMessage(String msg) {
        MessageBox mb = new MessageBox(msg.startsWith("msg") ? DcResources.getText(msg) : msg, MessageBox._ERROR);
        open(mb);
    }
View Full Code Here

Examples of net.datacrow.console.windows.messageboxes.MessageBox

     * @param msg Message string or resource key.
     * @return
     */   
    public static void displayWarningMessage(String msg) {
        String text = msg != null && msg.startsWith("msg") ? DcResources.getText(msg) : msg;
        MessageBox mb = new MessageBox(text, MessageBox._WARNING);
        open(mb);
    }   
View Full Code Here

Examples of org.eclipse.swt.widgets.MessageBox

  Properties _props;
  private IFile _file;

  public void run(IAction action) {

    MessageBox msgBox = new MessageBox(new Shell(), SWT.ICON_QUESTION | SWT.YES | SWT.NO);
    msgBox.setText("Are you really sure?");
    msgBox.setMessage("Are you really sure that you want to sort the labelfile: \n" + _file.getFullPath());
    int response = msgBox.open();

    if (response == SWT.YES) {

      SortedProperties sortedProperties = new SortedProperties();
      sortedProperties.putAll(_props);
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.