Examples of GridPanel


Examples of com.alee.extended.panel.GridPanel

        // Adding a panel with buttons
        WebButton b1 = new WebButton ( "Button" );
        WebButton b2 = new WebButton ( "Button" );
        WebButton b3 = new WebButton ( "Button" );
        webComponentPanel.addElement ( new GridPanel ( 10, b1, b2, b3 ) );

        // Adding a panel with label and field
        WebLabel label = new WebLabel ( "Field" );
        WebTextField field = new WebTextField ();
        field.putClientProperty ( GroupPanel.FILL_CELL, true );
        webComponentPanel.addElement ( new GroupPanel ( 10, label, field ) );

        // Adding a simple slider
        WebSlider slider = new WebSlider ( WebSlider.HORIZONTAL, 0, 100, 50 );
        webComponentPanel.addElement ( slider );

        // Adding a panel with textfields
        WebTextField f1 = new WebTextField ();
        WebTextField f2 = new WebTextField ();
        WebTextField f3 = new WebTextField ();
        webComponentPanel.addElement ( new GridPanel ( 10, f1, f2, f3 ) );

        return new GroupPanel ( webComponentPanel );
    }
View Full Code Here

Examples of com.gwtext.client.widgets.grid.GridPanel

        } else if (xtype.equalsIgnoreCase("editorgrid")) {
            return new EditorGridPanel(jsObj);
        } else if (xtype.equalsIgnoreCase("propertygrid")) {
            return new PropertyGridPanel(jsObj);
        } else if (xtype.equalsIgnoreCase("grid")) {
            return new GridPanel(jsObj);
        } else if (xtype.equalsIgnoreCase("paging")) {
            return new PagingToolbar(jsObj);
        } else if (xtype.equalsIgnoreCase("button")) {
            return new Button(jsObj);
        } else if (xtype.equalsIgnoreCase("panel")) {
View Full Code Here

Examples of com.jcloisterzone.ui.grid.GridPanel

            pp.dispatchMouseEvent(e);
        }
    }

    private void paintBackgroundBody(Graphics2D g2) {
        GridPanel gp = client.getGridPanel();
        int h = gp.getHeight();

        g2.setColor(PANEL_BG_COLOR);
        g2.fillRect(0 , 0, PANEL_WIDTH, h);
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gui.GridPanel

     */
    private void initGui() {
        this.memoTextArea = new XBayaTextArea();
        XBayaLabel memoLabel = new XBayaLabel("Memo", this.memoTextArea);

        GridPanel gridPanel = new GridPanel();
        gridPanel.add(memoLabel);
        gridPanel.add(this.memoTextArea);
        gridPanel.layout(1, 2, 0, 1);

        JButton okButton = new JButton("OK");
        okButton.addActionListener(new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                setInput();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gui.GridPanel

        this.descriptionLabel = new XBayaLabel("Description",
                this.descriptionTextField);



        this.gridPanel = new GridPanel();
        this.gridPanel.add(wsdlLabel);
        this.gridPanel.add(this.wsdlTextField);
        this.gridPanel.add(descriptionLabel);
        this.gridPanel.add(this.descriptionTextField);
        this.gridPanel.layout(2, 2, 1, 1);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gui.GridPanel

    else
      this.resourceSelectionComboBox.setModel(new DefaultComboBoxModel(initHostNameList()));
  }

  private void initGUI() {
    this.parameterPanel = new GridPanel(true);

    reinitHostComboBox();
    this.resourceSelectionLabel = new XBayaLabel("Select a Compute Resource", this.resourceSelectionComboBox);

    this.topicTextField = new XBayaTextField();
    XBayaLabel topicLabel = new XBayaLabel("Notification topic", this.topicTextField);
    this.xRegistryTextField = new XBayaTextField();
    XBayaLabel xRegistryLabel = new XBayaLabel("XRegistry URL", this.xRegistryTextField);
    this.gfacTextField = new XBayaTextField();
    XBayaLabel gfacLabel = new XBayaLabel("GFac URL", this.gfacTextField);

    this.interactChkBox = new JCheckBox();
    this.interactChkBox.setSelected(false);
    XBayaLabel interactLabel = new XBayaLabel("Enable Service Interactions", this.interactChkBox);

    GridPanel infoPanel = new GridPanel();
    infoPanel.add(this.resourceSelectionLabel);
    infoPanel.add(this.resourceSelectionComboBox);
    infoPanel.add(topicLabel);
    infoPanel.add(this.topicTextField);
    infoPanel.add(xRegistryLabel);
    infoPanel.add(this.xRegistryTextField);
    infoPanel.add(gfacLabel);
    infoPanel.add(this.gfacTextField);
    infoPanel.add(interactLabel);
    infoPanel.add(this.interactChkBox);

    infoPanel.layout(5, 2, GridPanel.WEIGHT_NONE, 1);

    GridPanel mainPanel = new GridPanel();
    mainPanel.add(this.parameterPanel);
    mainPanel.add(infoPanel);
    mainPanel.layout(2, 1, 0, 0);

    JButton okButton = new JButton("OK");
    okButton.addActionListener(new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        execute();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gui.GridPanel

    this.dialog.hide();
  }

  private void initGUI() {

    GridPanel infoPanel = new GridPanel();
    this.eplStatement = new XBayaTextField();
    XBayaLabel operationLabel = new XBayaLabel("EPL Statement",
        this.eplStatement);
    XBayaTextField streamTxt = new XBayaTextField();
    streamTxt.setText(streams);
    streamTxt.setEditable(false);

    outputStreamName = new XBayaTextField();
    XBayaLabel outputStreamNameLabel = new XBayaLabel("Output Stream Name",
        this.outputStreamName);

    rootElementName = new XBayaTextField();
    XBayaLabel rootElementNameLabel = new XBayaLabel("Root element",
        this.rootElementName);

    xpaths = new XBayaTextField();
    XBayaLabel xpathsLabel = new XBayaLabel(
        "Comma seperated xpath expressions", this.xpaths);

    properties = new XBayaTextField();
    XBayaLabel propertiesLabel = new XBayaLabel(
        "Comma seperated xpath property name", this.properties);

    types = new XBayaTextField();
    XBayaLabel typesLabel = new XBayaLabel(
        "Comma seperated property Data Type", this.types);

    checkBox = new JCheckBox();

    infoPanel.add(new XBayaLabel("Event Streams", streamTxt));
    infoPanel.add(streamTxt);
    infoPanel.add(operationLabel);
    infoPanel.add(this.eplStatement);
    infoPanel.add(outputStreamNameLabel);
    infoPanel.add(this.outputStreamName);
    infoPanel.add(rootElementNameLabel);
    infoPanel.add(this.rootElementName);
    infoPanel.add(xpathsLabel);
    infoPanel.add(this.xpaths);
    infoPanel.add(propertiesLabel);
    infoPanel.add(this.properties);
    infoPanel.add(typesLabel);
    infoPanel.add(this.types);

    infoPanel
        .add(new XBayaLabel("Hot deploy during composition", checkBox));
    infoPanel.add(checkBox);

    infoPanel.layout(8, 2, 0, 0);

    JButton okButton = new JButton("OK");
    okButton.addActionListener(new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gui.GridPanel

                            .setEnabled(false);
                }
            }
        });

        GridPanel infoPanel = new GridPanel();
        infoPanel.add(brokerLabel);
        infoPanel.add(this.brokerTextField);
        infoPanel.add(topicLabel);
        infoPanel.add(this.topicTextField);
        infoPanel.add(dummyLabel);
        infoPanel.add(this.pullCheckBox);
        infoPanel.add(msgBoxLabel);
        infoPanel.add(this.messageBoxTextField);
        infoPanel.layout(4, 2, SwingUtil.WEIGHT_NONE, 1);

        JButton okButton = new JButton("OK");
        okButton.addActionListener(new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                setConfiguration();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gui.GridPanel

     
        });
        buttonPanel.add(this.okButton);
       
        GridPanel mainPanel = new GridPanel();
        TitledBorder border = new TitledBorder(new EtchedBorder(),
                "Select a workflow to load");
        mainPanel.getSwingComponent().setBorder(border);
        chkMakePublic = new JCheckBox("Make public");
    mainPanel.add(chkMakePublic);
   
    messageField = new JTextField(engine.getWorkflow().getName());
    messageField.setEditable(true);
    mainPanel.add(messageField);
        mainPanel.layout(2, 1, 0, 0);
       

        this.dialog = new XBayaDialog(this.engine,
                "Export to XRegistry", mainPanel, buttonPanel);
        this.dialog.setDefaultButton(this.okButton);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.gui.GridPanel

    this.addApplicationButton.setText("Update Application");
  }

  private void initGUI() {
    GridPanel infoPanel = new GridPanel();
    this.applicationNameTextField = new XBayaTextField();
    this.applicationNameLabel = new XBayaLabel("Application Name", this.applicationNameTextField);

    this.hostNameComboBox = new XBayaComboBox(new DefaultComboBoxModel(initHostNameList()));
    this.hostNameComboBox.setEditable(false);
    this.hostNameLabel = new XBayaLabel("Host Name", this.hostNameComboBox);

    this.executableTextField = new XBayaTextField();
    this.executableLabel = new XBayaLabel("Executable", this.executableTextField);

    this.workDirectoryTextField = new XBayaTextField("/tmp");
    this.workDirectoryLabel = new XBayaLabel("Work Directory", this.workDirectoryTextField);

    this.tempDirTextField = new XBayaTextField("/tmp");
    this.tempDirLabel = new XBayaLabel("Temp Dir", this.tempDirTextField);

    this.projectNameComboBox = new XBayaComboBox(new DefaultComboBoxModel());
    this.projectNameComboBox.setEditable(true);
    this.projectNameLabel = new XBayaLabel("TeraGrid Project Name (optional)", this.projectNameComboBox);

    this.jobTypeComboBox = new XBayaComboBox(new DefaultComboBoxModel(new String[] { "single", "mpi", "multiple", "condor" }));
    this.jobTypeComboBox.setEditable(false);
    this.jobTypeLabel = new XBayaLabel("Job Type (optional)", this.jobTypeComboBox);

    this.queueTextField = new XBayaTextField();
    this.queueLabel = new XBayaLabel("Queue (optional)", this.queueTextField);

    this.maxWallTimeTextField = new XBayaTextField();
    this.maxWallTimeLabel = new XBayaLabel("Max Wall Time (optional)", this.maxWallTimeTextField);

    this.procsCountTextField = new XBayaTextField();
    this.procsCountLabel = new XBayaLabel("Processors Count (optional)", this.procsCountTextField);

    this.appParaFileTextField = new XBayaTextField();
    this.appParaFileLabel = new XBayaLabel("Application Parameter File (optional)", this.appParaFileTextField);

    this.minMemoryTextField = new XBayaTextField();
    this.minMemoryLabel = new XBayaLabel("Min Memory (optional)", this.minMemoryTextField);

    this.hostCountTextField = new XBayaTextField();
    this.hostCountLabel = new XBayaLabel("Host Count (optional)", this.hostCountTextField);

    this.rslParamNameTextField = new XBayaTextField();
    this.rslParaNameLabel = new XBayaLabel("RSL Param Name (optional)", this.rslParamNameTextField);

    this.rslParamValueTextField = new XBayaTextField();
    this.rslParamValueLabel = new XBayaLabel("RSL Param Value (optional)", this.rslParamValueTextField);

    this.isPublicCheckBox = new JCheckBox();
    this.isPublicLabel = new XBayaLabel("Is Public (optional)", this.isPublicCheckBox);

    infoPanel.add(this.applicationNameLabel);
    infoPanel.add(this.applicationNameTextField);
    infoPanel.add(this.hostNameLabel);
    infoPanel.add(this.hostNameComboBox);
    infoPanel.add(this.executableLabel);
    infoPanel.add(this.executableTextField);
    infoPanel.add(this.workDirectoryLabel);
    infoPanel.add(this.workDirectoryTextField);
    infoPanel.add(this.tempDirLabel);
    infoPanel.add(this.tempDirTextField);
    infoPanel.add(this.projectNameLabel);
    infoPanel.add(this.projectNameComboBox);
    infoPanel.add(this.jobTypeLabel);
    infoPanel.add(this.jobTypeComboBox);
    infoPanel.add(this.queueLabel);
    infoPanel.add(this.queueTextField);
    infoPanel.add(this.maxWallTimeLabel);
    infoPanel.add(this.maxWallTimeTextField);
    infoPanel.add(this.procsCountLabel);
    infoPanel.add(this.procsCountTextField);
    infoPanel.add(this.appParaFileLabel);
    infoPanel.add(this.appParaFileTextField);
    infoPanel.add(this.minMemoryLabel);
    infoPanel.add(this.minMemoryTextField);
    infoPanel.add(this.hostCountLabel);
    infoPanel.add(this.hostCountTextField);
    infoPanel.add(this.rslParaNameLabel);
    infoPanel.add(this.rslParamNameTextField);
    infoPanel.add(this.rslParamValueLabel);
    infoPanel.add(this.rslParamValueTextField);
    infoPanel.add(this.isPublicLabel);
    infoPanel.add(this.isPublicCheckBox);

    infoPanel.layout(16, 2, GridPanel.WEIGHT_NONE, 1);

    JPanel buttonPanel = new JPanel();
    this.addApplicationButton = new JButton();
    this.addApplicationButton.setText("Add Application");
    this.addApplicationButton.addActionListener(new java.awt.event.ActionListener() {
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.