Examples of CollapsiblePanel


Examples of com.atlauncher.gui.components.CollapsiblePanel

    private JPanel createSettingsPanel() {
        JPanel settingsPanel = new JPanel();
        settingsPanel.add(new BackupGeneralSettingsPanel());

        for (Map.Entry<String, SyncAbstract> entry : SyncAbstract.syncList.entrySet()) {
            CollapsiblePanel settingPanel = entry.getValue().getSettingsPanel();
            if (settingPanel != null) {
                settingsPanel.add(settingPanel);
            }
        }
        return settingsPanel;
View Full Code Here

Examples of com.google.gwt.gen2.complexpanel.client.CollapsiblePanel

      Panel contents = createSchoolNavBar();
      FastTree.injectDefaultCss();
      CollapsiblePanel.injectDefaultCss();

      // The panel.
      final CollapsiblePanel panel = new CollapsiblePanel();
      panel.addCollapsedStateHandler(new CollapsedStateHandler() {
        public void onCollapsedState(CollapsedStateEvent e) {
          Window.alert("panel collapsed");
        }
      });

      panel.addExpandedStateHandler(new ExpandedStateHandler() {
        public void onExpandedState(ExpandedStateEvent e) {
          Window.alert("panel expanded");
        }
      });

      String value = Location.getParameter("collapsed");
      if (value != null) {
        value = value.trim();
        if (value.equals("true")) {
          panel.setCollapsedState(true);
        } else if (value.equals("false")) {
          // do nothing, default.
        } else {
          Window.alert("collapsed should not be given " + value
              + " use true or false instead");
        }
      }
      RootPanel.get("collapsible-panel").add(panel);
      panel.add(contents);
      panel.setHeight(Window.getClientHeight() - 1 + "px");
      panel.hookupControlToggle(controlButton);
    } catch (RuntimeException e) {
      if (GWT.isScript()) {
        Log.severe(e.getMessage());
      }
      throw e;
View Full Code Here

Examples of com.google.gwt.widgetideas.client.CollapsiblePanel

      // Some random contents to make the tree interesting.
      Panel contents = createSchoolNavBar();
      FastTree.addDefaultCSS();

      // The actual pinned panel.
      final CollapsiblePanel pinned = new CollapsiblePanel();
      RootPanel.get("pinned-panel").add(pinned);
      pinned.add(contents);
      pinned.setWidth("200px");
      pinned.hookupControlToggle(controlButton);
    } catch (RuntimeException e) {
      if (GWT.isScript()) {
        Log.severe(e.getMessage());
      }
      throw e;
View Full Code Here

Examples of com.google.gwt.widgetideas.client.CollapsiblePanel

      // Some random contents to make the tree interesting.
      Panel contents = createSchoolNavBar();
      FastTree.addDefaultCSS();

      // The panel.
      final CollapsiblePanel panel = new CollapsiblePanel();
      String value = Location.getParameter("collapsed");
      if (value != null) {
        value = value.trim();
        if (value.equals("true")) {
          panel.setCollapsedState(true);
        } else if (value.equals("false")) {
          // do nothing, default.
        } else {
          Window.alert("collapsed should not be given " + value
              + " use true or false instead");
        }
      }
      RootPanel.get("collapsible-panel").add(panel);
      panel.add(contents);
      panel.setWidth("200px");
      panel.hookupControlToggle(controlButton);
    } catch (RuntimeException e) {
      if (GWT.isScript()) {
        Log.severe(e.getMessage());
      }
      throw e;
View Full Code Here

Examples of org.cytoscape.ClusterViz.internal.CollapsiblePanel

        this.setLayout(new BorderLayout());
        this.setBorder(BorderFactory.createTitledBorder(""));
       
        //the collapsible panel
        CollapsiblePanel collapsiblePanel = new CollapsiblePanel("FAG-EC Options");
        JPanel panel = new JPanel();
        panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
        panel.setBorder(BorderFactory.createTitledBorder(""));
       
        //the radio botton panel
        JPanel functionPanel=new JPanel();
        functionPanel.setLayout(new BorderLayout());
        //the radio bottons
        weak = new JRadioButton("Weak",true);
        weak.setToolTipText("use weak module definition");
        strong = new JRadioButton("Strong", false);
        strong.setToolTipText("use strong module definition");
        ButtonGroup choices = new ButtonGroup();
        choices.add(weak);
        choices.add(strong);
        weak.addActionListener(new FunctionAction());
        strong.addActionListener(new FunctionAction());
        functionPanel.add(weak,BorderLayout.WEST);
        functionPanel.add(strong,BorderLayout.CENTER);       
       
        //the weak module definition parameter input Panel
        weakPanel = new JPanel();
        weakPanel.setLayout(new BorderLayout());
        //the label
        JLabel label=new JLabel("Threshold")//Clique Size Threshold input
        fThreshold = new JFormattedTextField(decimal) {
            public JToolTip createToolTip() {
                return new MyTipTool();
            }
        };
        //the input text field
        fThreshold.setColumns(3);
        fThreshold.addPropertyChangeListener("value", new FAGECPanel.FormattedTextFieldAction());
        String tip2 = "threshold to define a module\n" +
                "It stands for the proportion of\n"+
                "the indegree to the outdegree of a clique";
        fThreshold.setToolTipText(tip2);
        fThreshold.setText((new Double(currentParameters.getfThreshold()).toString()));
        weakPanel.add(fThreshold,BorderLayout.EAST);
        weakPanel.add(label,BorderLayout.WEST)
        weakPanel.setVisible(true);
       
        //the cliqueSize Panel
        cliqueSizePanel=createCliqueSizePanel();
        //the ComplexSize Panel
        JPanel complexSizePanel=createComplexSizePanel();
       
        //Produce Overlapped Complexes input
        JLabel overlapLabel = new JLabel(" Produce Overlapped Complexes");
        overlapped = new JCheckBox() {
            public JToolTip createToolTip() {
                return new MyTipTool();
            }
        };
        overlapped.addItemListener(new overlappedCheckBoxAction());
        String overlapTip = "Produce overlapped module.";
        overlapped.setToolTipText(overlapTip);
        overlapped.setSelected(currentParameters.isOverlapped());
        JPanel overlapPanel = new JPanel() {
            public JToolTip createToolTip() {
                return new MyTipTool();
            }
        };
        overlapPanel.setLayout(new BorderLayout());
        overlapPanel.setToolTipText(overlapTip);
        overlapPanel.add(overlapLabel, BorderLayout.WEST);
        overlapPanel.add(overlapped, BorderLayout.EAST);
        panel.add(functionPanel);
        panel.add(weakPanel)
        panel.add(complexSizePanel);
        panel.add(overlapPanel);     
        panel.add(cliqueSizePanel);
        cliqueSizePanel.setVisible(currentParameters.isOverlapped());
        collapsiblePanel.getContentPane().add(panel, BorderLayout.NORTH);
        collapsiblePanel.setToolTipText("Customize parameters for FAG-EC (Optional)");
        this.add(collapsiblePanel);
  }
