|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.tasklist.bugs; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.Dialog; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.PropertyVetoException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Iterator; import java.util.Set; import javax.swing.*; import org.netbeans.modules.tasklist.bugs.BugQuery; import org.netbeans.modules.tasklist.bugs.bugzilla.BugzillaQueryPanel; import org.netbeans.modules.tasklist.bugs.bugzilla.SourcePanel; import org.openide.DialogDescriptor; import org.openide.ErrorManager; import org.openide.NotifyDescriptor; import org.openide.explorer.ExplorerManager; import org.openide.explorer.view.BeanTreeView; import org.openide.nodes.Node; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; /** * This panel is the main panel show for a new query. * The panel contains a dropdown box that contains the different bug engines * available to the user to search aginst. It also contains another panel with * the custom search parameters for each bug engine. This panel will be pulled in * using reflection based on the name of the bugEngine picked. * * @todo have a default button they can click and set the query as a default query. * this might end up being an "Add To Queries" button that will add the * query to a list of saved queries * @todo Finish all the getting of data from the other panel. * * @author serff */ public final class EditQueryPanel extends JPanel { private static final long serialVersionUID = 1; /** A panel at the top to hold the combobox and label */ private JPanel mTopPanel; /** a panel that holds the query part */ private JPanel mQueryPanel; /** A label for the ComboBox */ private JLabel mEngineLabel; /** a combox box for the bug engine choices */ private JComboBox mBugEngines; /** A button panel */ private JPanel mButtonPanel; /** A done button */ private JButton mDefaultButton; /** an instance of the query */ private BugQuery mQuery; /** a flag to tell if we are editing this query or not */ private boolean mEditing; /** Creates a new instance of EditQueryPanel */ public EditQueryPanel(BugQuery query, boolean editing) { mEditing = editing; mQuery = query; initComponents(); } private void initComponents() { mTopPanel = new JPanel(); mEngineLabel = new JLabel(); mBugEngines = new JComboBox(); mButtonPanel = new JPanel(); mDefaultButton = new JButton(); setLayout(new BorderLayout()); mEngineLabel.setText(NbBundle.getMessage(EditQueryPanel.class, "BugEngine_Label")); // NOI18N //Now i have to get the list of bug engines String[] engines = BugEngines.list(); for (int i= 0; i |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.