Package com.l2fprod.common.swing

Examples of com.l2fprod.common.swing.JTaskPane


            scrollPane.getVerticalScrollBar().getValue()
                + scrollPane.getVerticalScrollBar().getUnitIncrement());
      }
    };

    mPluginsPane = new JTaskPane();
    mPluginsPane.add(mFunctionGroup);

    mActionsPane = new JScrollPane(mPluginsPane);

    mConfigBtn = new JButton(mLocalizer.msg("config", "Configure view"));
View Full Code Here


  private void resetFunctionGroupInternal() {
    mFunctionGroup = new JTaskPaneGroup();
    mFunctionGroup.setTitle(mLocalizer.msg("functions", "Functions"));

    mPluginsPane = new JTaskPane();
    mPluginsPane.add(mFunctionGroup);

    mActionsPane.setViewportView(mPluginsPane);

    mFindAsYouType.installKeyListener(mPluginsPane);
View Full Code Here

    private IconGenerator<AbstractCommand> iconGenerator;

    protected JComponent buildRootComponent(AbstractCommand command)
    {
        JTaskPane pane = new JTaskPane();
        pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
        pane.setOpaque(false);
        return pane;
    }
View Full Code Here

            return group;
        }
        else
        {
            final JTaskPane parent = (JTaskPane) parentComponent;
            final JTaskPaneGroup group = new JTaskPaneGroup();
            group.setTitle(command.getText());
            group.setIcon(icon);
            group.setExpanded(false);

            if (hasOnlyOneExpanded())
            {
                group.addPropertyChangeListener(JTaskPaneGroup.EXPANDED_CHANGED_KEY, new PropertyChangeListener()
                {
                    public void propertyChange(PropertyChangeEvent evt)
                    {
                        if ((Boolean) evt.getNewValue())
                        {
                            Component[] comps = parent.getComponents();
                            for (int i = 0; i < comps.length; i++)
                            {
                                if (comps[i] instanceof JTaskPaneGroup && comps[i] != group)
                                {
                                    JTaskPaneGroup g = ((JTaskPaneGroup) comps[i]);
                                    if (g.isExpanded())
                                    {
                                        g.setExpanded(false);
                                    }
                                }
                            }
                        }
                    }
                });
            }

            parent.add(group);

            return group;
        }
    }
View Full Code Here

  }

  static class DemoPanel extends JTaskPane {

    public DemoPanel() {
      JTaskPane taskPane = new JTaskPane();

      // "System" GROUP
      JTaskPaneGroup systemGroup = new JTaskPaneGroup();
      systemGroup.setTitle(RESOURCE.getString("Main.tasks.systemGroup"));
      systemGroup.setToolTipText(RESOURCE
        .getString("Main.tasks.systemGroup.tooltip"));
      systemGroup.setSpecial(true);
      systemGroup.setIcon(new ImageIcon(TaskPaneMain.class
        .getResource("icons/tasks-email.png")));

      systemGroup.add(makeAction(RESOURCE.getString("Main.tasks.email"), "",
        "icons/tasks-email.png"));
      systemGroup.add(makeAction(RESOURCE.getString("Main.tasks.delete"), "",
        "icons/tasks-recycle.png"));

      taskPane.add(systemGroup);

      // "Office" GROUP
      JTaskPaneGroup officeGroup = new JTaskPaneGroup();
      officeGroup.setTitle(RESOURCE.getString("Main.tasks.office"));
      officeGroup.add(makeAction(RESOURCE.getString("Main.tasks.word"), "",
        "icons/tasks-writedoc.png"));
      officeGroup.setExpanded(false);
      officeGroup.setScrollOnExpand(true);

      taskPane.add(officeGroup);

      // "SEE ALSO" GROUP and ACTIONS
      JTaskPaneGroup seeAlsoGroup = new JTaskPaneGroup();
      // this group can not be collapsed
      seeAlsoGroup.setCollapsable(false);
      seeAlsoGroup.setTitle(RESOURCE.getString("Main.tasks.seealso"));
      seeAlsoGroup.add(makeAction("The Internet", RESOURCE
        .getString("Main.tasks.internet.tooltip"), "icons/tasks-internet.png"));

      seeAlsoGroup.add(makeAction(RESOURCE.getString("Main.tasks.help"),
        RESOURCE.getString("Main.tasks.help.tooltip"),
        "icons/tasks-question.png"));

      taskPane.add(seeAlsoGroup);

      // "Details" GROUP
      JTaskPaneGroup detailsGroup = new JTaskPaneGroup();
      detailsGroup.setTitle(RESOURCE.getString("Main.tasks.details"));
      detailsGroup.setScrollOnExpand(true);

      JEditorPane detailsText = new JEditorPane("text/html", "<html>");
      LookAndFeelTweaks.makeMultilineLabel(detailsText);
      LookAndFeelTweaks.htmlize(detailsText);
      detailsText.setText(RESOURCE.getString("Main.tasks.details.message"));
      detailsGroup.add(detailsText);

      taskPane.add(detailsGroup);

      JScrollPane scroll = new JScrollPane(taskPane);
      scroll.setBorder(null);

      setLayout(new BorderLayout());
View Full Code Here

    }

    JTabbedPane tabPane = new JTabbedPane();
    tabPane.setMinimumSize(new Dimension(250, 200));

    taskPane = new JTaskPane();
    scrollPane = new JScrollPane(taskPane);
    tabPane.add(GUIMessages.getString("GeneratorParamPanel.titleBorder.text"), scrollPane);

    displayTaskInfo();
    displayTaskResources();
View Full Code Here

  public JTaskPaneCommandGroup(String groupId, CommandRegistry registry) {
    super(groupId, registry);
  }

  public JTaskPane createTaskPane() {
    JTaskPane taskPane = new JTaskPane();
    for (Iterator it = groups.iterator(); it.hasNext();) {
      JTaskPaneGroupCommandGroup member = (JTaskPaneGroupCommandGroup)it.next();
      taskPane.add(member.createTaskPaneGroup());
    }
    return taskPane;
  }
View Full Code Here

TOP

Related Classes of com.l2fprod.common.swing.JTaskPane

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.