View Full Code Here

Examples of org.cytoscape.ClusterViz.internal.CollapsiblePanel

        decimal.setParseIntegerOnly(true);

        this.setLayout(new BorderLayout());
        this.setBorder(BorderFactory.createTitledBorder(""));
        //the collapsible panel
        CollapsiblePanel collapsiblePanel = new CollapsiblePanel("EAGLE Options");
        JPanel cliqueSizePanel=createCliqueSizePanel();
        JPanel complexSizePanel=createComplexSizePanel();
        collapsiblePanel.getContentPane().add(cliqueSizePanel, BorderLayout.NORTH);
        collapsiblePanel.getContentPane().add(complexSizePanel, BorderLayout.CENTER);
        collapsiblePanel.setToolTipText("Customize parameters for EAGLE (Optional)");
        this.add(collapsiblePanel);
  }
View Full Code Here

Examples of org.projectforge.web.mobile.CollapsiblePanel

    }
  }

  public CollapsiblePanel newCollapsiblePanel(final String heading)
  {
    final CollapsiblePanel collapsiblePanel = new CollapsiblePanel(newParentChildId(), heading);
    getParent().add(collapsiblePanel);
    current = collapsiblePanel;
    return collapsiblePanel;
  }
View Full Code Here

Examples of org.projectforge.web.mobile.CollapsiblePanel

    addAddress(pageSupport.getPrivateAddressParameters(), "privatePhone", "privateMobilePhone", null,
        pageSupport.getPrivateEmailProperties());
    addAddress(pageSupport.getPostalAddressParameters(), null, null, null, null);
    final FieldProperties<String> comment = pageSupport.getCommentProperties();
    if (StringUtils.isNotBlank(comment.getValue()) == true) {
      final CollapsiblePanel panel = gridBuilder.newCollapsiblePanel(getString(comment.getLabel())).setCollapsed();
      panel.add(new DivTextPanel(panel.newChildId(), comment.getValue()));
    }
  }
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.