Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.wizard.tab.DistributionTab Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.wizard.tab.DistributionTab:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.wizard.tab.DistributionTab:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DistributionTab (WizardTabs tabs)

Public Attributes

JSlider castTimeout
JComboBox macroClock
JTextField groupName

Detailed Description

Distribution tab has the fields for distributed virtual database.

See also:
WizardTab
Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 49 of file DistributionTab.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.wizard.tab.DistributionTab.DistributionTab WizardTabs  tabs  ) 
 

Creates a new DistributionTab object

Parameters:
tabs 

Definition at line 61 of file DistributionTab.java.

00062   {
00063     super(tabs, WizardConstants.TAB_DISTRIBUTION);
00064     this.setVisible(false);
00065 
00066     // panels
00067     JPanel general = new JPanel();
00068     general.setBorder(BorderFactory.createTitledBorder(WizardTranslate
00069         .get("label.distribution.general")));
00070     general.setLayout(new GridBagLayout());
00071     constraints.fill = GridBagConstraints.HORIZONTAL;
00072     this.add(general, constraints);
00073 
00074     // constraints
00075     GridBagConstraints localconstraints = new GridBagConstraints();
00076     localconstraints.fill = GridBagConstraints.HORIZONTAL;
00077     localconstraints.weightx = 1.0;
00078     localconstraints.gridy = 0;
00079 
00080     // groupName
00081     localconstraints.gridy = ++localconstraints.gridy;
00082     groupName = new JTextField("");
00083     localconstraints.gridx = 0;
00084     general.add(new JLabel(WizardTranslate.get("label.groupName")),
00085         localconstraints);
00086     localconstraints.gridx = 1;
00087     general.add(groupName, localconstraints);
00088 
00089     // macroClock
00090     localconstraints.gridy = ++localconstraints.gridy;
00091     macroClock = new JComboBox(WizardConstants.MACRO_CLOCK);
00092     macroClock.setSelectedIndex(0);
00093     localconstraints.gridx = 0;
00094     general.add(new JLabel(WizardTranslate.get("label.macroClock")),
00095         localconstraints);
00096     localconstraints.gridx = 1;
00097     general.add(macroClock, localconstraints);
00098 
00099     // castTimeout
00100     localconstraints.gridy = ++localconstraints.gridy;
00101     castTimeout = new JSlider(JSlider.HORIZONTAL, 0, 2000, 0);
00102     castTimeout.setPaintTicks(true);
00103     castTimeout.setPaintLabels(true);
00104     castTimeout.setMajorTickSpacing(500);
00105     localconstraints.gridx = 0;
00106     general.add(new JLabel(WizardTranslate.get("label.castTimeout")),
00107         localconstraints);
00108     localconstraints.gridx = 1;
00109     general.add(castTimeout, localconstraints);
00110 
00111   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:22 2005 for C-JDBC by  doxygen 1.3.9.1