|
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-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.javacvs.customizers; import java.util.*; import javax.swing.*; import org.openide.util.*; import org.netbeans.modules.javacvs.FsHistory; import org.netbeans.lib.cvsclient.command.*; import org.netbeans.lib.cvsclient.command.history.*; import java.beans.Customizer; import javax.accessibility.*; /** * * @author mkleint */ public class HistoryParamInput extends javax.swing.JPanel implements Customizer { // needed to set the setRecursive() property private FsHistory histCommand; private List commandList; private CustomizerPropChangeSupport support; /** Creates new form LogParamInput */ public HistoryParamInput() { initComponents(); initAccessibility(); if (support == null) { support = new CustomizerPropChangeSupport(this); } lblDate.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblDate.mnemonic").charAt(0)); //NOI18N lblDate.setLabelFor(txDate); lblFile.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblFile.mnemonic").charAt(0)); //NOI18N lblFile.setLabelFor(txFile); lblLastModule.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblLastModule.mnemonic").charAt(0)); //NOI18N lblLastModule.setLabelFor(txLastModule); lblModule.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblModule.mnemonic").charAt(0)); //NOI18N lblModule.setLabelFor(txModule); lblReportType.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblReportType.mnemonic").charAt(0)); //NOI18N lblReportType.setLabelFor(txReportType); lblRevision.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblRevision.mnemonic").charAt(0)); //NOI18N lblRevision.setLabelFor(txRevision); lblUser.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblUser.mnemonic").charAt(0)); //NOI18N lblUser.setLabelFor(txUser); lblZone.setDisplayedMnemonic(bundle.getString("HistoryParamInput.lblZone.mnemonic").charAt(0)); //NOI18N lblZone.setLabelFor(txZone); cbAllUsers.setMnemonic(bundle.getString("HistoryParamInput.cbAllUsers.mnemonic").charAt(0)); //NOI18N cbCheckouts.setMnemonic(bundle.getString("HistoryParamInput.cbCheckout.mnemonic").charAt(0)); //NOI18N cbCommits.setMnemonic(bundle.getString("HistoryParamInput.cbCommits.mnemonic").charAt(0)); //NOI18N cbEverything.setMnemonic(bundle.getString("HistoryParamInput.cbEverything.mnemonic").charAt(0)); //NOI18N cbShowRecentForModules.setMnemonic(bundle.getString("HistoryParamInput.cbShowRecentForModules.mnemonic").charAt(0)); //NOI18N cbTags.setMnemonic(bundle.getString("HistoryParamInput.cbTags.mnemonic").charAt(0)); //NOI18N java.awt.event.ActionListener actionList = new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { setData(); } }; txDate.addActionListener(actionList); txFile.addActionListener(actionList); txLastModule.addActionListener(actionList); txModule.addActionListener(actionList); txReportType.addActionListener(actionList); txRevision.addActionListener(actionList); txUser.addActionListener(actionList); txZone.addActionListener(actionList); cbAllUsers.addActionListener(actionList); cbCheckouts.addActionListener(actionList); cbCommits.addActionListener(actionList); cbEverything.addActionListener(actionList); cbShowRecentForModules.addActionListener(actionList); cbTags.addActionListener(actionList); java.awt.event.FocusAdapter focusList = new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { setData(); } }; javax.swing.event.DocumentListener docList = new javax.swing.event.DocumentListener() { public void insertUpdate(javax.swing.event.DocumentEvent e) { setData(); } public void removeUpdate(javax.swing.event.DocumentEvent e) { setData(); } public void changedUpdate(javax.swing.event.DocumentEvent e) { setData(); } }; txDate.addFocusListener(focusList); txFile.addFocusListener(focusList); txLastModule.addFocusListener(focusList); txModule.addFocusListener(focusList); txReportType.addFocusListener(focusList); txRevision.addFocusListener(focusList); txUser.addFocusListener(focusList); txZone.addFocusListener(focusList); txDate.getDocument().addDocumentListener(docList); txFile.getDocument().addDocumentListener(docList); txLastModule.getDocument().addDocumentListener(docList); txModule.getDocument().addDocumentListener(docList); txReportType.getDocument().addDocumentListener(docList); txRevision.getDocument().addDocumentListener(docList); txUser.getDocument().addDocumentListener(docList); txZone.getDocument().addDocumentListener(docList); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the FormEditor. */ private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; jPanel1 = new javax.swing.JPanel(); cbCheckouts = new javax.swing.JCheckBox(); cbCommits = new javax.swing.JCheckBox(); cbTags = new javax.swing.JCheckBox(); cbEverything = new javax.swing.JCheckBox(); lblReportType = new javax.swing.JLabel(); txReportType = new javax.swing.JTextField(); lblDate = new javax.swing.JLabel(); txDate = new javax.swing.JTextField(); lblRevision = new javax.swing.JLabel(); txRevision = new javax.swing.JTextField(); lblZone = new javax.swing.JLabel(); txZone = new javax.swing.JTextField(); lblFile = new javax.swing.JLabel(); txFile = new javax.swing.JTextField(); lblModule = new javax.swing.JLabel(); txModule = new javax.swing.JTextField(); lblLastModule = new javax.swing.JLabel(); txLastModule = new javax.swing.JTextField(); lblUser = new javax.swing.JLabel(); txUser = new javax.swing.JTextField(); jPanel2 = new javax.swing.JPanel(); cbAllUsers = new javax.swing.JCheckBox(); cbShowRecentForModules = new javax.swing.JCheckBox(); setLayout(new java.awt.GridBagLayout()); jPanel1.setLayout(new java.awt.GridBagLayout()); cbCheckouts.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.cbCheckout")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0); jPanel1.add(cbCheckouts, gridBagConstraints); cbCommits.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.cbCommits")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(12, 24, 0, 11); jPanel1.add(cbCommits, gridBagConstraints); cbTags.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.cbTags")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0); jPanel1.add(cbTags, gridBagConstraints); cbEverything.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.cbEverything")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 24, 0, 11); jPanel1.add(cbEverything, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; add(jPanel1, gridBagConstraints); lblReportType.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.lblReportType")); lblReportType.setLabelFor(txReportType); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0); add(lblReportType, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 11); add(txReportType, gridBagConstraints); lblDate.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.lblDate")); lblDate.setLabelFor(txDate); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0); add(lblDate, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 11); add(txDate, gridBagConstraints); lblRevision.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.lblRevision")); lblRevision.setLabelFor(txRevision); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0); add(lblRevision, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 11); add(txRevision, gridBagConstraints); lblZone.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.lblZone")); lblZone.setLabelFor(txZone); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0); add(lblZone, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 11); add(txZone, gridBagConstraints); lblFile.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.lblFile")); lblFile.setLabelFor(txFile); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 11); add(lblFile, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(2, 12, 0, 11); add(txFile, gridBagConstraints); lblModule.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.lblModule")); lblModule.setLabelFor(txModule); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 11); add(lblModule, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 12, 0, 11); add(txModule, gridBagConstraints); lblLastModule.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.lblLastModule")); lblLastModule.setLabelFor(txLastModule); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 11); add(lblLastModule, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 12, 0, 11); add(txLastModule, gridBagConstraints); lblUser.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.txUser")); lblUser.setLabelFor(txUser); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 11; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 11); add(lblUser, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 12; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 12, 0, 11); add(txUser, gridBagConstraints); jPanel2.setLayout(new java.awt.GridBagLayout()); cbAllUsers.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.cbAllUsers")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(12, 12, 11, 0); jPanel2.add(cbAllUsers, gridBagConstraints); cbShowRecentForModules.setText(org.openide.util.NbBundle.getBundle(HistoryParamInput.class).getString("HistoryParamInput.cbShowRecentForModules")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(12, 24, 11, 11); jPanel2.add(cbShowRecentForModules, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 13; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(jPanel2, gridBagConstraints); }//GEN-END:initComponents protected void setData() { if (commandList != null) { Iterator it = commandList.iterator(); FsHistory fsHist = null; while (it.hasNext()) { fsHist = (FsHistory)it.next(); setData(fsHist); } if (fsHist != null) { support.firePropertyChange(fsHist); } } else { setData(histCommand); support.firePropertyChange(histCommand); } } protected void setData(FsHistory histCom) { if (histCom == null) return; histCom.setForAllUsers(cbAllUsers.isSelected()); histCom.setLastEventOfProject(cbShowRecentForModules.isSelected()); histCom.setReportCheckouts(cbCheckouts.isSelected()); histCom.setReportCommits(cbCommits.isSelected()); histCom.setReportEverything(cbEverything.isSelected()); histCom.setReportTags(cbTags.isSelected()); if (txDate.getText().trim().length() != 0) { histCom.setSinceDate(txDate.getText().trim()); } else { histCom.setSinceDate(null); } if (txRevision.getText().trim().length() != 0) { histCom.setSinceRevision(txRevision.getText().trim()); } else { histCom.setSinceRevision(null); } if (txReportType.getText().trim().length() != 0) { histCom.setReportEventType(txReportType.getText().trim()); } else { histCom.setReportEventType(null); } if (txZone.getText().trim().length() != 0) { histCom.setTimeZone(txZone.getText().trim()); } else { histCom.setTimeZone(null); } if (txFile.getText().trim().length() != 0) { histCom.setLastEventForFile(fromCommasToArray(txFile.getText().trim())); } else { histCom.setLastEventForFile(null); } if (txLastModule.getText().trim().length() != 0) { histCom.setReportLastEventForModule(fromCommasToArray(txLastModule.getText().trim())); } else { histCom.setReportLastEventForModule(null); } if (txModule.getText().trim().length() != 0) { histCom.setReportOnModule(fromCommasToArray(txModule.getText().trim())); } else { histCom.setReportOnModule(null); } if (txUser.getText().trim().length() != 0) { histCom.setForUsers(fromCommasToArray(txUser.getText().trim())); } else { histCom.setForUsers(null); } } protected void getData(FsHistory histCom) { if (histCom == null) return; cbAllUsers.setSelected(histCom.isForAllUsers()); cbCheckouts.setSelected(histCom.isReportCheckouts()); cbEverything.setSelected(histCom.isReportEverything()); cbCommits.setSelected(histCom.isReportCommits()); cbShowRecentForModules.setSelected(histCom.isLastEventOfProject()); cbTags.setSelected(histCom.isReportTags()); if (histCom.getReportEventType() != null) txReportType.setText(histCom.getReportEventType()); else txReportType.setText(""); //NOI18N if (histCom.getSinceDate() != null) txDate.setText(histCom.getSinceDate()); else txDate.setText(""); //NOI18N if (histCom.getSinceRevision() != null) txRevision.setText(histCom.getSinceRevision()); else txRevision.setText(""); //NOI18N if (histCom.getTimeZone() != null) txZone.setText(histCom.getTimeZone()); else txZone.setText(""); //NOI18N if (histCom.getForUsers() != null) { txUser.setText(fromArrayToCommas(histCom.getForUsers())); } else { txUser.setText(""); } if (histCom.getLastEventForFile() != null) { txFile.setText(fromArrayToCommas(histCom.getLastEventForFile())); } else { txFile.setText(""); } if (histCom.getReportLastEventForModule() != null) { txLastModule.setText(fromArrayToCommas(histCom.getReportLastEventForModule())); } else { txLastModule.setText(""); } if (histCom.getReportOnModule() != null) { txModule.setText(fromArrayToCommas(histCom.getReportOnModule())); } else { txModule.setText(""); } support.firePropertyChange(histCom); } private String fromArrayToCommas(String[] arr) { if (arr != null) { StringBuffer buff = new StringBuffer(); for (int i = 0; i < arr.length; i++) { buff.append(arr[i]); if (i != arr.length - 1) { buff.append(','); } } return buff.toString(); } else { return ""; } } private String[] fromCommasToArray(String commas) { StringTokenizer tok = new StringTokenizer(commas, ",", false); //NOI18N LinkedList list = new LinkedList(); while (tok.hasMoreTokens()) { String item = tok.nextToken(); list.add(item); } if (list.size() > 0) { String[] arr = new String[list.size()]; arr = (String[])list.toArray(arr); return arr; } return null; } /** * The Customizer's setObject method. However the customizer accepts both the * FsAdd instance and a list of FsAdd instances. In case of a list, * it loads switches from the first comand in row, however sets all the instances. */ public void setObject(java.lang.Object obj) { if (obj instanceof FsHistory) { histCommand = (FsHistory)obj; getData(histCommand); commandList = null; } if (obj instanceof List) { commandList = (List)obj; histCommand = null; if (commandList.size() > 0) { FsHistory add = (FsHistory)commandList.get(0); getData(add); } } } public void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener) { if (support == null) { support = new CustomizerPropChangeSupport(this); } support.removePropertyChangeListener(propertyChangeListener); } public void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener) { if (support == null) { support = new CustomizerPropChangeSupport(this); } support.addPropertyChangeListener(propertyChangeListener); } protected void firePropertyChange(java.lang.String str, java.lang.Object obj, java.lang.Object obj2) { if (support == null) { support = new CustomizerPropChangeSupport(this); } support.firePropertyChange(str, obj, obj2); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel lblUser; private javax.swing.JTextField txDate; private javax.swing.JCheckBox cbAllUsers; private javax.swing.JLabel lblModule; private javax.swing.JTextField txUser; private javax.swing.JLabel lblFile; private javax.swing.JCheckBox cbTags; private javax.swing.JLabel lblZone; private javax.swing.JCheckBox cbEverything; private javax.swing.JCheckBox cbCheckouts; private javax.swing.JTextField txLastModule; private javax.swing.JLabel lblRevision; private javax.swing.JLabel lblLastModule; private javax.swing.JTextField txReportType; private javax.swing.JCheckBox cbShowRecentForModules; private javax.swing.JTextField txModule; private javax.swing.JTextField txFile; private javax.swing.JLabel lblReportType; private javax.swing.JPanel jPanel2; private javax.swing.JTextField txZone; private javax.swing.JPanel jPanel1; private javax.swing.JLabel lblDate; private javax.swing.JCheckBox cbCommits; private javax.swing.JTextField txRevision; // End of variables declaration//GEN-END:variables private static final java.util.ResourceBundle bundle = NbBundle.getBundle(HistoryParamInput.class); //NOI18N private void initAccessibility() { AccessibleContext context = this.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput")); context = cbCheckouts.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.cbCheckouts")); context = cbCommits.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.cbCommits")); context = cbTags.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.cbTags")); context = cbEverything.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.cbEverything")); context = cbAllUsers.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.cbAllUsers")); context = cbShowRecentForModules.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.cbShowRecentForModules")); //----- context = txReportType.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txReportType")); context = txDate.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txDate")); context = txRevision.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txRevision")); context = txZone.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txZone")); context = txFile.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txFile")); context = txModule.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txModule")); context = txLastModule.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txLastModule")); context = txUser.getAccessibleContext(); context.setAccessibleDescription(bundle.getString("ACSD_HistoryParamInput.txUser")); } } |
... 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.