Package org.springframework.richclient.command

Examples of org.springframework.richclient.command.CommandGroup.addSeparator()


        table.add(widget.getComponent(), BorderLayout.CENTER);
        table.add(widget.getButtonBar(), BorderLayout.SOUTH);

        CommandGroup popup = new CommandGroup();
        popup.add((ActionCommand) getWindowCommandManager().getCommand("deleteCommand", ActionCommand.class));
        popup.addSeparator();
        popup.add((ActionCommand) getWindowCommandManager().getCommand("propertiesCommand", ActionCommand.class));
        JPopupMenu popupMenu = popup.createPopupMenu();

        widget.getTable().addMouseListener(new MouseAdapter()
        {
View Full Code Here


            contactTable.setFinalEventList(filterList);

            // Install the popup menu
            CommandGroup popup = new CommandGroup();
            popup.add((ActionCommand) getWindowCommandManager().getCommand("deleteCommand", ActionCommand.class));
            popup.addSeparator();
            popup.add((ActionCommand) getWindowCommandManager().getCommand("propertiesCommand", ActionCommand.class));
            contactTable.setPopupCommandGroup(popup);

            // Register to get notified when the filtered list changes
            contactTable.setStatusBar(getStatusBar());
View Full Code Here

    commandGroup.add(tileCommand);
    commandGroup.add(cascadeCommand);
    commandGroup.add(minimizeAllCommand);

    if (desktop.getAllFrames().length > 0) {
      commandGroup.addSeparator();
      // TODO try to get the frames in the order they've been added to the
      // desktop
      // pane instead of the current z-order.
      for (int i = 0; i < desktop.getAllFrames().length; i++) {
        JInternalFrame frame = desktop.getAllFrames()[i];
View Full Code Here

    for ( Iterator<PopupConfigurer<P, C>> it = popupConfigurers.iterator(); it.hasNext(); ) {
      PopupConfigurer<P, C> popupConfigurer = it.next();
      popupConfigurer.configure( group, parent, selectedChild, ( JTree ) e.getSource() ); //todo use MouseEvent(?)
      if ( it.hasNext() ) {
        group.addSeparator();
      }
    }

    return group.createPopupMenu();
  }
View Full Code Here

    CommandGroup group = objectTable.getPopupCommandGroup();
    if ( group == null ) {
      group = new CommandGroup();
    } else {
      group.addSeparator();
    }

    for ( ActionCommand command : toAdd ) {
      RcpSupport.configure( command );
      if ( command instanceof ApplicationWindowAware ) {
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.