List of usage examples for com.jgoodies.forms.layout RowSpec BOTTOM
DefaultAlignment BOTTOM
To view the source code for com.jgoodies.forms.layout RowSpec BOTTOM.
Click Source Link
From source file:com.intellij.uiDesigner.radComponents.FormLayoutColumnProperties.java
License:Apache License
private void showAlignment(final FormSpec.DefaultAlignment defaultAlignment) { if (defaultAlignment.equals(RowSpec.TOP) || defaultAlignment.equals(ColumnSpec.LEFT)) { myLeftRadioButton.setSelected(true); } else if (defaultAlignment.equals(RowSpec.CENTER)) { myCenterRadioButton.setSelected(true); } else if (defaultAlignment.equals(RowSpec.BOTTOM) || defaultAlignment.equals(ColumnSpec.RIGHT)) { myRightRadioButton.setSelected(true); } else {//from ww w . j av a 2 s. c o m myFillRadioButton.setSelected(true); } }
From source file:com.intellij.uiDesigner.radComponents.FormLayoutColumnProperties.java
License:Apache License
private FormSpec.DefaultAlignment getSelectedAlignment() { if (myLeftRadioButton.isSelected()) { return myIsRow ? RowSpec.TOP : ColumnSpec.LEFT; }//from w ww .j a v a 2s . com if (myCenterRadioButton.isSelected()) { return RowSpec.CENTER; } if (myRightRadioButton.isSelected()) { return myIsRow ? RowSpec.BOTTOM : ColumnSpec.RIGHT; } return RowSpec.FILL; }
From source file:org.antlr.works.dialog.DialogAbout.java
License:BSD License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - ANTLR (www.antlr.org) appIconButton = new JButton(); descriptionLabel = new JLabel(); titleLabel = new JLabel(); versionLabel = new JLabel(); copyrightLabel = new JLabel(); tabbedPane1 = new JTabbedPane(); panel2 = new JPanel(); acknowledgeTextArea = new JTextArea(); panel1 = new JPanel(); scrollPane1 = new JScrollPane(); infoTable = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setResizable(false);//from w ww.java2 s . c o m setTitle("About"); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("top:max(default;15dlu)"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("bottom:max(default;10dlu)"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("top:max(default;10dlu)"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec("fill:max(default;60dlu):grow"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- appIconButton ---- appIconButton.setIcon(null); appIconButton.setBorderPainted(false); appIconButton.setContentAreaFilled(false); appIconButton.setDefaultCapable(false); appIconButton.setEnabled(true); appIconButton.setFocusable(false); appIconButton.setFocusPainted(false); appIconButton.setPreferredSize(new Dimension(124, 144)); appIconButton.setMaximumSize(new Dimension(136, 144)); appIconButton.setMinimumSize(new Dimension(136, 144)); contentPane.add(appIconButton, cc.xywh(3, 3, 1, 8)); //---- descriptionLabel ---- descriptionLabel .setText("A graphical development environment for developing and debugging ANTLR v3 grammars"); descriptionLabel.setHorizontalAlignment(SwingConstants.LEFT); descriptionLabel.setHorizontalTextPosition(SwingConstants.LEFT); descriptionLabel.setVerticalTextPosition(SwingConstants.TOP); descriptionLabel.setVerticalAlignment(SwingConstants.TOP); contentPane.add(descriptionLabel, cc.xywh(5, 7, 1, 2)); //---- titleLabel ---- titleLabel.setText("ANTLRWorks"); titleLabel.setFont(new Font("Lucida Grande", Font.BOLD, 36)); contentPane.add(titleLabel, cc.xy(5, 3)); //---- versionLabel ---- versionLabel.setText("Version 1.0 early access 1"); contentPane.add(versionLabel, cc.xy(5, 5)); //---- copyrightLabel ---- copyrightLabel.setText("Copyright (c) 2005 Jean Bovet & Terence Parr"); contentPane.add(copyrightLabel, cc.xy(5, 9)); //======== tabbedPane1 ======== { //======== panel2 ======== { panel2.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- acknowledgeTextArea ---- acknowledgeTextArea.setText( "ANTLR and StringTemplate are (c) 1989-2005 Terence Parr\nXJLibrary is (c) 2004-2005 Jean Bovet\nPortion of the GUI uses JGoodies, (c) 2002-2004 Karsten Lentzsch\nPortion of the GUI was created using JFormDesigner, (c) 2004-2005 Karl Tauber\nBrowserLauncher is (c) 2001 Eric Albert <ejalbert@cs.stanford.edu>\nApplication icon is (c) Matthew McClintock <matthew@mc.clintock.com>\n"); acknowledgeTextArea.setEditable(false); acknowledgeTextArea.setBackground(SystemColor.window); panel2.add(acknowledgeTextArea, cc.xy(3, 3)); } tabbedPane1.addTab("Acknowledgment", panel2); //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.dluY(10), FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //======== scrollPane1 ======== { //---- infoTable ---- infoTable.setModel(new DefaultTableModel( new Object[][] { { null, null }, { null, null }, { null, null }, { null, null }, }, new String[] { "Name", "Version" }) { boolean[] columnEditable = new boolean[] { false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); infoTable.setShowVerticalLines(true); scrollPane1.setViewportView(infoTable); } panel1.add(scrollPane1, cc.xy(3, 3)); } tabbedPane1.addTab("Information", panel1); } contentPane.add(tabbedPane1, cc.xywh(3, 11, 3, 1)); pack(); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.AssessmentsFields.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license tabbedPane1 = new JTabbedPane(); panel1 = new JPanel(); panel5 = new JPanel(); label2 = new JLabel(); scrollPane1 = new JScrollPane(); accessionsTable = new DomainSortableTable(); panel6 = new JPanel(); button1 = new JButton(); button2 = new JButton(); panel13 = new JPanel(); label6 = new JLabel(); textField1 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Assessments.PROPERTYNAME_WHO_DID_SURVEY)); label35 = new JLabel(); textField17 = ATBasicComponentFactory .createDateField(detailsModel.getModel(Assessments.PROPERTYNAME_DATE_OF_SURVEY)); label34 = new JLabel(); textField18 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Assessments.PROPERTYNAME_USER_WHO_CREATED_RECORD)); label7 = new JLabel(); textField2 = ATBasicComponentFactory.createDoubleField(detailsModel, Assessments.PROPERTYNAME_AMOUNT_OF_TIME_SURVEY_TOOK); label8 = new JLabel(); checkBox2 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_REVIEW_NEEDED, Assessments.class); label9 = new JLabel(); textField3 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Assessments.PROPERTYNAME_WHO_NEEDS_TO_REVIEW)); panel7 = new JPanel(); label3 = new JLabel(); scrollPane2 = new JScrollPane(); resourcesTable = new DomainSortableTable(); panel8 = new JPanel(); button3 = new JButton(); button4 = new JButton(); panel9 = new JPanel(); label4 = new JLabel(); scrollPane3 = new JScrollPane(); digitalObjectsTable = new DomainSortableTable(); panel10 = new JPanel(); button5 = new JButton(); button6 = new JButton(); panel11 = new JPanel(); label5 = new JLabel(); scrollPane4 = new JScrollPane(); reviewNoteTextArea = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_REVIEW_NOTE)); panel12 = new JPanel(); checkBox1 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_INACTIVE, Assessments.class); panel2 = new JPanel(); panel14 = new JPanel(); label10 = new JLabel(); textField4 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_CONDITION_OF_MATERIAL_RATING, 1, 5); label12 = new JLabel(); textField6 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_QUALITY_OF_HOUSING_RATING, 1, 5); label11 = new JLabel(); textField5 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_PHYSICAL_ACCESS_RATING, 1, 5); label13 = new JLabel(); textField7 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_INTELLECTUAL_ACCESS_RATING, 1, 5); label15 = new JLabel(); textField9 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_DOCUMENTATION_QUALITY_RATING, 1, 5); label14 = new JLabel(); textField8 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_INTEREST_RATING, 1, 5); label16 = new JLabel(); textField10 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_RESEARCH_VALUE_RATING); label17 = new JLabel(); textField11 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_USER_NUMERICAL_RATING1, 1, 5); label18 = new JLabel(); textField12 = ATBasicComponentFactory.createIntegerField(detailsModel, Assessments.PROPERTYNAME_USER_NUMERICAL_RATING2, 1, 5); panel17 = new JPanel(); label25 = new JLabel(); checkBox3 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE1, Assessments.class); checkBox6 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE4, Assessments.class); checkBox4 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE2, Assessments.class); checkBox7 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE5, Assessments.class); checkBox5 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE3, Assessments.class); checkBox8 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE6, Assessments.class); panel15 = new JPanel(); label19 = new JLabel(); scrollPane5 = new JScrollPane(); textArea1 = ATBasicComponentFactory// w w w . j ava2 s.c o m .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_GENERAL_NOTE)); panel16 = new JPanel(); label20 = new JLabel(); label21 = new JLabel(); textField13 = ATBasicComponentFactory.createDoubleField(detailsModel, Assessments.PROPERTYNAME_ESTIMATED_PROCESSING_TIME_PER_FOOT); label23 = new JLabel(); textField14 = ATBasicComponentFactory.createDoubleField(detailsModel, Assessments.PROPERTYNAME_TOTAL_EXTENT); label22 = new JLabel(); textField15 = ATBasicComponentFactory.createDoubleField(detailsModel, Assessments.PROPERTYNAME_TOTAL_ESTIMATED_PROCESSING_TIME); label24 = new JLabel(); panel18 = new JPanel(); panel19 = new JPanel(); label26 = new JLabel(); checkBox9 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE1, Assessments.class); checkBox13 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE5, Assessments.class); checkBox10 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE2, Assessments.class); checkBox14 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE6, Assessments.class); checkBox11 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE3, Assessments.class); checkBox15 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE7, Assessments.class); checkBox12 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE4, Assessments.class); checkBox16 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE8, Assessments.class); label27 = new JLabel(); scrollPane6 = new JScrollPane(); textArea2 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_CONSERVATION_NOTE)); panel3 = new JPanel(); panel20 = new JPanel(); label28 = new JLabel(); label29 = new JLabel(); checkBox17 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT1, Assessments.class); checkBox25 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT9, Assessments.class); checkBox18 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT2, Assessments.class); checkBox26 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT10, Assessments.class); checkBox19 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT3, Assessments.class); checkBox27 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT11, Assessments.class); checkBox20 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT4, Assessments.class); checkBox28 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT12, Assessments.class); checkBox21 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT5, Assessments.class); checkBox29 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT13, Assessments.class); checkBox22 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT6, Assessments.class); checkBox30 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT14, Assessments.class); checkBox23 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT7, Assessments.class); checkBox31 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT15, Assessments.class); checkBox24 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT8, Assessments.class); checkBox32 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT16, Assessments.class); checkBox33 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT17, Assessments.class); checkBox34 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT18, Assessments.class); panel22 = new JPanel(); label31 = new JLabel(); scrollPane8 = new JScrollPane(); textArea4 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_EXHIBITION_VALUE_NOTE)); panel23 = new JPanel(); label32 = new JLabel(); textField16 = ATBasicComponentFactory.createCurrencyField(detailsModel, Assessments.PROPERTYNAME_MONETARY_VALUE, true); panel21 = new JPanel(); label30 = new JLabel(); scrollPane7 = new JScrollPane(); textArea3 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_SPECIAL_FORMAT_NOTE)); panel25 = new JPanel(); label33 = new JLabel(); scrollPane9 = new JScrollPane(); textArea5 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_MONETARY_VALUE_NOTE)); panel4 = new JPanel(); label1 = new JLabel(); assessmentNumber = new JLabel(); CellConstraints cc = new CellConstraints(); //======== this ======== setBackground(new Color(200, 205, 232)); setLayout(new BorderLayout()); //======== tabbedPane1 ======== { tabbedPane1.setBackground(new Color(200, 205, 232)); tabbedPane1.setBorder(new EmptyBorder(0, 10, 0, 10)); //======== panel1 ======== { panel1.setBackground(new Color(200, 205, 232)); panel1.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel5 ======== { panel5.setBackground(new Color(200, 205, 232)); panel5.setLayout(new BorderLayout()); //---- label2 ---- label2.setText("Accessions Linked to this assessment record"); panel5.add(label2, BorderLayout.NORTH); //======== scrollPane1 ======== { //---- accessionsTable ---- accessionsTable.setPreferredScrollableViewportSize(new Dimension(450, 100)); scrollPane1.setViewportView(accessionsTable); } panel5.add(scrollPane1, BorderLayout.CENTER); //======== panel6 ======== { panel6.setBackground(new Color(200, 205, 232)); panel6.setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- button1 ---- button1.setText("Link Accession"); button1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { linkAccessionActionPerformed(); } }); panel6.add(button1, cc.xy(3, 1)); //---- button2 ---- button2.setText("Remove Link"); button2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeAccessionActionPerformed(); } }); panel6.add(button2, cc.xy(5, 1)); } panel5.add(panel6, BorderLayout.SOUTH); } panel1.add(panel5, cc.xy(1, 1)); //======== panel13 ======== { panel13.setBackground(new Color(200, 205, 232)); panel13.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(47)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label6 ---- label6.setText("Surveyed by"); ATFieldInfo.assignLabelInfo(label6, Assessments.class, Assessments.PROPERTYNAME_WHO_DID_SURVEY); panel13.add(label6, cc.xy(1, 1)); panel13.add(textField1, cc.xywh(3, 1, 7, 1)); //---- label35 ---- label35.setText("Date of survey"); ATFieldInfo.assignLabelInfo(label35, Assessments.class, Assessments.PROPERTYNAME_DATE_OF_SURVEY); panel13.add(label35, cc.xy(1, 3)); panel13.add(textField17, cc.xywh(3, 3, 7, 1)); //---- label34 ---- label34.setText("User who created record"); ATFieldInfo.assignLabelInfo(label34, Assessments.class, Assessments.PROPERTYNAME_USER_WHO_CREATED_RECORD); panel13.add(label34, cc.xy(1, 5)); panel13.add(textField18, cc.xywh(3, 5, 7, 1)); //---- label7 ---- label7.setText("Time it took to complete survey"); ATFieldInfo.assignLabelInfo(label7, Assessments.class, Assessments.PROPERTYNAME_AMOUNT_OF_TIME_SURVEY_TOOK); panel13.add(label7, cc.xywh(1, 7, 5, 1)); //---- textField2 ---- textField2.setColumns(4); panel13.add(textField2, cc.xy(7, 7)); //---- label8 ---- label8.setText("hours"); panel13.add(label8, cc.xy(9, 7)); //---- checkBox2 ---- checkBox2.setText("Review needed"); checkBox2.setBackground(new Color(200, 205, 232)); checkBox2.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_REVIEW_NEEDED)); panel13.add(checkBox2, cc.xywh(1, 9, 5, 1)); //---- label9 ---- label9.setText("Who needs to review"); ATFieldInfo.assignLabelInfo(label9, Assessments.class, Assessments.PROPERTYNAME_WHO_NEEDS_TO_REVIEW); panel13.add(label9, cc.xy(1, 11)); panel13.add(textField3, cc.xywh(3, 11, 7, 1)); } panel1.add(panel13, cc.xy(5, 1)); //======== panel7 ======== { panel7.setBackground(new Color(200, 205, 232)); panel7.setLayout(new BorderLayout()); //---- label3 ---- label3.setText("Resources Linked to this assessment record"); panel7.add(label3, BorderLayout.NORTH); //======== scrollPane2 ======== { //---- resourcesTable ---- resourcesTable.setPreferredScrollableViewportSize(new Dimension(450, 100)); scrollPane2.setViewportView(resourcesTable); } panel7.add(scrollPane2, BorderLayout.CENTER); //======== panel8 ======== { panel8.setBackground(new Color(200, 205, 232)); panel8.setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- button3 ---- button3.setText("Link Resource"); button3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { linkResourceActionPerformed(); } }); panel8.add(button3, cc.xy(3, 1)); //---- button4 ---- button4.setText("Remove Link"); button4.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeResourceActionPerformed(); } }); panel8.add(button4, cc.xy(5, 1)); } panel7.add(panel8, BorderLayout.SOUTH); } panel1.add(panel7, cc.xy(1, 3)); //======== panel9 ======== { panel9.setBackground(new Color(200, 205, 232)); panel9.setLayout(new BorderLayout()); //---- label4 ---- label4.setText("Digital Objects Linked to this assessment record"); panel9.add(label4, BorderLayout.NORTH); //======== scrollPane3 ======== { //---- digitalObjectsTable ---- digitalObjectsTable.setPreferredScrollableViewportSize(new Dimension(450, 100)); scrollPane3.setViewportView(digitalObjectsTable); } panel9.add(scrollPane3, BorderLayout.CENTER); //======== panel10 ======== { panel10.setBackground(new Color(200, 205, 232)); panel10.setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- button5 ---- button5.setText("Link Digital Object"); button5.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { linkDigitalObjectActionPerformed(); } }); panel10.add(button5, cc.xy(3, 1)); //---- button6 ---- button6.setText("Remove Link"); button6.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeDigitalObjectActionPerformed(); } }); panel10.add(button6, cc.xy(5, 1)); } panel9.add(panel10, BorderLayout.SOUTH); } panel1.add(panel9, cc.xy(1, 5)); //======== panel11 ======== { panel11.setBackground(new Color(200, 205, 232)); panel11.setLayout(new BorderLayout()); //---- label5 ---- label5.setText("Review note"); ATFieldInfo.assignLabelInfo(label5, Assessments.class, Assessments.PROPERTYNAME_REVIEW_NOTE); panel11.add(label5, BorderLayout.NORTH); //======== scrollPane4 ======== { //---- reviewNoteTextArea ---- reviewNoteTextArea.setRows(10); reviewNoteTextArea.setColumns(25); reviewNoteTextArea.setLineWrap(true); scrollPane4.setViewportView(reviewNoteTextArea); } panel11.add(scrollPane4, BorderLayout.CENTER); //======== panel12 ======== { panel12.setBackground(new Color(200, 205, 232)); panel12.setLayout(new FlowLayout(FlowLayout.LEFT)); //---- checkBox1 ---- checkBox1.setText("inactive"); checkBox1.setBackground(new Color(200, 205, 232)); checkBox1.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_INACTIVE)); panel12.add(checkBox1); } panel11.add(panel12, BorderLayout.SOUTH); } panel1.add(panel11, cc.xywh(5, 3, 1, 3)); } tabbedPane1.addTab("Basic Information", panel1); //======== panel2 ======== { panel2.setBackground(new Color(200, 205, 232)); panel2.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //======== panel14 ======== { panel14.setBackground(new Color(200, 205, 232)); panel14.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label10 ---- label10.setText("Condition of material"); ATFieldInfo.assignLabelInfo(label10, Assessments.class, Assessments.PROPERTYNAME_CONDITION_OF_MATERIAL_RATING); panel14.add(label10, cc.xy(1, 1)); //---- textField4 ---- textField4.setColumns(2); panel14.add(textField4, cc.xy(3, 1)); //---- label12 ---- label12.setText("Quality of housing"); ATFieldInfo.assignLabelInfo(label12, Assessments.class, Assessments.PROPERTYNAME_QUALITY_OF_HOUSING_RATING); panel14.add(label12, cc.xy(5, 1)); //---- textField6 ---- textField6.setColumns(2); panel14.add(textField6, cc.xy(7, 1)); //---- label11 ---- label11.setText("Physical access"); ATFieldInfo.assignLabelInfo(label11, Assessments.class, Assessments.PROPERTYNAME_PHYSICAL_ACCESS_RATING); panel14.add(label11, cc.xy(1, 3)); //---- textField5 ---- textField5.setColumns(2); panel14.add(textField5, cc.xy(3, 3)); //---- label13 ---- label13.setText("Intellectual Access"); ATFieldInfo.assignLabelInfo(label13, Assessments.class, Assessments.PROPERTYNAME_INTELLECTUAL_ACCESS_RATING); panel14.add(label13, cc.xy(5, 3)); //---- textField7 ---- textField7.setColumns(2); panel14.add(textField7, cc.xy(7, 3)); //---- label15 ---- label15.setText("Document Quality"); ATFieldInfo.assignLabelInfo(label15, Assessments.class, Assessments.PROPERTYNAME_DOCUMENTATION_QUALITY_RATING); panel14.add(label15, cc.xy(1, 5)); //---- textField9 ---- textField9.setColumns(2); textField9.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { setResearchValueRating(); } }); panel14.add(textField9, cc.xy(3, 5)); //---- label14 ---- label14.setText("Interest"); ATFieldInfo.assignLabelInfo(label14, Assessments.class, Assessments.PROPERTYNAME_INTEREST_RATING); panel14.add(label14, cc.xy(5, 5)); //---- textField8 ---- textField8.setColumns(2); textField8.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { setResearchValueRating(); } }); panel14.add(textField8, cc.xy(7, 5)); //---- label16 ---- label16.setText("Research Value"); ATFieldInfo.assignLabelInfo(label16, Assessments.class, Assessments.PROPERTYNAME_RESEARCH_VALUE_RATING); panel14.add(label16, cc.xy(5, 7)); //---- textField10 ---- textField10.setColumns(2); textField10.setEditable(false); panel14.add(textField10, cc.xy(7, 7)); //---- label17 ---- label17.setText("User Rating 1"); ATFieldInfo.assignLabelInfo(label17, Assessments.class, Assessments.PROPERTYNAME_USER_NUMERICAL_RATING1); panel14.add(label17, cc.xy(1, 9)); //---- textField11 ---- textField11.setColumns(2); panel14.add(textField11, cc.xy(3, 9)); //---- label18 ---- label18.setText("User Rating 2"); ATFieldInfo.assignLabelInfo(label18, Assessments.class, Assessments.PROPERTYNAME_USER_NUMERICAL_RATING2); panel14.add(label18, cc.xy(5, 9)); //---- textField12 ---- textField12.setColumns(2); panel14.add(textField12, cc.xy(7, 9)); } panel2.add(panel14, cc.xy(1, 1)); //======== panel17 ======== { panel17.setBackground(new Color(200, 205, 232)); panel17.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label25 ---- label25.setText("Special Conservation issues"); ATFieldInfo.assignLabelTooltip(label25, Assessments.class, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE1); panel17.add(label25, cc.xywh(1, 1, 3, 1)); //---- checkBox3 ---- checkBox3.setText("mold damage"); checkBox3.setBackground(new Color(200, 205, 232)); checkBox3.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE1)); panel17.add(checkBox3, cc.xy(3, 3)); //---- checkBox6 ---- checkBox6.setText("Special conservation issue1"); checkBox6.setBackground(new Color(200, 205, 232)); checkBox6.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE4)); panel17.add(checkBox6, cc.xy(5, 3)); //---- checkBox4 ---- checkBox4.setText("pest damage"); checkBox4.setBackground(new Color(200, 205, 232)); checkBox4.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE2)); panel17.add(checkBox4, cc.xy(3, 5)); //---- checkBox7 ---- checkBox7.setText("Special conservation issue2"); checkBox7.setBackground(new Color(200, 205, 232)); checkBox7.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE5)); panel17.add(checkBox7, cc.xy(5, 5)); //---- checkBox5 ---- checkBox5.setText("deteriorating film base"); checkBox5.setBackground(new Color(200, 205, 232)); checkBox5.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE3)); panel17.add(checkBox5, cc.xy(3, 7)); //---- checkBox8 ---- checkBox8.setText("Special conservation issue3"); checkBox8.setBackground(new Color(200, 205, 232)); checkBox8.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE6)); panel17.add(checkBox8, cc.xy(5, 7)); } panel2.add(panel17, cc.xy(5, 1)); //======== panel15 ======== { panel15.setBackground(new Color(200, 205, 232)); panel15.setLayout(new BorderLayout()); //---- label19 ---- label19.setText("General note"); ATFieldInfo.assignLabelTooltip(label19, Assessments.class, Assessments.PROPERTYNAME_GENERAL_NOTE); panel15.add(label19, BorderLayout.NORTH); //======== scrollPane5 ======== { //---- textArea1 ---- textArea1.setRows(8); textArea1.setColumns(25); textArea1.setLineWrap(true); scrollPane5.setViewportView(textArea1); } panel15.add(scrollPane5, BorderLayout.CENTER); } panel2.add(panel15, cc.xy(1, 3)); //======== panel16 ======== { panel16.setBackground(new Color(200, 205, 232)); panel16.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(82)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(23)) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label20 ---- label20.setText("Estimated processing time (EPT)"); panel16.add(label20, cc.xywh(1, 5, 9, 1)); //---- label21 ---- label21.setText("Hours per foot"); ATFieldInfo.assignLabelTooltip(label21, Assessments.class, Assessments.PROPERTYNAME_ESTIMATED_PROCESSING_TIME_PER_FOOT); panel16.add(label21, cc.xy(3, 7)); //---- textField13 ---- textField13.setColumns(5); textField13.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { calculateTotalEPT(); } }); panel16.add(textField13, cc.xy(5, 7)); //---- label23 ---- label23.setText("Multiplied by total extent"); ATFieldInfo.assignLabelTooltip(label23, Assessments.class, Assessments.PROPERTYNAME_TOTAL_EXTENT); panel16.add(label23, cc.xy(7, 7)); //---- textField14 ---- textField14.setColumns(5); textField14.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { calculateTotalEPT(); } }); panel16.add(textField14, cc.xy(9, 7)); //---- label22 ---- label22.setText("Equals Total EPT"); ATFieldInfo.assignLabelTooltip(label22, Assessments.class, Assessments.PROPERTYNAME_TOTAL_ESTIMATED_PROCESSING_TIME); panel16.add(label22, cc.xy(3, 9)); //---- textField15 ---- textField15.setColumns(5); textField15.setEditable(false); panel16.add(textField15, cc.xy(5, 9)); //---- label24 ---- label24.setText("hours"); panel16.add(label24, cc.xy(7, 9)); } panel2.add(panel16, cc.xy(1, 5)); //======== panel18 ======== { panel18.setBackground(new Color(200, 205, 232)); panel18.setLayout(new BorderLayout()); //======== panel19 ======== { panel19.setBackground(new Color(200, 205, 232)); panel19.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label26 ---- label26.setText("Other Conservation issues"); ATFieldInfo.assignLabelTooltip(label26, Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE1); panel19.add(label26, cc.xywh(1, 1, 5, 1)); //---- checkBox9 ---- checkBox9.setText("Brittle paper"); checkBox9.setBackground(new Color(200, 205, 232)); checkBox9.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE1)); panel19.add(checkBox9, cc.xy(3, 3)); //---- checkBox13 ---- checkBox13.setText("Thermofax paper"); checkBox13.setBackground(new Color(200, 205, 232)); checkBox13.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE5)); panel19.add(checkBox13, cc.xy(5, 3)); //---- checkBox10 ---- checkBox10.setText("Metal fasteners"); checkBox10.setBackground(new Color(200, 205, 232)); checkBox10.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE2)); panel19.add(checkBox10, cc.xy(3, 5)); //---- checkBox14 ---- checkBox14.setText("Other conservation issue1"); checkBox14.setBackground(new Color(200, 205, 232)); checkBox14.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE6)); panel19.add(checkBox14, cc.xy(5, 5)); //---- checkBox11 ---- checkBox11.setText("Newspaper"); checkBox11.setBackground(new Color(200, 205, 232)); checkBox11.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE3)); panel19.add(checkBox11, cc.xy(3, 7)); //---- checkBox15 ---- checkBox15.setText("Other conservation issue2"); checkBox15.setBackground(new Color(200, 205, 232)); checkBox15.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE7)); panel19.add(checkBox15, cc.xy(5, 7)); //---- checkBox12 ---- checkBox12.setText("Tape"); checkBox12.setBackground(new Color(200, 205, 232)); checkBox12.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE4)); panel19.add(checkBox12, cc.xy(3, 9)); //---- checkBox16 ---- checkBox16.setText("Other conservation issue3"); checkBox16.setBackground(new Color(200, 205, 232)); checkBox16.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE8)); panel19.add(checkBox16, cc.xy(5, 9)); //---- label27 ---- label27.setText("Conservation note"); ATFieldInfo.assignLabelTooltip(label27, Assessments.class, Assessments.PROPERTYNAME_CONSERVATION_NOTE); panel19.add(label27, cc.xywh(1, 11, 5, 1)); } panel18.add(panel19, BorderLayout.NORTH); //======== scrollPane6 ======== { //---- textArea2 ---- textArea2.setColumns(25); textArea2.setRows(8); textArea2.setLineWrap(true); scrollPane6.setViewportView(textArea2); } panel18.add(scrollPane6, BorderLayout.CENTER); } panel2.add(panel18, cc.xywh(5, 3, 1, 3)); } tabbedPane1.addTab("Survey", panel2); //======== panel3 ======== { panel3.setBackground(new Color(200, 205, 232)); panel3.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel20 ======== { panel20.setBackground(new Color(200, 205, 232)); panel20.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(88)) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label28 ---- label28.setText("Special Formats"); ATFieldInfo.assignLabelTooltip(label28, Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT1); panel20.add(label28, cc.xywh(1, 1, 5, 1)); //---- label29 ---- label29.setText("Check all that apply"); panel20.add(label29, cc.xywh(3, 3, 3, 1)); //---- checkBox17 ---- checkBox17.setText("Architectural materials"); checkBox17.setBackground(new Color(200, 205, 232)); checkBox17.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT1)); panel20.add(checkBox17, cc.xy(3, 5)); //---- checkBox25 ---- checkBox25.setText("Glass"); checkBox25.setBackground(new Color(200, 205, 232)); checkBox25.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT9)); panel20.add(checkBox25, cc.xy(5, 5)); //---- checkBox18 ---- checkBox18.setText("Art originals"); checkBox18.setBackground(new Color(200, 205, 232)); checkBox18.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT2)); panel20.add(checkBox18, cc.xy(3, 7)); //---- checkBox26 ---- checkBox26.setText("Photographs"); checkBox26.setBackground(new Color(200, 205, 232)); checkBox26.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT10)); panel20.add(checkBox26, cc.xy(5, 7)); //---- checkBox19 ---- checkBox19.setText("Artifacts"); checkBox19.setBackground(new Color(200, 205, 232)); checkBox19.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT3)); panel20.add(checkBox19, cc.xy(3, 9)); //---- checkBox27 ---- checkBox27.setText("Scrapbooks"); checkBox27.setBackground(new Color(200, 205, 232)); checkBox27.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT11)); panel20.add(checkBox27, cc.xy(5, 9)); //---- checkBox20 ---- checkBox20.setText("Audio materials"); checkBox20.setBackground(new Color(200, 205, 232)); checkBox20.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT4)); panel20.add(checkBox20, cc.xy(3, 11)); //---- checkBox28 ---- checkBox28.setText("<html>Technical Drawings<br>& Schematics"); checkBox28.setBackground(new Color(200, 205, 232)); //checkBox28.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT12)); panel20.add(checkBox28, cc.xy(5, 11)); //---- checkBox21 ---- checkBox21.setText("Biological specimens"); checkBox21.setBackground(new Color(200, 205, 232)); checkBox21.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT5)); panel20.add(checkBox21, cc.xy(3, 13)); //---- checkBox29 ---- checkBox29.setText("Textiles"); checkBox29.setBackground(new Color(200, 205, 232)); checkBox29.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT13)); panel20.add(checkBox29, cc.xy(5, 13)); //---- checkBox22 ---- checkBox22.setText("Botanical specimens"); checkBox22.setBackground(new Color(200, 205, 232)); checkBox22.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT6)); panel20.add(checkBox22, cc.xy(3, 15)); //---- checkBox30 ---- checkBox30.setText("Vellum & Parchment"); checkBox30.setBackground(new Color(200, 205, 232)); //checkBox30.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT14)); panel20.add(checkBox30, cc.xy(5, 15)); //---- checkBox23 ---- checkBox23.setText("Computer storage units"); checkBox23.setBackground(new Color(200, 205, 232)); checkBox23.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT7)); panel20.add(checkBox23, cc.xy(3, 17)); //---- checkBox31 ---- checkBox31.setText("Video Materials"); checkBox31.setBackground(new Color(200, 205, 232)); checkBox31.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT15)); panel20.add(checkBox31, cc.xy(5, 17)); //---- checkBox24 ---- checkBox24.setText("<html>Film (negative, slide, <br>or motion picture)"); checkBox24.setBackground(new Color(200, 205, 232)); //checkBox24.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT8)); panel20.add(checkBox24, cc.xy(3, 19)); //---- checkBox32 ---- checkBox32.setText("Other"); checkBox32.setBackground(new Color(200, 205, 232)); checkBox32.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT16)); panel20.add(checkBox32, cc.xy(5, 19)); //---- checkBox33 ---- checkBox33.setText("Special Format1"); checkBox33.setBackground(new Color(200, 205, 232)); checkBox33.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT17)); panel20.add(checkBox33, cc.xy(3, 21)); //---- checkBox34 ---- checkBox34.setText("Special Format2"); checkBox34.setBackground(new Color(200, 205, 232)); checkBox34.setText( ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT18)); panel20.add(checkBox34, cc.xy(5, 21)); } panel3.add(panel20, cc.xywh(1, 1, 1, 3)); //======== panel22 ======== { panel22.setBackground(new Color(200, 205, 232)); panel22.setLayout(new FormLayout("default:grow", "fill:default, default, default:grow, bottom:default:grow")); //---- label31 ---- label31.setText("Exhibition Value note"); ATFieldInfo.assignLabelInfo(label31, Assessments.class, Assessments.PROPERTYNAME_EXHIBITION_VALUE_NOTE); panel22.add(label31, cc.xy(1, 1)); //======== scrollPane8 ======== { //---- textArea4 ---- textArea4.setColumns(25); textArea4.setRows(14); textArea4.setLineWrap(true); scrollPane8.setViewportView(textArea4); } panel22.add(scrollPane8, cc.xy(1, 2)); //======== panel23 ======== { panel23.setBackground(new Color(200, 205, 232)); panel23.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("fill:default"))); //---- label32 ---- label32.setText("Monetary Value"); ATFieldInfo.assignLabelInfo(label32, Assessments.class, Assessments.PROPERTYNAME_MONETARY_VALUE); panel23.add(label32, cc.xy(1, 1)); //---- textField16 ---- textField16.setColumns(10); panel23.add(textField16, cc.xy(3, 1)); } panel22.add(panel23, cc.xy(1, 4)); } panel3.add(panel22, cc.xywh(5, 1, 1, 3)); //======== panel21 ======== { panel21.setBackground(new Color(200, 205, 232)); panel21.setLayout(new BorderLayout()); //---- label30 ---- label30.setText("Special Format note"); label30.setBackground(new Color(200, 205, 232)); ATFieldInfo.assignLabelInfo(label30, Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT_NOTE); panel21.add(label30, BorderLayout.NORTH); //======== scrollPane7 ======== { //---- textArea3 ---- textArea3.setColumns(25); textArea3.setRows(8); textArea3.setLineWrap(true); scrollPane7.setViewportView(textArea3); } panel21.add(scrollPane7, BorderLayout.CENTER); } panel3.add(panel21, cc.xy(1, 5)); //======== panel25 ======== { panel25.setBackground(new Color(200, 205, 232)); panel25.setLayout(new BorderLayout()); //---- label33 ---- label33.setText("Monetary Value note"); ATFieldInfo.assignLabelInfo(label33, Assessments.class, Assessments.PROPERTYNAME_MONETARY_VALUE_NOTE); panel25.add(label33, BorderLayout.NORTH); //======== scrollPane9 ======== { //---- textArea5 ---- textArea5.setColumns(25); textArea5.setRows(8); textArea5.setLineWrap(true); scrollPane9.setViewportView(textArea5); } panel25.add(scrollPane9, BorderLayout.CENTER); } panel3.add(panel25, cc.xy(5, 5)); } tabbedPane1.addTab("Special Formats & Values", panel3); } add(tabbedPane1, BorderLayout.CENTER); //======== panel4 ======== { panel4.setBackground(new Color(200, 205, 232)); panel4.setBorder(new EmptyBorder(0, 10, 0, 10)); panel4.setLayout(new FlowLayout(FlowLayout.RIGHT)); //---- label1 ---- label1.setText("Assessment #"); panel4.add(label1); //---- assessmentNumber ---- assessmentNumber.setText("xxx"); panel4.add(assessmentNumber); } add(panel4, BorderLayout.NORTH); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ResourceFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license tabbedPane = new JTabbedPane(); basicInformationPanel = new JPanel(); panel16 = new JPanel(); panel19 = new JPanel(); label_resourcesLevel = new JLabel(); resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_LEVEL, Resources.class); label_otherLevel = new JLabel(); resourcesOtherLevel = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_OTHER_LEVEL), false); label_resourcesTitle = new JLabel(); scrollPane2 = new JScrollPane(); resourcesTitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE)); panel34 = new JPanel(); panel35 = new JPanel(); panel36 = new JPanel(); label_resourcesDateExpression = new JLabel(); resourcesDateExpression = ATBasicComponentFactory .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false); Date1Label1 = new JLabel(); label_resourcesDateBegin = new JLabel(); resourcesDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_BEGIN); label_resourcesDateEnd = new JLabel(); resourcesDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_END); BulkDatesLabel = new JLabel(); label_resourcesBulkDateBegin = new JLabel(); resourcesBulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel, Resources.PROPERTYNAME_BULK_DATE_BEGIN); label_resourcesBulkDateEnd = new JLabel(); resourcesBulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel, Resources.PROPERTYNAME_BULK_DATE_END); panel1 = new JPanel(); label_resourcesLanguageCode = new JLabel(); resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_LANGUAGE_CODE, Resources.class); label_resourcesLanguageNote = new JLabel(); scrollPane423 = new JScrollPane(); resourcesLanguageNote = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false); panel6 = new JPanel(); label_agreementReceived2 = new JLabel(); repositoryName = new JTextField(); changeRepositoryButton = new JButton(); panel13 = new JPanel(); panel17 = new JPanel(); panel12 = new JPanel(); label_resourceIdentifier1 = new JLabel(); resourceIdentifier1 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_1)); resourceIdentifier2 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_2)); resourceIdentifier3 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_3)); resourceIdentifier4 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_4)); panel42 = new JPanel(); panel43 = new JPanel(); OtherAccessionsLabel = new JLabel(); scrollPane4 = new JScrollPane(); accessionsTable = new DomainSortableTable(); panel37 = new JPanel(); panel20 = new JPanel(); ExtentLabel = new JLabel(); panel21 = new JPanel(); label_resourcesExtentNumber = new JLabel(); resourcesExtentNumber = ATBasicComponentFactory.createDoubleField(detailsModel, Resources.PROPERTYNAME_EXTENT_NUMBER); extentType = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_EXTENT_TYPE, Resources.class); label_resourcesExtentDescription = new JLabel(); scrollPane422 = new JScrollPane(); containerSummary = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_CONTAINER_SUMMARY), false); panel39 = new JPanel(); panel40 = new JPanel(); label1 = new JLabel(); scrollPane6 = new JScrollPane(); instancesTable = new DomainSortableTable(ArchDescriptionInstances.class, ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE); panel29 = new JPanel(); addInstanceButton = new JButton(); removeInstanceButton = new JButton(); panel2 = new JPanel(); restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, Resources.class); separator2 = new JSeparator(); namesPanel = new JPanel(); SubjectsLabel2 = new JLabel(); scrollPane1 = new JScrollPane(); namesTable = new DomainSortableTable(ArchDescriptionNames.class, ArchDescriptionNames.PROPERTYNAME_SORT_NAME); panel8 = new JPanel(); editNameRelationshipButton = new JButton(); addNameRelationshipButton = new JButton(); removeNameRelationshipButton = new JButton(); separator5 = new JSeparator(); SubjectsLabel = new JLabel(); scrollPane3 = new JScrollPane(); subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class, ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM); panel11 = new JPanel(); addSubjectRelationshipButton = new JButton(); removeSubjectRelationshipButton = new JButton(); notesPanel = new JPanel(); SubjectsLabel3 = new JLabel(); scrollPane5 = new JScrollPane(); repeatingDataTable = new DomainSortedTable(ArchDescriptionRepeatingData.class); panel14 = new JPanel(); addNoteEtcComboBox = new JComboBox(); removeNotesEtcButton = new JButton(); separator6 = new JSeparator(); label_repositoryName3 = new JLabel(); scrollPane7 = new JScrollPane(); deaccessionsTable = new DomainSortableTable(Deaccessions.class); panel33 = new JPanel(); addDeaccessions = new JButton(); removeDeaccession = new JButton(); basicInformationPanel2 = new JPanel(); panel30 = new JPanel(); panel9 = new JPanel(); label6 = new JLabel(); eadIdentifier5 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_EAD_FA_UNIQUE_IDENTIFIER), false); label15 = new JLabel(); eadIdentifier13 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_EAD_FA_LOCATION), false); label7 = new JLabel(); scrollPane45 = new JScrollPane(); findingAidTitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_TITLE)); label8 = new JLabel(); scrollPane46 = new JScrollPane(); findingAidSubtitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_SUBTITLE)); label2 = new JLabel(); scrollPane8 = new JScrollPane(); findingAidFilingTitle = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_FILING_TITLE)); label9 = new JLabel(); eadIdentifier10 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_DATE), false); label10 = new JLabel(); scrollPane47 = new JScrollPane(); author = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_AUTHOR)); label11 = new JLabel(); extentType2 = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_DESCRIPTION_RULES, Resources.class, 30); label12 = new JLabel(); scrollPane48 = new JScrollPane(); languageOfFindingAid = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_LANGUAGE_OF_FINDING_AID)); separator1 = new JSeparator(); panel41 = new JPanel(); panel31 = new JPanel(); label_resourcesTitle2 = new JLabel(); scrollPane43 = new JScrollPane(); sponsorNote = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_SPONSOR_NOTE)); label13 = new JLabel(); scrollPane49 = new JScrollPane(); editionStatement = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_EDITION_STATEMENT)); label14 = new JLabel(); scrollPane50 = new JScrollPane(); series = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_SERIES)); label16 = new JLabel(); eadIdentifier15 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_REVISION_DATE), false); label17 = new JLabel(); scrollPane51 = new JScrollPane(); revisionDescription = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REVISION_DESCRIPTION)); label18 = new JLabel(); panel3 = new JPanel(); extentType3 = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_FINDING_AID_STATUS, Resources.class); label_resourcesTitle3 = new JLabel(); scrollPane44 = new JScrollPane(); sponsorNote2 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_NOTE)); CellConstraints cc = new CellConstraints(); //======== this ======== setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setBackground(new Color(200, 205, 232)); setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== tabbedPane ======== {// www . j av a2s . com tabbedPane.setMinimumSize(new Dimension(635, 408)); tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); tabbedPane.setPreferredSize(new Dimension(750, 520)); tabbedPane.setBackground(new Color(200, 205, 232)); //======== basicInformationPanel ======== { basicInformationPanel.setBackground(new Color(200, 205, 232)); basicInformationPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); basicInformationPanel.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("fill:default:grow"))); ((FormLayout) basicInformationPanel.getLayout()).setColumnGroups(new int[][] { { 1, 5 } }); //======== panel16 ======== { panel16.setOpaque(false); panel16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel16.setBorder(Borders.DLU2_BORDER); panel16.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel19 ======== { panel19.setOpaque(false); panel19.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel19.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_resourcesLevel ---- label_resourcesLevel.setText("Level"); label_resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLevel, Resources.class, Resources.PROPERTYNAME_LEVEL); panel19.add(label_resourcesLevel, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- resourcesLevel ---- resourcesLevel.setOpaque(false); resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); resourcesLevel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { resourcesLevelActionPerformed(); } }); panel19.add(resourcesLevel, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label_otherLevel ---- label_otherLevel.setText("Other Level"); label_otherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_otherLevel, Resources.class, Resources.PROPERTYNAME_OTHER_LEVEL); panel19.add(label_otherLevel, cc.xy(1, 3)); panel19.add(resourcesOtherLevel, new CellConstraints(3, 3, 1, 1, CellConstraints.FILL, CellConstraints.TOP, new Insets(0, 0, 0, 5))); //---- label_resourcesTitle ---- label_resourcesTitle.setText("Title"); label_resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesTitle, Resources.class, Resources.PROPERTYNAME_TITLE); panel19.add(label_resourcesTitle, cc.xywh(1, 5, 3, 1)); //======== scrollPane2 ======== { //---- resourcesTitle ---- resourcesTitle.setRows(4); resourcesTitle.setLineWrap(true); resourcesTitle.setWrapStyleWord(true); scrollPane2.setViewportView(resourcesTitle); } panel19.add(scrollPane2, cc.xywh(1, 7, 3, 1)); //======== tagApplicatorPanel ======== { tagApplicatorPanel.setOpaque(false); tagApplicatorPanel.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- insertInlineTag ---- insertInlineTag.setOpaque(false); insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); insertInlineTag.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { insertInlineTagActionPerformed(); } }); tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1)); } panel19.add(tagApplicatorPanel, cc.xywh(1, 9, 3, 1)); } panel16.add(panel19, cc.xy(1, 1)); //======== panel34 ======== { panel34.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel34.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel34.setBackground(new Color(182, 187, 212)); panel34.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.RELATED_GAP_ROWSPEC })); //======== panel35 ======== { panel35.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel35.setOpaque(false); panel35.setBorder(Borders.DLU2_BORDER); panel35.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel36 ======== { panel36.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel36.setOpaque(false); panel36.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default:grow"))); //---- label_resourcesDateExpression ---- label_resourcesDateExpression.setText("Date Expression"); label_resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateExpression, Resources.class, Resources.PROPERTYNAME_DATE_EXPRESSION); panel36.add(label_resourcesDateExpression, cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel36.add(resourcesDateExpression, new CellConstraints(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP, new Insets(0, 0, 0, 5))); } panel35.add(panel36, cc.xywh(1, 1, 9, 1)); //---- Date1Label1 ---- Date1Label1.setText("Inclusive Dates"); Date1Label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel35.add(Date1Label1, new CellConstraints(3, 3, 9, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 5, 0, 0))); //---- label_resourcesDateBegin ---- label_resourcesDateBegin.setText("Begin"); label_resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateBegin, Resources.class, Resources.PROPERTYNAME_DATE_BEGIN); panel35.add(label_resourcesDateBegin, cc.xy(3, 5)); //---- resourcesDateBegin ---- resourcesDateBegin.setColumns(4); panel35.add(resourcesDateBegin, cc.xywh(5, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label_resourcesDateEnd ---- label_resourcesDateEnd.setText("End"); label_resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateEnd, Resources.class, Resources.PROPERTYNAME_DATE_END); panel35.add(label_resourcesDateEnd, cc.xy(7, 5)); //---- resourcesDateEnd ---- resourcesDateEnd.setColumns(4); panel35.add(resourcesDateEnd, new CellConstraints(9, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 0, 0, 5))); //---- BulkDatesLabel ---- BulkDatesLabel.setText("Bulk Dates"); BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel35.add(BulkDatesLabel, new CellConstraints(1, 7, 9, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 5, 0, 0))); //---- label_resourcesBulkDateBegin ---- label_resourcesBulkDateBegin.setText("Begin"); label_resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesBulkDateBegin, Resources.class, Resources.PROPERTYNAME_BULK_DATE_BEGIN); panel35.add(label_resourcesBulkDateBegin, cc.xy(3, 9)); //---- resourcesBulkDateBegin ---- resourcesBulkDateBegin.setColumns(4); panel35.add(resourcesBulkDateBegin, cc.xywh(5, 9, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label_resourcesBulkDateEnd ---- label_resourcesBulkDateEnd.setText("End"); label_resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesBulkDateEnd, Resources.class, Resources.PROPERTYNAME_BULK_DATE_END); panel35.add(label_resourcesBulkDateEnd, cc.xy(7, 9)); //---- resourcesBulkDateEnd ---- resourcesBulkDateEnd.setColumns(4); panel35.add(resourcesBulkDateEnd, new CellConstraints(9, 9, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 0, 0, 5))); } panel34.add(panel35, cc.xy(1, 1)); } panel16.add(panel34, cc.xy(1, 3)); //======== panel1 ======== { panel1.setOpaque(false); panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:min(default;200px)") }, RowSpec.decodeSpecs("default"))); //---- label_resourcesLanguageCode ---- label_resourcesLanguageCode.setText("Language"); label_resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode, Resources.class, Resources.PROPERTYNAME_LANGUAGE_CODE); panel1.add(label_resourcesLanguageCode, cc.xy(1, 1)); //---- resourcesLanguageCode ---- resourcesLanguageCode.setMaximumSize(new Dimension(50, 27)); resourcesLanguageCode.setOpaque(false); resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(resourcesLanguageCode, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); } panel16.add(panel1, cc.xy(1, 5)); //---- label_resourcesLanguageNote ---- label_resourcesLanguageNote.setText("Repository Processing Note"); label_resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLanguageNote, Resources.class, Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE); panel16.add(label_resourcesLanguageNote, cc.xy(1, 7)); //======== scrollPane423 ======== { scrollPane423.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane423.setOpaque(false); scrollPane423.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- resourcesLanguageNote ---- resourcesLanguageNote.setRows(4); resourcesLanguageNote.setLineWrap(true); resourcesLanguageNote.setWrapStyleWord(true); scrollPane423.setViewportView(resourcesLanguageNote); } panel16.add(scrollPane423, cc.xy(1, 9)); //======== panel6 ======== { panel6.setOpaque(false); panel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel6.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_agreementReceived2 ---- label_agreementReceived2.setText("Repository"); label_agreementReceived2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_agreementReceived2, Resources.class, Resources.PROPERTYNAME_REPOSITORY); panel6.add(label_agreementReceived2, cc.xy(1, 1)); //---- repositoryName ---- repositoryName.setEditable(false); repositoryName.setOpaque(false); repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); repositoryName.setBorder(null); panel6.add(repositoryName, cc.xy(3, 1)); //---- changeRepositoryButton ---- changeRepositoryButton.setText("Change Repository"); changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); changeRepositoryButton.setOpaque(false); changeRepositoryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { changeRepositoryButtonActionPerformed(); } }); panel6.add(changeRepositoryButton, cc.xywh(3, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } panel16.add(panel6, cc.xy(1, 11)); } basicInformationPanel.add(panel16, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //======== panel13 ======== { panel13.setOpaque(false); panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel13.setBorder(Borders.DLU2_BORDER); panel13.setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== panel17 ======== { panel17.setOpaque(false); panel17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel17.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel12 ======== { panel12.setBackground(new Color(231, 188, 251)); panel12.setOpaque(false); panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel12.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } }); //---- label_resourceIdentifier1 ---- label_resourceIdentifier1.setText("Resource ID"); label_resourceIdentifier1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourceIdentifier1, Resources.class, Resources.PROPERTYNAME_RESOURCE_IDENTIFIER); panel12.add(label_resourceIdentifier1, cc.xy(1, 1)); panel12.add(resourceIdentifier1, cc.xy(3, 1)); panel12.add(resourceIdentifier2, cc.xy(5, 1)); panel12.add(resourceIdentifier3, cc.xy(7, 1)); panel12.add(resourceIdentifier4, cc.xy(9, 1)); } panel17.add(panel12, cc.xy(1, 1)); //======== panel42 ======== { panel42.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel42.setBackground(new Color(182, 187, 212)); panel42.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.RELATED_GAP_ROWSPEC })); //======== panel43 ======== { panel43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel43.setOpaque(false); panel43.setBorder(Borders.DLU2_BORDER); panel43.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- OtherAccessionsLabel ---- OtherAccessionsLabel.setText("Accessions linked to this Resource ID:"); OtherAccessionsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel43.add(OtherAccessionsLabel, cc.xy(1, 1)); //======== scrollPane4 ======== { scrollPane4.setVerticalScrollBarPolicy( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane4.setPreferredSize(new Dimension(300, 100)); //---- accessionsTable ---- accessionsTable.setPreferredScrollableViewportSize(new Dimension(300, 100)); accessionsTable.setFocusable(false); scrollPane4.setViewportView(accessionsTable); } panel43.add(scrollPane4, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } panel42.add(panel43, cc.xy(1, 1)); } panel17.add(panel42, cc.xy(1, 3)); //======== panel37 ======== { panel37.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel37.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel37.setBackground(new Color(182, 187, 212)); panel37.setLayout(new FormLayout("60px:grow", "fill:default:grow")); //======== panel20 ======== { panel20.setOpaque(false); panel20.setBorder(Borders.DLU2_BORDER); panel20.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- ExtentLabel ---- ExtentLabel.setText("Extent"); ExtentLabel.setForeground(new Color(0, 0, 102)); ExtentLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel20.add(ExtentLabel, cc.xywh(1, 1, 2, 1)); //======== panel21 ======== { panel21.setOpaque(false); panel21.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- label_resourcesExtentNumber ---- label_resourcesExtentNumber.setText("Extent"); label_resourcesExtentNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber, Resources.class, Resources.PROPERTYNAME_EXTENT_NUMBER); panel21.add(label_resourcesExtentNumber, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- resourcesExtentNumber ---- resourcesExtentNumber.setColumns(4); panel21.add(resourcesExtentNumber, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- extentType ---- extentType.setOpaque(false); panel21.add(extentType, new CellConstraints(5, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT, new Insets(0, 5, 5, 5))); } panel20.add(panel21, cc.xy(2, 3)); //---- label_resourcesExtentDescription ---- label_resourcesExtentDescription.setText("Container Summary"); label_resourcesExtentDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesExtentDescription, Resources.class, Resources.PROPERTYNAME_CONTAINER_SUMMARY); panel20.add(label_resourcesExtentDescription, cc.xy(2, 5)); //======== scrollPane422 ======== { scrollPane422.setVerticalScrollBarPolicy( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane422.setOpaque(false); scrollPane422.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- containerSummary ---- containerSummary.setRows(4); containerSummary.setWrapStyleWord(true); containerSummary.setLineWrap(true); scrollPane422.setViewportView(containerSummary); } panel20.add(scrollPane422, new CellConstraints(1, 7, 2, 1, CellConstraints.DEFAULT, CellConstraints.FILL, new Insets(0, 15, 5, 5))); } panel37.add(panel20, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); } panel17.add(panel37, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel39 ======== { panel39.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel39.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel39.setBackground(new Color(182, 187, 212)); panel39.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.RELATED_GAP_ROWSPEC })); //======== panel40 ======== { panel40.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel40.setOpaque(false); panel40.setBorder(Borders.DLU2_BORDER); panel40.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label1 ---- label1.setText("Instances"); label1.setForeground(new Color(0, 0, 102)); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label1, Resources.class, ResourcesComponents.PROPERTYNAME_INSTANCES); panel40.add(label1, cc.xy(1, 1)); //======== scrollPane6 ======== { scrollPane6.setVerticalScrollBarPolicy( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane6.setOpaque(false); //---- instancesTable ---- instancesTable.setPreferredScrollableViewportSize(new Dimension(200, 75)); instancesTable.setRowHeight(20); instancesTable.setFocusable(false); instancesTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { instancesTableMouseClicked(e); } }); scrollPane6.setViewportView(instancesTable); } panel40.add(scrollPane6, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel29 ======== { panel29.setBackground(new Color(231, 188, 251)); panel29.setOpaque(false); panel29.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel29.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addInstanceButton ---- addInstanceButton.setText("Add Instance"); addInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addInstanceButton.setOpaque(false); addInstanceButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addInstanceButtonActionPerformed(); } }); panel29.add(addInstanceButton, cc.xy(1, 1)); //---- removeInstanceButton ---- removeInstanceButton.setText("Remove Instance"); removeInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeInstanceButton.setOpaque(false); removeInstanceButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeInstanceButtonActionPerformed(); } }); panel29.add(removeInstanceButton, cc.xy(3, 1)); } panel40.add(panel29, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } panel39.add(panel40, cc.xy(1, 1)); } panel17.add(panel39, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel2 ======== { panel2.setOpaque(false); panel2.setLayout(new FormLayout("default", "default")); //---- restrictionsApply ---- restrictionsApply.setText("Restrictions Apply"); restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); restrictionsApply.setOpaque(false); restrictionsApply.setText(ATFieldInfo.getLabel(Resources.class, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY)); panel2.add(restrictionsApply, cc.xy(1, 1)); } panel17.add(panel2, cc.xy(1, 9)); } panel13.add(panel17, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } basicInformationPanel.add(panel13, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- separator2 ---- separator2.setForeground(new Color(147, 131, 86)); separator2.setOrientation(SwingConstants.VERTICAL); basicInformationPanel.add(separator2, cc.xywh(3, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } tabbedPane.addTab("Basic Description", basicInformationPanel); //======== namesPanel ======== { namesPanel.setBackground(new Color(200, 205, 232)); namesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); ((FormLayout) namesPanel.getLayout()).setRowGroups(new int[][] { { 3, 11 } }); //---- SubjectsLabel2 ---- SubjectsLabel2.setText("Names"); SubjectsLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.add(SubjectsLabel2, cc.xy(1, 1)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setPreferredSize(new Dimension(600, 320)); //---- namesTable ---- namesTable.setFocusable(false); namesTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { namesTableMouseClicked(e); } }); scrollPane1.setViewportView(namesTable); } namesPanel.add(scrollPane1, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel8 ======== { panel8.setBackground(new Color(231, 188, 251)); panel8.setOpaque(false); panel8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel8.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- editNameRelationshipButton ---- editNameRelationshipButton.setText("Edit Name Link"); editNameRelationshipButton.setOpaque(false); editNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); editNameRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { editNameRelationshipButtonActionPerformed(); } }); panel8.add(editNameRelationshipButton, cc.xy(1, 1)); //---- addNameRelationshipButton ---- addNameRelationshipButton.setBackground(new Color(231, 188, 251)); addNameRelationshipButton.setText("Add Name Link"); addNameRelationshipButton.setOpaque(false); addNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addNameRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addNameRelationshipButtonActionPerformed(); } }); panel8.add(addNameRelationshipButton, cc.xy(3, 1)); //---- removeNameRelationshipButton ---- removeNameRelationshipButton.setBackground(new Color(231, 188, 251)); removeNameRelationshipButton.setText("Remove Name Link"); removeNameRelationshipButton.setOpaque(false); removeNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeNameRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeNameRelationshipButtonActionPerformed(); } }); panel8.add(removeNameRelationshipButton, cc.xy(5, 1)); } namesPanel.add(panel8, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //---- separator5 ---- separator5.setBackground(new Color(220, 220, 232)); separator5.setForeground(new Color(147, 131, 86)); separator5.setMinimumSize(new Dimension(1, 10)); separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.add(separator5, cc.xy(1, 7)); //---- SubjectsLabel ---- SubjectsLabel.setText("Subjects"); SubjectsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.add(SubjectsLabel, cc.xy(1, 9)); //======== scrollPane3 ======== { scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); //---- subjectsTable ---- subjectsTable.setFocusable(false); scrollPane3.setViewportView(subjectsTable); } namesPanel.add(scrollPane3, cc.xy(1, 11)); //======== panel11 ======== { panel11.setBackground(new Color(231, 188, 251)); panel11.setOpaque(false); panel11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel11.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addSubjectRelationshipButton ---- addSubjectRelationshipButton.setText("Add Subject Link"); addSubjectRelationshipButton.setOpaque(false); addSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addSubjectRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addSubjectRelationshipButtonActionPerformed(); } }); panel11.add(addSubjectRelationshipButton, cc.xy(1, 1)); //---- removeSubjectRelationshipButton ---- removeSubjectRelationshipButton.setText("Remove Subject Link"); removeSubjectRelationshipButton.setOpaque(false); removeSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeSubjectRelationshipButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeSubjectRelationshipButtonActionPerformed(); } }); panel11.add(removeSubjectRelationshipButton, cc.xy(3, 1)); } namesPanel.add(panel11, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } tabbedPane.addTab("Names & Subjects", namesPanel); //======== notesPanel ======== { notesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.setBackground(new Color(200, 205, 232)); notesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- SubjectsLabel3 ---- SubjectsLabel3.setText("Notes etc."); SubjectsLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.add(SubjectsLabel3, cc.xy(1, 1)); //======== scrollPane5 ======== { scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- repeatingDataTable ---- repeatingDataTable.setFocusable(false); repeatingDataTable.setDragEnabled(true); repeatingDataTable.setPreferredScrollableViewportSize(new Dimension(450, 200)); repeatingDataTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { repeatingDataTableMouseClicked(e); } }); scrollPane5.setViewportView(repeatingDataTable); } notesPanel.add(scrollPane5, cc.xy(1, 3)); //======== panel14 ======== { panel14.setBackground(new Color(231, 188, 251)); panel14.setOpaque(false); panel14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel14.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default:grow"))); //---- addNoteEtcComboBox ---- addNoteEtcComboBox.setOpaque(false); addNoteEtcComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addNoteEtcComboBoxActionPerformed(e); } }); panel14.add(addNoteEtcComboBox, cc.xy(1, 1)); //---- removeNotesEtcButton ---- removeNotesEtcButton.setText("Remove Note etc."); removeNotesEtcButton.setOpaque(false); removeNotesEtcButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeNotesEtcButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeNotesEtcButtonActionPerformed(); } }); panel14.add(removeNotesEtcButton, cc.xy(3, 1)); } notesPanel.add(panel14, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //---- separator6 ---- separator6.setBackground(new Color(220, 220, 232)); separator6.setForeground(new Color(147, 131, 86)); separator6.setMinimumSize(new Dimension(1, 10)); separator6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.add(separator6, cc.xy(1, 7)); //---- label_repositoryName3 ---- label_repositoryName3.setText("Deaccessions"); label_repositoryName3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); notesPanel.add(label_repositoryName3, cc.xy(1, 9)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- deaccessionsTable ---- deaccessionsTable.setPreferredScrollableViewportSize(new Dimension(450, 100)); deaccessionsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { deaccessionsTableMouseClicked(e); } }); scrollPane7.setViewportView(deaccessionsTable); } notesPanel.add(scrollPane7, cc.xy(1, 11)); //======== panel33 ======== { panel33.setBackground(new Color(231, 188, 251)); panel33.setOpaque(false); panel33.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel33.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addDeaccessions ---- addDeaccessions.setBackground(new Color(231, 188, 251)); addDeaccessions.setText("Add Deaccession"); addDeaccessions.setOpaque(false); addDeaccessions.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addDeaccessions.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addDeaccessionsActionPerformed(); } }); panel33.add(addDeaccessions, cc.xy(1, 1)); //---- removeDeaccession ---- removeDeaccession.setBackground(new Color(231, 188, 251)); removeDeaccession.setText("Remove Deaccession"); removeDeaccession.setOpaque(false); removeDeaccession.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeDeaccession.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeDeaccessionActionPerformed(); } }); panel33.add(removeDeaccession, cc.xy(3, 1)); } notesPanel.add(panel33, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } tabbedPane.addTab("Notes Etc. & Deaccessions", notesPanel); //======== basicInformationPanel2 ======== { basicInformationPanel2.setBackground(new Color(200, 205, 232)); basicInformationPanel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); basicInformationPanel2.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.5), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:max(default;300px):grow(0.5)") }, RowSpec.decodeSpecs("fill:default:grow"))); ((FormLayout) basicInformationPanel2.getLayout()).setColumnGroups(new int[][] { { 1, 5 } }); //======== panel30 ======== { panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== panel9 ======== { panel9.setOpaque(false); panel9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel9.setBorder(Borders.DLU2_BORDER); panel9.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.PREF_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label6 ---- label6.setText("EAD FA Unique Identifier"); label6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label6, Resources.class, Resources.PROPERTYNAME_EAD_FA_UNIQUE_IDENTIFIER); panel9.add(label6, cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel9.add(eadIdentifier5, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label15 ---- label15.setText("EAD Location"); label15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label15, Resources.class, Resources.PROPERTYNAME_EAD_FA_LOCATION); panel9.add(label15, cc.xywh(1, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel9.add(eadIdentifier13, cc.xywh(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label7 ---- label7.setText("Finding Aid Title"); label7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label7, Resources.class, Resources.PROPERTYNAME_FINDING_AID_TITLE); panel9.add(label7, cc.xywh(1, 5, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane45 ======== { scrollPane45.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane45.setPreferredSize(new Dimension(300, 68)); scrollPane45.setOpaque(false); scrollPane45.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- findingAidTitle ---- findingAidTitle.setRows(4); findingAidTitle.setLineWrap(true); findingAidTitle.setWrapStyleWord(true); findingAidTitle.setMinimumSize(new Dimension(200, 16)); scrollPane45.setViewportView(findingAidTitle); } panel9.add(scrollPane45, cc.xywh(1, 7, 3, 1)); //---- label8 ---- label8.setText("Finding Aid Subtitle"); label8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label8, Resources.class, Resources.PROPERTYNAME_FINDING_AID_SUBTITLE); panel9.add(label8, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane46 ======== { scrollPane46.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane46.setPreferredSize(new Dimension(300, 68)); scrollPane46.setOpaque(false); scrollPane46.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- findingAidSubtitle ---- findingAidSubtitle.setRows(4); findingAidSubtitle.setLineWrap(true); findingAidSubtitle.setWrapStyleWord(true); findingAidSubtitle.setMinimumSize(new Dimension(200, 16)); scrollPane46.setViewportView(findingAidSubtitle); } panel9.add(scrollPane46, cc.xywh(1, 11, 3, 1)); //---- label2 ---- label2.setText("Finding Aid Filing Title"); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label2, Resources.class, Resources.PROPERTYNAME_FINDING_AID_FILING_TITLE); panel9.add(label2, cc.xy(1, 13)); //======== scrollPane8 ======== { //---- findingAidFilingTitle ---- findingAidFilingTitle.setRows(4); findingAidFilingTitle.setLineWrap(true); findingAidFilingTitle.setWrapStyleWord(true); scrollPane8.setViewportView(findingAidFilingTitle); } panel9.add(scrollPane8, cc.xywh(1, 15, 3, 1)); //---- label9 ---- label9.setText("Finding Aid Date"); label9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label9, Resources.class, Resources.PROPERTYNAME_FINDING_AID_DATE); panel9.add(label9, cc.xywh(1, 17, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel9.add(eadIdentifier10, cc.xywh(3, 17, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label10 ---- label10.setText("Author"); label10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label10, Resources.class, Resources.PROPERTYNAME_AUTHOR); panel9.add(label10, cc.xywh(1, 19, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane47 ======== { scrollPane47.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane47.setPreferredSize(new Dimension(300, 68)); scrollPane47.setOpaque(false); scrollPane47.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- author ---- author.setRows(4); author.setLineWrap(true); author.setWrapStyleWord(true); author.setMinimumSize(new Dimension(200, 16)); scrollPane47.setViewportView(author); } panel9.add(scrollPane47, cc.xywh(1, 21, 3, 1)); //---- label11 ---- label11.setText("Description Rules"); label11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label11, Resources.class, Resources.PROPERTYNAME_DESCRIPTION_RULES); panel9.add(label11, cc.xywh(1, 23, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- extentType2 ---- extentType2.setOpaque(false); extentType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel9.add(extentType2, cc.xywh(1, 25, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label12 ---- label12.setText("Language of Finding Aid"); label12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label12, Resources.class, Resources.PROPERTYNAME_LANGUAGE_OF_FINDING_AID); panel9.add(label12, cc.xywh(1, 27, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane48 ======== { scrollPane48.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane48.setPreferredSize(new Dimension(300, 68)); scrollPane48.setOpaque(false); scrollPane48.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- languageOfFindingAid ---- languageOfFindingAid.setRows(4); languageOfFindingAid.setLineWrap(true); languageOfFindingAid.setWrapStyleWord(true); languageOfFindingAid.setMinimumSize(new Dimension(200, 16)); scrollPane48.setViewportView(languageOfFindingAid); } panel9.add(scrollPane48, cc.xywh(1, 29, 3, 1)); } panel30.add(panel9, cc.xy(1, 1)); } basicInformationPanel2.add(panel30, cc.xy(1, 1)); //---- separator1 ---- separator1.setForeground(new Color(147, 131, 86)); separator1.setOrientation(SwingConstants.VERTICAL); basicInformationPanel2.add(separator1, cc.xywh(3, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //======== panel41 ======== { panel41.setOpaque(false); panel41.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel41.setBorder(Borders.DLU2_BORDER); panel41.setLayout(new FormLayout("left:default:grow", "fill:default:grow")); //======== panel31 ======== { panel31.setOpaque(false); panel31.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel31.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.PREF_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //---- label_resourcesTitle2 ---- label_resourcesTitle2.setText("Sponsor Note"); label_resourcesTitle2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesTitle2, Resources.class, Resources.PROPERTYNAME_SPONSOR_NOTE); panel31.add(label_resourcesTitle2, cc.xy(1, 1)); //======== scrollPane43 ======== { scrollPane43.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane43.setPreferredSize(new Dimension(300, 68)); scrollPane43.setOpaque(false); scrollPane43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- sponsorNote ---- sponsorNote.setRows(4); sponsorNote.setLineWrap(true); sponsorNote.setWrapStyleWord(true); sponsorNote.setMinimumSize(new Dimension(200, 16)); scrollPane43.setViewportView(sponsorNote); } panel31.add(scrollPane43, cc.xywh(1, 3, 3, 1)); //---- label13 ---- label13.setText("Edition Statement"); label13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label13, Resources.class, Resources.PROPERTYNAME_EDITION_STATEMENT); panel31.add(label13, cc.xywh(1, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane49 ======== { scrollPane49.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane49.setPreferredSize(new Dimension(300, 68)); scrollPane49.setOpaque(false); scrollPane49.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- editionStatement ---- editionStatement.setRows(4); editionStatement.setLineWrap(true); editionStatement.setWrapStyleWord(true); editionStatement.setMinimumSize(new Dimension(200, 16)); scrollPane49.setViewportView(editionStatement); } panel31.add(scrollPane49, cc.xywh(1, 7, 3, 1)); //---- label14 ---- label14.setText("Series"); label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label14, Resources.class, Resources.PROPERTYNAME_SERIES); panel31.add(label14, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane50 ======== { scrollPane50.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane50.setPreferredSize(new Dimension(300, 68)); scrollPane50.setOpaque(false); scrollPane50.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- series ---- series.setRows(4); series.setLineWrap(true); series.setWrapStyleWord(true); series.setMinimumSize(new Dimension(200, 16)); scrollPane50.setViewportView(series); } panel31.add(scrollPane50, cc.xywh(1, 11, 3, 1)); //---- label16 ---- label16.setText("Revision Date"); label16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label16, Resources.class, Resources.PROPERTYNAME_REVISION_DATE); panel31.add(label16, cc.xywh(1, 13, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); panel31.add(eadIdentifier15, cc.xywh(3, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //---- label17 ---- label17.setText("Revision Description"); label17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label17, Resources.class, Resources.PROPERTYNAME_REVISION_DESCRIPTION); panel31.add(label17, cc.xywh(1, 15, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== scrollPane51 ======== { scrollPane51.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane51.setPreferredSize(new Dimension(300, 68)); scrollPane51.setOpaque(false); scrollPane51.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- revisionDescription ---- revisionDescription.setRows(4); revisionDescription.setLineWrap(true); revisionDescription.setWrapStyleWord(true); revisionDescription.setMinimumSize(new Dimension(200, 16)); scrollPane51.setViewportView(revisionDescription); } panel31.add(scrollPane51, cc.xywh(1, 17, 3, 1)); //---- label18 ---- label18.setText("Finding Aid Status"); label18.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label18, Resources.class, Resources.PROPERTYNAME_FINDING_AID_STATUS); panel31.add(label18, cc.xywh(1, 19, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== panel3 ======== { panel3.setOpaque(false); panel3.setLayout(new FormLayout("min(default;200px)", "default")); //---- extentType3 ---- extentType3.setOpaque(false); extentType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); extentType3.setMaximumSize(new Dimension(100, 32767)); panel3.add(extentType3, cc.xy(1, 1)); } panel31.add(panel3, cc.xy(3, 19)); //---- label_resourcesTitle3 ---- label_resourcesTitle3.setText("Finding Aid Note"); label_resourcesTitle3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesTitle3, Resources.class, Resources.PROPERTYNAME_FINDING_AID_NOTE); panel31.add(label_resourcesTitle3, cc.xy(1, 21)); //======== scrollPane44 ======== { scrollPane44.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane44.setPreferredSize(new Dimension(300, 68)); scrollPane44.setOpaque(false); scrollPane44.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- sponsorNote2 ---- sponsorNote2.setRows(4); sponsorNote2.setLineWrap(true); sponsorNote2.setWrapStyleWord(true); sponsorNote2.setMinimumSize(new Dimension(200, 16)); scrollPane44.setViewportView(sponsorNote2); } panel31.add(scrollPane44, cc.xywh(1, 23, 3, 1)); } panel41.add(panel31, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } basicInformationPanel2.add(panel41, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } tabbedPane.addTab("Finding Aid Data", basicInformationPanel2); } add(tabbedPane, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents instancesTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); }
From source file:org.eclipse.wb.internal.swing.FormLayout.gef.header.edit.RowHeaderEditPart.java
License:Open Source License
@Override protected Figure createFigure() { Figure newFigure = new Figure() { @Override// w w w.j a va 2 s . c om protected void paintClientArea(Graphics graphics) { Rectangle r = getClientArea(); // draw rectangle graphics.setForegroundColor(IColorConstants.buttonDarker); graphics.drawLine(r.x, r.y, r.right(), r.y); graphics.drawLine(r.x, r.bottom() - 1, r.right(), r.bottom() - 1); // draw row index int titleTop; int titleBottom; { String title = "" + (1 + getIndex()); Dimension textExtents = graphics.getTextExtent(title); if (r.height < textExtents.height) { return; } // draw title titleTop = r.y + (r.height - textExtents.height) / 2; titleBottom = titleTop + textExtents.height; int x = r.x + (r.width - textExtents.width) / 2; graphics.setForegroundColor(IColorConstants.black); graphics.drawText(title, x, titleTop); } // draw alignment indicator if (titleTop - r.y > 3 + 7 + 3) { Image image; if (m_dimension.getAlignment() == RowSpec.TOP) { image = getImage("top.gif"); } else if (m_dimension.getAlignment() == RowSpec.BOTTOM) { image = getImage("bottom.gif"); } else if (m_dimension.getAlignment() == RowSpec.CENTER) { image = getImage("center.gif"); } else { image = getImage("fill.gif"); } // int y = r.y + 2; drawCentered(graphics, image, y); } // draw grow indicator if (m_dimension.hasGrow()) { if (titleBottom + 3 + 7 + 3 < r.bottom()) { Image image = getImage("grow.gif"); drawCentered(graphics, image, r.bottom() - 3 - image.getBounds().height); } } } private Image getImage(String name) { return RowHeaderEditPart.this.getImage("alignment/v/" + name); } private void drawCentered(Graphics graphics, Image image, int y) { int x = (getBounds().width - image.getBounds().width) / 2; graphics.drawImage(image, x, y); } }; // newFigure.setFont(DEFAULT_FONT); newFigure.setOpaque(true); return newFigure; }
From source file:org.eclipse.wb.internal.swing.FormLayout.gef.header.edit.RowHeaderEditPart.java
License:Open Source License
public void buildContextMenu(IMenuManager manager) { if (!m_layout.canChangeDimensions()) { return;/* w w w .ja v a2 s .c om*/ } // operations { manager.add(new DimensionHeaderAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_insertRow) { @Override protected void run(FormRowInfo dimension) throws Exception { int index = m_layout.getRows().indexOf(dimension); m_layout.insertRow(index); } }); manager.add(new DimensionHeaderAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_appendRow) { @Override protected void run(FormRowInfo dimension) throws Exception { int index = m_layout.getRows().indexOf(dimension); m_layout.insertRow(index + 1); } }); manager.add(new DimensionHeaderAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_deleteRow) { @Override protected void run(FormRowInfo dimension) throws Exception { int index = m_layout.getRows().indexOf(dimension); m_layout.deleteRow(index); } }); manager.add(new DimensionHeaderAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_deleteContents) { @Override protected void run(FormRowInfo dimension) throws Exception { int index = m_layout.getRows().indexOf(dimension); m_layout.deleteRowContents(index); } }); manager.add(new DimensionHeaderAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_splitRow) { @Override protected void run(FormRowInfo dimension) throws Exception { int index = m_layout.getRows().indexOf(dimension); m_layout.splitRow(index); } }); } // alignment { manager.add(new Separator()); manager.add(new SetAlignmentAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_vaTop, Activator.getImageDescriptor("alignment/v/menu/top.gif"), RowSpec.TOP)); manager.add(new SetAlignmentAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_vaCenter, Activator.getImageDescriptor("alignment/v/menu/center.gif"), RowSpec.CENTER)); manager.add(new SetAlignmentAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_vaBottom, Activator.getImageDescriptor("alignment/v/menu/bottom.gif"), RowSpec.BOTTOM)); manager.add(new SetAlignmentAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_vaFill, Activator.getImageDescriptor("alignment/v/menu/fill.gif"), RowSpec.FILL)); } // grow { manager.add(new Separator()); manager.add(new SetGrowAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_grow, Activator.getImageDescriptor("alignment/h/menu/grow.gif"))); } // templates { manager.add(new Separator()); addTemplateActions(manager, m_dimension.getTemplates(true)); { IMenuManager otherManager = new MenuManager(GefMessages.RowHeaderEditPart_otherTemplates); manager.add(otherManager); addTemplateActions(otherManager, m_dimension.getTemplates(false)); } } // group { manager.add(new Separator()); { DimensionHeaderAction<FormRowInfo> action = new DimensionHeaderAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_group) { @Override protected void run(List<FormRowInfo> dimensions) throws Exception { m_layout.groupRows(dimensions); } }; action.setEnabled(getViewer().getSelectedEditParts().size() >= 2); manager.add(action); } { DimensionHeaderAction<FormRowInfo> action = new DimensionHeaderAction<FormRowInfo>(this, GefMessages.RowHeaderEditPart_unGroup) { @Override protected void run(List<FormRowInfo> dimensions) throws Exception { m_layout.unGroupRows(dimensions); } }; manager.add(action); // check if there is groupped dimension selected boolean hasGroup = false; for (EditPart editPart : getViewer().getSelectedEditParts()) { RowHeaderEditPart headerEditPart = (RowHeaderEditPart) editPart; if (m_layout.getRowGroup(headerEditPart.m_row) != null) { hasGroup = true; break; } } // enable action action.setEnabled(hasGroup); } } // properties { manager.add(new Separator()); manager.add(new ObjectInfoAction(m_layout, GefMessages.RowHeaderEditPart_properties) { @Override protected void runEx() throws Exception { editDimension(); } }); } }
From source file:org.eclipse.wb.internal.swing.FormLayout.model.FormDimensionInfo.java
License:Open Source License
/** * @return the source for {@link #m_alignment}. *//*from w w w .ja v a 2 s. co m*/ private static String getAlignmentSource(boolean horizontal, DefaultAlignment alignment) { if (horizontal) { String source; if (alignment == ColumnSpec.LEFT) { source = "LEFT"; } else if (alignment == ColumnSpec.CENTER) { source = "CENTER"; } else if (alignment == ColumnSpec.RIGHT) { source = "RIGHT"; } else { Assert.isTrue(alignment == ColumnSpec.FILL); source = "FILL"; } return "com.jgoodies.forms.layout.ColumnSpec." + source; } else { String source; if (alignment == RowSpec.TOP) { source = "TOP"; } else if (alignment == RowSpec.CENTER) { source = "CENTER"; } else if (alignment == RowSpec.BOTTOM) { source = "BOTTOM"; } else { Assert.isTrue(alignment == RowSpec.FILL); source = "FILL"; } return "com.jgoodies.forms.layout.RowSpec." + source; } }
From source file:org.eclipse.wb.tests.designer.swing.model.layout.FormLayout.FormDimensionInfoTest.java
License:Open Source License
public void test_sourceBounded_row() throws Exception { check_getAlignmentSource(false, RowSpec.TOP, "com.jgoodies.forms.layout.RowSpec.TOP"); check_getAlignmentSource(false, RowSpec.CENTER, "com.jgoodies.forms.layout.RowSpec.CENTER"); check_getAlignmentSource(false, RowSpec.BOTTOM, "com.jgoodies.forms.layout.RowSpec.BOTTOM"); check_getAlignmentSource(false, RowSpec.FILL, "com.jgoodies.forms.layout.RowSpec.FILL"); }