Package org.springframework.richclient.command

Examples of org.springframework.richclient.command.CommandGroup


    private IconGenerator<AbstractCommand> taskPaneIconGenerator;

    @Override
    protected JComponent createWindowContentPane()
    {
        CommandGroup navigationCommandGroup = ((NavigatorApplicationLifecycleAdvisor) getAdvisor())
                .getNavigationCommandGroup();
        TaskPaneNavigatorView taskPaneNavigatorView = new TaskPaneNavigatorView(navigationCommandGroup);
        taskPaneNavigatorView.setIconGenerator(getTaskPaneIconGenerator());
        taskPaneNavigatorView.setOnlyOneExpanded(onlyOneExpanded);
View Full Code Here


  private boolean isEditable() {
    return !(textComponent instanceof JPasswordField) && textComponent.isEnabled() && textComponent.isEditable();
  }

  protected CommandGroup getEditableCommandGroup() {
    CommandGroup editGroup = getCommandManager().getCommandGroup("textEditMenu");
    if (editGroup == null) {
      editGroup = getCommandManager().createCommandGroup(
          "textEditMenu",
          new Object[] { GlobalCommandIds.UNDO, GlobalCommandIds.REDO, "separator", GlobalCommandIds.CUT,
              GlobalCommandIds.COPY, GlobalCommandIds.PASTE, "separator", GlobalCommandIds.SELECT_ALL });
View Full Code Here

    }
    return editGroup;
  }

  protected CommandGroup getPasswordCommandGroup() {
    CommandGroup passwordGroup = getCommandManager().getCommandGroup("passwordTextEditMenu");
    if (passwordGroup == null) {
      passwordGroup = getCommandManager().createCommandGroup("passwordTextEditMenu",
          new Object[] { GlobalCommandIds.UNDO, GlobalCommandIds.REDO });
    }
    return passwordGroup;
View Full Code Here

    }
    return passwordGroup;
  }

  protected CommandGroup getReadOnlyCommandGroup() {
    CommandGroup readOnlyGroup = getCommandManager().getCommandGroup("readOnlyTextEditMenu");
    if (readOnlyGroup == null) {
      readOnlyGroup = getCommandManager().createCommandGroup("readOnlyTextEditMenu",
          new Object[] { GlobalCommandIds.COPY, "separator", GlobalCommandIds.SELECT_ALL });
    }
    return readOnlyGroup;
View Full Code Here

          FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
          FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
      CellConstraints cc = new CellConstraints();
      panel.add(new JLabel(getMessage("parentForm.label")), cc.xy(1, 1));
      panel.add(builder.getForm(), cc.xy(3, 3));
      CommandGroup parentFormcommandGroup = CommandGroup.createCommandGroup(new ActionCommand[] {
          getEnableFormModelCommand(), getReadOnlyFormModelCommand(), getValidatingFormModelCommand() });
      panel.add(parentFormcommandGroup.createButtonBar(), cc.xy(3, 5));
      panel.add(new JLabel(getMessage("childForm.label")), cc.xy(1, 7));
      childForm = new ChildForm();
      childForm.setMessageArea(getMessageArea());
      panel.add(childForm.getControl(), cc.xy(3, 9));
      CommandGroup childFormcommandGroup = CommandGroup.createCommandGroup(new ActionCommand[] {
          childForm.getEnableFormModelCommand(), childForm.getReadOnlyFormModelCommand(),
          childForm.getValidatingFormModelCommand() });
      panel.add(childFormcommandGroup.createButtonBar(), cc.xy(3, 11));
      addChildForm(childForm);
      newSingleLineResultsReporter(ParentChildFormDialog.this);
      return panel;
    }
View Full Code Here

   
    ApplicationLifecycleAdvisor advisor = getApplication().getLifecycleAdvisor();
    if(advisor instanceof JideApplicationLifecycleAdvisor){
      JideApplicationLifecycleAdvisor dockingAdvisor =
        (JideApplicationLifecycleAdvisor)advisor;
      CommandGroup commandGroup = dockingAdvisor.getSpecificCommandGroup(name);
     
      return commandGroup;
    }
    return null;
  }
View Full Code Here

   * its default
   *
   * @return
   */
  public JComponent getEditorMenuBar(){
    CommandGroup commandGroup = getCommandGroup(getMenuBarCommandGroupName());
    if(commandGroup == null){
      return null;
    }
    return commandGroup.createMenuBar();
  }
View Full Code Here

   * its default
   *
   * @return
   */
  public JComponent getEditorToolBar(){
    CommandGroup commandGroup = getCommandGroup(getToolBarCommandGroupName());
    if(commandGroup == null){
      return null;
    }
    return commandGroup.createToolBar();
  }
View Full Code Here

        JPanel table = new JPanel(new BorderLayout());
        table.add(widget.getListSummaryLabel(), BorderLayout.NORTH);
        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()
        {
            public void mousePressed(MouseEvent e)
            {
View Full Code Here

            // Install the fully constructed (layered) list into the table
            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

TOP

Related Classes of org.springframework.richclient.command.CommandGroup

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.