Search in sources :

Example 6 with DatePanel

use of org.vcell.util.gui.generic.DatePanel in project vcell by virtualcell.

the class ServerManageConsole method getQueryStartFromDate.

/**
 * Return the DatePanel2 property value.
 * @return cbit.vcell.messaging.admin.DatePanel
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private DatePanel getQueryStartFromDate() {
    if (ivjQueryStartFromDate == null) {
        try {
            ivjQueryStartFromDate = new DatePanel();
            ivjQueryStartFromDate.setName("QueryStartFromDate");
            ivjQueryStartFromDate.setLayout(new FlowLayout());
            ivjQueryStartFromDate.setEnabled(false);
        // user code begin {1}
        // user code end
        } catch (java.lang.Throwable ivjExc) {
            // user code begin {2}
            // user code end
            handleException(ivjExc);
        }
    }
    return ivjQueryStartFromDate;
}
Also used : FlowLayout(java.awt.FlowLayout) DatePanel(org.vcell.util.gui.generic.DatePanel)

Example 7 with DatePanel

use of org.vcell.util.gui.generic.DatePanel in project vcell by virtualcell.

the class ServerManageConsole method getQueryEndToDate.

/**
 * Return the QueryEndToDate property value.
 * @return cbit.vcell.messaging.admin.DatePanel
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private DatePanel getQueryEndToDate() {
    if (ivjQueryEndToDate == null) {
        try {
            ivjQueryEndToDate = new DatePanel();
            ivjQueryEndToDate.setName("QueryEndToDate");
            ivjQueryEndToDate.setLayout(new FlowLayout());
            ivjQueryEndToDate.setEnabled(false);
        // user code begin {1}
        // user code end
        } catch (java.lang.Throwable ivjExc) {
            // user code begin {2}
            // user code end
            handleException(ivjExc);
        }
    }
    return ivjQueryEndToDate;
}
Also used : FlowLayout(java.awt.FlowLayout) DatePanel(org.vcell.util.gui.generic.DatePanel)

Example 8 with DatePanel

use of org.vcell.util.gui.generic.DatePanel in project vcell by virtualcell.

the class DatabaseSearchPanel method initialize.

private void initialize() {
    // JLabel nameLabel = new JLabel("Search ");
    nameSearchTextField = new TextFieldAutoCompletion();
    nameSearchTextField.putClientProperty("JTextField.variant", "search");
    textFieldAutoComSet.add(nameSearchTextField);
    advancedButton = new JLabel("<html><u>Advanced &gt;&gt;</u></html>");
    advancedButton.setFont(advancedButton.getFont().deriveFont(advancedButton.getFont().getSize2D() - 1));
    advancedButton.setForeground(Color.blue);
    advancedButton.setVerticalAlignment(SwingConstants.BOTTOM);
    JLabel dateLabel1 = new JLabel("Modified between");
    JLabel dateLabel2 = new JLabel("and");
    advancedOptions.add(dateLabel1);
    advancedOptions.add(dateLabel2);
    startDatePanel = new DatePanel();
    Calendar cal = new GregorianCalendar();
    cal.add(Calendar.DATE, -7);
    startDatePanel.setCalendar(cal);
    advancedOptions.add(startDatePanel);
    endDatePanel = new DatePanel();
    advancedOptions.add(endDatePanel);
    searchButton = new JButton("Search");
    searchButton.setActionCommand(SEARCH_Command);
    cancelButton = new JButton("Show All");
    cancelButton.setActionCommand(SEARCH_SHOW_ALL_COMMAND);
    JPanel mainPanel = new JPanel();
    GridBagLayout gbl_mainPanel = new GridBagLayout();
    gbl_mainPanel.columnWeights = new double[] { 0.0, 1.0 };
    mainPanel.setLayout(gbl_mainPanel);
    // 0
    int gridy = 0;
    GridBagConstraints gbc = new GridBagConstraints();
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = gridy;
    gbc.weightx = 1.0;
    gbc.gridwidth = 2;
    gbc.insets = new Insets(2, 5, 5, 0);
    gbc.anchor = GridBagConstraints.LINE_START;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    mainPanel.add(nameSearchTextField, gbc);
    gridy++;
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = gridy;
    gbc.gridwidth = 2;
    gbc.insets = new Insets(0, 5, 5, 0);
    gbc.anchor = GridBagConstraints.LINE_START;
    mainPanel.add(advancedButton, gbc);
    gridy++;
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = gridy;
    gbc.insets = new Insets(2, 5, 5, 5);
    gbc.anchor = GridBagConstraints.LINE_END;
    mainPanel.add(dateLabel1, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = gridy;
    gbc.anchor = GridBagConstraints.LINE_START;
    gbc.insets = new Insets(2, 0, 5, 0);
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    mainPanel.add(startDatePanel, gbc);
    gridy++;
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = gridy;
    gbc.insets = new Insets(2, 5, 5, 5);
    gbc.anchor = GridBagConstraints.LINE_END;
    mainPanel.add(dateLabel2, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = gridy;
    gbc.anchor = GridBagConstraints.LINE_START;
    gbc.insets = new Insets(2, 0, 5, 0);
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    mainPanel.add(endDatePanel, gbc);
    gridy++;
    lblSpeciesName = new JLabel("Species Names:");
    GridBagConstraints gbc_lblSpeciesName = new GridBagConstraints();
    gbc_lblSpeciesName.anchor = GridBagConstraints.EAST;
    gbc_lblSpeciesName.insets = new Insets(0, 0, 5, 5);
    gbc_lblSpeciesName.gridx = 0;
    gbc_lblSpeciesName.gridy = 4;
    mainPanel.add(lblSpeciesName, gbc_lblSpeciesName);
    advancedOptions.add(lblSpeciesName);
    lblSpeciesName.setVisible(bEnableSpeciesSearch);
    textFieldSpeciesName = new JTextField();
    GridBagConstraints gbc_textFieldSpeciesName = new GridBagConstraints();
    gbc_textFieldSpeciesName.insets = new Insets(0, 0, 5, 0);
    gbc_textFieldSpeciesName.fill = GridBagConstraints.HORIZONTAL;
    gbc_textFieldSpeciesName.gridx = 1;
    gbc_textFieldSpeciesName.gridy = 4;
    mainPanel.add(textFieldSpeciesName, gbc_textFieldSpeciesName);
    textFieldSpeciesName.setColumns(10);
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 5;
    gbc.insets = new Insets(10, 5, 0, 5);
    mainPanel.add(searchButton, gbc);
    advancedOptions.add(textFieldSpeciesName);
    textFieldSpeciesName.setVisible(bEnableSpeciesSearch);
    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = 5;
    gbc.insets = new Insets(10, 5, 0, 0);
    gbc.anchor = GridBagConstraints.LINE_START;
    mainPanel.add(cancelButton, gbc);
    JScrollPane scroll = new JScrollPane(mainPanel);
    getContentPanel().setLayout(new GridBagLayout());
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    gbc.weighty = 1.0;
    gbc.insets = new Insets(0, 0, 0, 0);
    gbc.fill = GridBagConstraints.BOTH;
    getContentPanel().add(scroll, gbc);
    initConnections();
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) Calendar(java.util.Calendar) GregorianCalendar(java.util.GregorianCalendar) GregorianCalendar(java.util.GregorianCalendar) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField) TextFieldAutoCompletion(cbit.gui.TextFieldAutoCompletion) DatePanel(org.vcell.util.gui.generic.DatePanel)

Example 9 with DatePanel

use of org.vcell.util.gui.generic.DatePanel in project vcell by virtualcell.

the class ViewJobsPanel method getSubmitFromDate.

private DatePanel getSubmitFromDate() {
    if (fromDate == null) {
        try {
            fromDate = new DatePanel();
            fromDate.setName("FromDate");
            fromDate.setLayout(new FlowLayout());
            fromDate.setEnabled(true);
        } catch (java.lang.Throwable ivjExc) {
            handleException(ivjExc);
        }
    }
    return fromDate;
}
Also used : FlowLayout(java.awt.FlowLayout) DatePanel(org.vcell.util.gui.generic.DatePanel)

Aggregations

DatePanel (org.vcell.util.gui.generic.DatePanel)9 FlowLayout (java.awt.FlowLayout)8 TextFieldAutoCompletion (cbit.gui.TextFieldAutoCompletion)1 GridBagConstraints (java.awt.GridBagConstraints)1 GridBagLayout (java.awt.GridBagLayout)1 Insets (java.awt.Insets)1 Calendar (java.util.Calendar)1 GregorianCalendar (java.util.GregorianCalendar)1 JButton (javax.swing.JButton)1 JLabel (javax.swing.JLabel)1 JPanel (javax.swing.JPanel)1 JScrollPane (javax.swing.JScrollPane)1 JTextField (javax.swing.JTextField)1