List of usage examples for com.jgoodies.forms.layout CellConstraints DEFAULT
Alignment DEFAULT
To view the source code for com.jgoodies.forms.layout CellConstraints DEFAULT.
Click Source Link
From source file:org.archiviststoolkit.editor.BasicNoteFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label14 = new JLabel(); scrollPane1 = new JScrollPane(); noteContent = ATBasicComponentFactory.createTextArea( detailsModel.getModel(ArchDescriptionNotes.PROPERTYNAME_ARCH_DESCRIPTION_NOTE_CONTENT), false); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory.createUnboundComboBox(InLineTagsUtils.getInLineTagList()); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);//w w w .j a v a2 s.co m setOpaque(false); setPreferredSize(new Dimension(600, 500)); setLayout(new FormLayout( new ColumnSpec[] { 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.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label14 ---- label14.setText("Text"); label14.setVerticalAlignment(SwingConstants.TOP); label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label14, ArchDescriptionNotes.class, ArchDescriptionNotes.PROPERTYNAME_ARCH_DESCRIPTION_NOTE_CONTENT); add(label14, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); //---- noteContent ---- noteContent.setRows(20); noteContent.setLineWrap(true); noteContent.setTabSize(20); noteContent.setWrapStyleWord(true); scrollPane1.setViewportView(noteContent); } add(scrollPane1, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== 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)); } add(tagApplicatorPanel, cc.xy(3, 3)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.BibItemsFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectScopeNote = new JLabel(); scrollPane1 = new JScrollPane(); value = ATBasicComponentFactory.createTextArea(detailsModel.getModel(BibItems.PROPERTYNAME_ITEM_VALUE), false);//from ww w .java 2 s. co m tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.BIB_ITEM_VALUE)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setPreferredSize(new Dimension(600, 300)); setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;400px):grow") }, new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Value"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, BibItems.class, BibItems.PROPERTYNAME_ITEM_VALUE); add(label_subjectScopeNote, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- value ---- value.setRows(4); value.setLineWrap(true); value.setTabSize(20); value.setWrapStyleWord(true); scrollPane1.setViewportView(value); } add(scrollPane1, cc.xy(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)); } add(tagApplicatorPanel, cc.xy(3, 3)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.BibliographyFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license panel1 = new JPanel(); internalOnly = ATBasicComponentFactory.createCheckBox(detailsModel, ArchDescriptionStructuredData.PROPERTYNAME_ARCH_DESCRIPTION_NOTE_INTERNAL_ONLY, Bibliography.class); panel4 = new JPanel(); label4 = new JLabel(); persistentId2 = ATBasicComponentFactory .createTextField(detailsModel.getModel(ArchDescriptionRepeatingData.PROPERTYNAME_PERSISTENT_ID)); label_subjectTerm = new JLabel(); title = ATBasicComponentFactory.createTextField(detailsModel.getModel(Bibliography.PROPERTYNAME_TITLE)); label_subjectScopeNote = new JLabel(); scrollPane1 = new JScrollPane(); note = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Bibliography.PROPERTYNAME_NOTE)); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory.createUnboundComboBox(InLineTagsUtils.getInLineTagList()); label_subjectScopeNote2 = new JLabel(); scrollPane2 = new JScrollPane(); ingestProblems = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Bibliography.PROPERTYNAME_EAD_INGEST_PROBLEMS)); scrollPane7 = new JScrollPane(); itemsTable = new DomainSortedTable(BibItems.class); panel3 = new JPanel(); panel30 = new JPanel(); addItemButton = new JButton(); removeItemButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);/* ww w. j a v a 2 s. com*/ setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setPreferredSize(new Dimension(800, 500)); 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, 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 })); //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { 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"))); //---- internalOnly ---- internalOnly.setBackground(new Color(231, 188, 251)); internalOnly.setText("Internal Only"); internalOnly.setOpaque(false); internalOnly.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.add(internalOnly, cc.xy(1, 1)); //======== panel4 ======== { panel4.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- label4 ---- label4.setText("Persistent ID"); label4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel4.add(label4, cc.xy(1, 1)); //---- persistentId2 ---- persistentId2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); persistentId2.setColumns(3); persistentId2.setBorder(null); persistentId2.setEditable(false); persistentId2.setOpaque(false); panel4.add(persistentId2, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } panel1.add(panel4, cc.xywh(5, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); } add(panel1, cc.xywh(1, 1, 3, 1)); //---- label_subjectTerm ---- label_subjectTerm.setText("Title"); label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTerm, Bibliography.class, Bibliography.PROPERTYNAME_TITLE); add(label_subjectTerm, cc.xy(1, 3)); add(title, cc.xy(3, 3)); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Note"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, Bibliography.class, Bibliography.PROPERTYNAME_NOTE); add(label_subjectScopeNote, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- note ---- note.setRows(4); note.setLineWrap(true); note.setTabSize(20); note.setWrapStyleWord(true); scrollPane1.setViewportView(note); } add(scrollPane1, cc.xy(3, 5)); //======== 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)); } add(tagApplicatorPanel, cc.xy(3, 7)); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Ingest Problems"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, Bibliography.class, Bibliography.PROPERTYNAME_EAD_INGEST_PROBLEMS); add(label_subjectScopeNote2, cc.xywh(1, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setMaximumSize(new Dimension(32767, 100)); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- ingestProblems ---- ingestProblems.setRows(4); ingestProblems.setLineWrap(true); ingestProblems.setTabSize(20); ingestProblems.setWrapStyleWord(true); scrollPane2.setViewportView(ingestProblems); } add(scrollPane2, cc.xy(3, 9)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- itemsTable ---- itemsTable.setFocusable(false); itemsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { bibItemsTableMouseClicked(e); } @Override public void mousePressed(MouseEvent e) { itemsTableMousePressed(e); } @Override public void mouseReleased(MouseEvent e) { itemsTableMouseReleased(e); } }); scrollPane7.setViewportView(itemsTable); } add(scrollPane7, cc.xywh(1, 11, 3, 1)); //======== panel3 ======== { panel3.setLayout(new FormLayout( new ColumnSpec[] { 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) panel3.getLayout()).setColumnGroups(new int[][] { { 1, 3, 5 } }); //======== panel30 ======== { panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addItemButton ---- addItemButton.setText("Add Item"); addItemButton.setOpaque(false); addItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addItemButtonActionPerformed(e); } }); panel30.add(addItemButton, cc.xy(1, 1)); //---- removeItemButton ---- removeItemButton.setBackground(new Color(231, 188, 251)); removeItemButton.setText("Remove Item"); removeItemButton.setOpaque(false); removeItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeItemButtonActionPerformed(e); } }); panel30.add(removeItemButton, cc.xy(3, 1)); } panel3.add(panel30, cc.xy(3, 1)); } add(panel3, cc.xywh(1, 13, 3, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ChronologyFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectTerm = new JLabel(); title = ATBasicComponentFactory.createTextField(detailsModel.getModel(ChronologyList.PROPERTYNAME_TITLE)); label_subjectScopeNote2 = new JLabel(); scrollPane2 = new JScrollPane(); ingestProblems = ATBasicComponentFactory .createTextArea(detailsModel.getModel(ChronologyList.PROPERTYNAME_EAD_INGEST_PROBLEMS)); scrollPane7 = new JScrollPane(); itemsTable = new DomainSortedTable(ChronologyItems.class); panel30 = new JPanel(); addItemButton = new JButton(); removeItemButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);//from w w w . j av a2 s .c o m setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setPreferredSize(new Dimension(800, 500)); setBackground(new Color(200, 205, 232)); 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, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_subjectTerm ---- label_subjectTerm.setText("Title"); label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectTerm, ChronologyList.class, ChronologyList.PROPERTYNAME_TITLE); add(label_subjectTerm, cc.xy(1, 1)); add(title, cc.xy(3, 1)); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Ingest Problems"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ChronologyList.class, ChronologyList.PROPERTYNAME_EAD_INGEST_PROBLEMS); add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setMaximumSize(new Dimension(32767, 100)); scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- ingestProblems ---- ingestProblems.setRows(4); ingestProblems.setLineWrap(true); ingestProblems.setTabSize(20); ingestProblems.setWrapStyleWord(true); scrollPane2.setViewportView(ingestProblems); } add(scrollPane2, cc.xy(3, 3)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- itemsTable ---- itemsTable.setFocusable(false); itemsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { chronolgyItemsTableMouseClicked(e); } @Override public void mousePressed(MouseEvent e) { itemsTableMousePressed(e); } @Override public void mouseReleased(MouseEvent e) { itemsTableMouseReleased(e); } }); scrollPane7.setViewportView(itemsTable); } add(scrollPane7, cc.xywh(1, 5, 3, 1)); //======== panel30 ======== { panel30.setBackground(new Color(231, 188, 251)); panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addItemButton ---- addItemButton.setText("Add Item"); addItemButton.setOpaque(false); addItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addItemButtonActionPerformed(e); } }); panel30.add(addItemButton, cc.xy(1, 1)); //---- removeItemButton ---- removeItemButton.setBackground(new Color(231, 188, 251)); removeItemButton.setText("Remove Item"); removeItemButton.setOpaque(false); removeItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeItemButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeItemButtonActionPerformed(e); } }); panel30.add(removeItemButton, cc.xy(3, 1)); } add(panel30, cc.xywh(1, 7, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ChronologyItemsFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectScopeNote = new JLabel(); eventDate = ATBasicComponentFactory/*from w ww . j a v a 2 s .c om*/ .createTextField(detailsModel.getModel(ChronologyItems.PROPERTYNAME_EVENT_DATE)); label_subjectScopeNote2 = new JLabel(); scrollPane7 = new JScrollPane(); eventsTable = new DomainSortedTable(Events.class); panel30 = new JPanel(); addEventButton = new JButton(); removeEventButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setBackground(new Color(200, 205, 232)); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Event Date"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, ChronologyItems.class, ChronologyItems.PROPERTYNAME_EVENT_DATE); add(label_subjectScopeNote, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); add(eventDate, cc.xy(3, 1)); //---- label_subjectScopeNote2 ---- label_subjectScopeNote2.setText("Events"); label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ChronologyItems.class, ChronologyItems.PROPERTYNAME_EVENT_DATE); add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane7 ======== { scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- eventsTable ---- eventsTable.setFocusable(false); eventsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { eventsTableMouseClicked(e); } }); scrollPane7.setViewportView(eventsTable); } add(scrollPane7, cc.xywh(1, 5, 3, 1)); //======== panel30 ======== { panel30.setBackground(new Color(231, 188, 251)); panel30.setOpaque(false); panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel30.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addEventButton ---- addEventButton.setText("Add Event"); addEventButton.setOpaque(false); addEventButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addEventButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addEventButtonActionPerformed(e); } }); panel30.add(addEventButton, cc.xy(1, 1)); //---- removeEventButton ---- removeEventButton.setText("Remove Event"); removeEventButton.setOpaque(false); removeEventButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeEventButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeEventButtonActionPerformed(e); } }); panel30.add(removeEventButton, cc.xy(3, 1)); } add(panel30, cc.xywh(1, 7, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.DeaccessionsFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license repositoryInfo = new JPanel(); label15 = new JLabel(); accessionDate = ATBasicComponentFactory .createDateField(detailsModel.getModel(Deaccessions.PROPERTYNAME_DATE)); label1 = new JLabel(); scrollPane1 = new JScrollPane(); subjectScopeNote = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Deaccessions.PROPERTYNAME_DESCRIPTION)); label2 = new JLabel(); scrollPane2 = new JScrollPane(); subjectScopeNote2 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Deaccessions.PROPERTYNAME_REASON)); panel1 = new JPanel(); label3 = new JLabel(); extentNumber = ATBasicComponentFactory.createDoubleField(detailsModel, Deaccessions.PROPERTYNAME_EXTENT); extentType = ATBasicComponentFactory.createComboBox(detailsModel, Deaccessions.PROPERTYNAME_EXTENT_TYPE, Deaccessions.class); label4 = new JLabel(); repositoryName4 = ATBasicComponentFactory .createTextField(detailsModel.getModel(Deaccessions.PROPERTYNAME_DISPOSITION)); rights = ATBasicComponentFactory.createCheckBox(detailsModel, Deaccessions.PROPERTYNAME_NOTIFICATION, Deaccessions.class); CellConstraints cc = new CellConstraints(); //======== this ======== setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setLayout(new FormLayout("default:grow", "top:default:grow")); //======== repositoryInfo ======== {//from ww w.ja va2 s. c o m repositoryInfo.setBorder(Borders.DLU4_BORDER); repositoryInfo.setOpaque(false); repositoryInfo.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); repositoryInfo.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;400px)") }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_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, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label15 ---- label15.setText("Date"); label15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label15, Deaccessions.class, Deaccessions.PROPERTYNAME_DATE); repositoryInfo.add(label15, cc.xy(1, 1)); //---- accessionDate ---- accessionDate.setColumns(12); repositoryInfo.add(accessionDate, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label1 ---- label1.setText("Description"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label1, Deaccessions.class, Deaccessions.PROPERTYNAME_DESCRIPTION); repositoryInfo.add(label1, cc.xy(1, 3)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); //---- subjectScopeNote ---- subjectScopeNote.setRows(4); subjectScopeNote.setLineWrap(true); subjectScopeNote.setTabSize(20); subjectScopeNote.setWrapStyleWord(true); scrollPane1.setViewportView(subjectScopeNote); } repositoryInfo.add(scrollPane1, cc.xy(3, 3)); //---- label2 ---- label2.setText("Reason"); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label2, Deaccessions.class, Deaccessions.PROPERTYNAME_REASON); repositoryInfo.add(label2, cc.xy(1, 5)); //======== scrollPane2 ======== { scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane2.setMaximumSize(new Dimension(32767, 100)); //---- subjectScopeNote2 ---- subjectScopeNote2.setRows(4); subjectScopeNote2.setLineWrap(true); subjectScopeNote2.setTabSize(20); subjectScopeNote2.setWrapStyleWord(true); scrollPane2.setViewportView(subjectScopeNote2); } repositoryInfo.add(scrollPane2, cc.xy(3, 5)); //======== panel1 ======== { panel1.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.PREF_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- label3 ---- label3.setText("Extent"); ATFieldInfo.assignLabelInfo(label3, Deaccessions.class, Deaccessions.PROPERTYNAME_EXTENT); panel1.add(label3, cc.xy(1, 1)); //---- extentNumber ---- extentNumber.setColumns(6); panel1.add(extentNumber, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- extentType ---- extentType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); extentType.setOpaque(false); panel1.add(extentType, new CellConstraints(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT, new Insets(0, 5, 5, 5))); } repositoryInfo.add(panel1, cc.xywh(1, 7, 3, 1)); //---- label4 ---- label4.setText("Disposition"); label4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label4, Deaccessions.class, Deaccessions.PROPERTYNAME_DISPOSITION); repositoryInfo.add(label4, cc.xy(1, 9)); repositoryInfo.add(repositoryName4, cc.xy(3, 9)); //---- rights ---- rights.setBackground(new Color(231, 188, 251)); rights.setText("Notification"); rights.setOpaque(false); rights.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); rights.setText(ATFieldInfo.getLabel(Deaccessions.class, Deaccessions.PROPERTYNAME_NOTIFICATION)); repositoryInfo.add(rights, cc.xywh(1, 11, 3, 1)); } add(repositoryInfo, cc.xy(1, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.DigitalObjectFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license panel3 = new JPanel(); label2 = new JLabel(); digitalObjectTitle = new JTextField(); tabbedPane = new JTabbedPane(); basicInformationPanel = new JPanel(); panel16 = new JPanel(); panel1 = new JPanel(); label_resourcesLanguageCode4 = new JLabel(); label = ATBasicComponentFactory.createTextField(detailsModel.getModel(DigitalObjects.PROPERTYNAME_LABEL), false);// w w w .j ava 2 s. c o m panel19 = new JPanel(); label_resourcesTitle = new JLabel(); scrollPane42 = new JScrollPane(); title = ATBasicComponentFactory.createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false); resourcesPanel = new JPanel(); resourcesLabel = new JLabel(); scrollPane4 = new JScrollPane(); resourcesTable = new DomainSortableTable(); panel13 = new JPanel(); panel17 = new JPanel(); panel18 = new JPanel(); panel15 = new JPanel(); panel20 = new JPanel(); ExtentNumberLabel3 = new JLabel(); label_resourcesDateExpression = new JLabel(); dateExpression = ATBasicComponentFactory .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false); panel9 = new JPanel(); Date1Label = new JLabel(); label_resourcesDateBegin = new JLabel(); dateBegin = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_BEGIN); label_resourcesDateEnd = new JLabel(); dateEnd = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_END); digitalObjectResourceRecordOnly = new JPanel(); restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, DigitalObjects.class); label_resourcesLanguageCode3 = new JLabel(); objectType = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_OBJECT_TYPE, DigitalObjects.class); actuateLabel2 = new JLabel(); scrollPane43 = new JScrollPane(); title2 = ATBasicComponentFactory .createTextArea(detailsModel.getModel(DigitalObjects.PROPERTYNAME_METS_IDENTIFIER), false); actuateLabel = new JLabel(); actuate = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_EAD_DAO_ACTUATE, DigitalObjects.class); showLabel = new JLabel(); show = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_EAD_DAO_SHOW, DigitalObjects.class); componentIDPanel = new JPanel(); componentLabel1 = new JLabel(); dateExpression2 = ATBasicComponentFactory .createTextField(detailsModel.getModel(DigitalObjects.PROPERTYNAME_COMPONENT_ID), false); panel5 = new JPanel(); label_resourcesLanguageCode = new JLabel(); languageCode = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_LANGUAGE_CODE, DigitalObjects.class); repositoryPanel = new JPanel(); label_repositoryName = new JLabel(); repositoryName = new JTextField(); changeRepositoryButton = new JButton(); panel2 = new JPanel(); label1 = new JLabel(); scrollPane6 = new JScrollPane(); fileVersionsTable = new DomainSortableTable(FileVersions.class, FileVersions.PROPERTYNAME_FILE_VERSIONS_USE_STATEMENT); panel29 = new JPanel(); addFileVersionButton = new JButton(); removeFileVersionButton = new JButton(); 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(); SubjectsLabel3 = new JLabel(); scrollPane3 = new JScrollPane(); subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class, ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM); panel11 = new JPanel(); addSubjectRelationshipButton = new JButton(); removeSubjectRelationshipButton = new JButton(); panel6 = new JPanel(); scrollPane5 = new JScrollPane(); notesTable = new DomainSortedTable(ArchDescriptionRepeatingData.class); panel14 = new JPanel(); addNoteEtcComboBox = new JComboBox(); removeNoteButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setBackground(new Color(200, 205, 232)); setLayout(new FormLayout("left:default:grow", "default, fill:default:grow")); //======== panel3 ======== { panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); 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) }, RowSpec.decodeSpecs("default"))); //---- label2 ---- label2.setText("Title: "); label2.setForeground(new Color(0, 0, 102)); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel3.add(label2, cc.xy(1, 1)); //---- digitalObjectTitle ---- digitalObjectTitle.setEditable(false); digitalObjectTitle.setOpaque(false); digitalObjectTitle.setBorder(null); panel3.add(digitalObjectTitle, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } add(panel3, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //======== tabbedPane ======== { tabbedPane.setMinimumSize(new Dimension(635, 408)); tabbedPane.setFocusable(false); tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); tabbedPane.setBackground(new Color(200, 205, 232)); tabbedPane.setOpaque(true); //======== 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, 0.5), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:max(default;300px):grow(0.5)") }, new 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) })); ((FormLayout) basicInformationPanel.getLayout()).setColumnGroups(new int[][] { { 1, 3 } }); //======== panel16 ======== { panel16.setOpaque(false); panel16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel16.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.30000000000000004) })); //======== panel1 ======== { panel1.setOpaque(false); panel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel1.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- label_resourcesLanguageCode4 ---- label_resourcesLanguageCode4.setText("Label"); label_resourcesLanguageCode4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode4, DigitalObjects.class, DigitalObjects.PROPERTYNAME_LABEL); panel1.add(label_resourcesLanguageCode4, cc.xy(1, 1)); panel1.add(label, new CellConstraints(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP, new Insets(0, 0, 0, 5))); } panel16.add(panel1, cc.xy(1, 1)); //======== 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.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 })); //---- label_resourcesTitle ---- label_resourcesTitle.setText("Title"); label_resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesTitle, DigitalObjects.class, DigitalObjects.PROPERTYNAME_TITLE); panel19.add(label_resourcesTitle, cc.xy(1, 1)); //======== scrollPane42 ======== { scrollPane42.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- title ---- title.setRows(4); title.setLineWrap(true); title.setWrapStyleWord(true); scrollPane42.setViewportView(title); } panel19.add(scrollPane42, cc.xywh(1, 3, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== resourcesPanel ======== { resourcesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); resourcesPanel.setOpaque(false); resourcesPanel.setBorder(new BevelBorder(BevelBorder.LOWERED)); resourcesPanel.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) })); //---- resourcesLabel ---- resourcesLabel.setText("Resource Linked to this Digital Object"); resourcesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); resourcesPanel.add(resourcesLabel, cc.xy(1, 1)); //======== scrollPane4 ======== { scrollPane4 .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane4.setPreferredSize(new Dimension(300, 50)); //---- resourcesTable ---- resourcesTable.setPreferredScrollableViewportSize(new Dimension(300, 100)); resourcesTable.setFocusable(false); scrollPane4.setViewportView(resourcesTable); } resourcesPanel.add(scrollPane4, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } panel19.add(resourcesPanel, cc.xywh(1, 5, 3, 1)); } panel16.add(panel19, cc.xy(1, 3)); } basicInformationPanel.add(panel16, cc.xy(1, 1)); //======== panel13 ======== { panel13.setOpaque(false); panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel13.setLayout(new FormLayout("left: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.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== panel18 ======== { panel18.setBorder(null); panel18.setOpaque(false); panel18.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel18.setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== panel15 ======== { panel15.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel15.setBackground(new Color(182, 187, 212)); panel15.setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== panel20 ======== { panel20.setOpaque(false); panel20.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel20.setBorder(Borders.DLU2_BORDER); panel20.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) }, 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 })); //---- ExtentNumberLabel3 ---- ExtentNumberLabel3.setText("Dates"); ExtentNumberLabel3.setForeground(new Color(0, 0, 102)); ExtentNumberLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel20.add(ExtentNumberLabel3, cc.xywh(1, 1, 4, 1)); //---- label_resourcesDateExpression ---- label_resourcesDateExpression.setText("Date Expression"); label_resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateExpression, DigitalObjects.class, DigitalObjects.PROPERTYNAME_DATE_EXPRESSION); panel20.add(label_resourcesDateExpression, cc.xy(3, 3)); panel20.add(dateExpression, cc.xy(5, 3)); //======== panel9 ======== { panel9.setOpaque(false); panel9.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, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- Date1Label ---- Date1Label.setText("Date"); Date1Label.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel9.add(Date1Label, cc.xy(1, 1)); //---- label_resourcesDateBegin ---- label_resourcesDateBegin.setText("Begin"); label_resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateBegin, DigitalObjects.class, DigitalObjects.PROPERTYNAME_DATE_BEGIN); panel9.add(label_resourcesDateBegin, cc.xy(3, 1)); //---- dateBegin ---- dateBegin.setColumns(4); panel9.add(dateBegin, cc.xy(5, 1)); //---- label_resourcesDateEnd ---- label_resourcesDateEnd.setText("End"); label_resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesDateEnd, DigitalObjects.class, DigitalObjects.PROPERTYNAME_DATE_END); panel9.add(label_resourcesDateEnd, cc.xy(7, 1)); //---- dateEnd ---- dateEnd.setColumns(4); panel9.add(dateEnd, cc.xy(9, 1)); } panel20.add(panel9, cc.xywh(3, 5, 3, 1)); } panel15.add(panel20, cc.xy(1, 1)); } panel18.add(panel15, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); } panel17.add(panel18, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== digitalObjectResourceRecordOnly ======== { digitalObjectResourceRecordOnly.setOpaque(false); digitalObjectResourceRecordOnly.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, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- restrictionsApply ---- restrictionsApply.setBackground(new Color(231, 188, 251)); restrictionsApply.setText("Restrictions Apply"); restrictionsApply.setOpaque(false); restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); restrictionsApply.setText(ATFieldInfo.getLabel(DigitalObjects.class, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY)); digitalObjectResourceRecordOnly.add(restrictionsApply, cc.xywh(1, 1, 3, 1)); //---- label_resourcesLanguageCode3 ---- label_resourcesLanguageCode3.setText("Object Type"); label_resourcesLanguageCode3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode3, DigitalObjects.class, DigitalObjects.PROPERTYNAME_OBJECT_TYPE); digitalObjectResourceRecordOnly.add(label_resourcesLanguageCode3, cc.xy(1, 3)); //---- objectType ---- objectType.setMaximumSize(new Dimension(50, 27)); objectType.setOpaque(false); objectType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); digitalObjectResourceRecordOnly.add(objectType, cc.xywh(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- actuateLabel2 ---- actuateLabel2.setText("Digital Object ID"); actuateLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(actuateLabel2, DigitalObjects.class, DigitalObjects.PROPERTYNAME_METS_IDENTIFIER); digitalObjectResourceRecordOnly.add(actuateLabel2, cc.xy(1, 5)); //======== scrollPane43 ======== { scrollPane43 .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- title2 ---- title2.setRows(3); title2.setLineWrap(true); title2.setWrapStyleWord(true); scrollPane43.setViewportView(title2); } digitalObjectResourceRecordOnly.add(scrollPane43, cc.xywh(3, 5, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- actuateLabel ---- actuateLabel.setText("EAD DAO Actuate"); actuateLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(actuateLabel, DigitalObjects.class, DigitalObjects.PROPERTYNAME_EAD_DAO_ACTUATE); digitalObjectResourceRecordOnly.add(actuateLabel, cc.xy(1, 7)); //---- actuate ---- actuate.setOpaque(false); actuate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); digitalObjectResourceRecordOnly.add(actuate, cc.xywh(3, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- showLabel ---- showLabel.setText("EAD DAO Show"); showLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(showLabel, DigitalObjects.class, DigitalObjects.PROPERTYNAME_EAD_DAO_SHOW); digitalObjectResourceRecordOnly.add(showLabel, cc.xy(1, 9)); //---- show ---- show.setOpaque(false); show.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); digitalObjectResourceRecordOnly.add(show, cc.xywh(3, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); } panel17.add(digitalObjectResourceRecordOnly, cc.xy(1, 3)); //======== componentIDPanel ======== { componentIDPanel.setBackground(new Color(200, 205, 232)); componentIDPanel .setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, RowSpec.decodeSpecs("default"))); //---- componentLabel1 ---- componentLabel1.setText("Component ID"); componentLabel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(componentLabel1, DigitalObjects.class, DigitalObjects.PROPERTYNAME_COMPONENT_ID); componentIDPanel.add(componentLabel1, cc.xy(1, 1)); componentIDPanel.add(dateExpression2, cc.xy(3, 1)); } panel17.add(componentIDPanel, cc.xy(1, 5)); } panel13.add(panel17, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } basicInformationPanel.add(panel13, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //======== panel5 ======== { panel5.setOpaque(false); panel5.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_resourcesLanguageCode ---- label_resourcesLanguageCode.setText("Language"); label_resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode, DigitalObjects.class, DigitalObjects.PROPERTYNAME_LANGUAGE_CODE); panel5.add(label_resourcesLanguageCode, cc.xy(1, 1)); //---- languageCode ---- languageCode.setMaximumSize(new Dimension(50, 27)); languageCode.setOpaque(false); languageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel5.add(languageCode, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== repositoryPanel ======== { repositoryPanel.setOpaque(false); repositoryPanel .setLayout( new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(44)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- label_repositoryName ---- label_repositoryName.setText("Repository :"); label_repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_repositoryName, Accessions.class, Accessions.PROPERTYNAME_REPOSITORY); repositoryPanel.add(label_repositoryName, cc.xy(1, 1)); //---- repositoryName ---- repositoryName.setEditable(false); repositoryName.setFocusable(false); repositoryName.setBorder(null); repositoryName.setOpaque(false); repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); repositoryName.setHorizontalAlignment(SwingConstants.LEFT); repositoryPanel.add(repositoryName, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- 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(); } }); repositoryPanel.add(changeRepositoryButton, cc.xy(5, 1)); } panel5.add(repositoryPanel, cc.xywh(1, 3, 3, 1)); } basicInformationPanel.add(panel5, cc.xywh(1, 3, 3, 1)); //======== panel2 ======== { panel2.setBorder(new BevelBorder(BevelBorder.LOWERED)); panel2.setOpaque(false); panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel2.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("File Versions"); label1.setForeground(new Color(0, 0, 102)); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label1, DigitalObjects.class, DigitalObjects.PROPERTYNAME_FILE_VERSIONS); panel2.add(label1, new CellConstraints(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(5, 5, 0, 0))); //======== scrollPane6 ======== { scrollPane6.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- fileVersionsTable ---- fileVersionsTable.setPreferredScrollableViewportSize(new Dimension(200, 75)); fileVersionsTable.setRowHeight(20); fileVersionsTable.setFocusable(false); fileVersionsTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { fileVersionTableMouseClicked(e); } }); scrollPane6.setViewportView(fileVersionsTable); } panel2.add(scrollPane6, new CellConstraints(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 10, 0, 5))); //======== 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"))); //---- addFileVersionButton ---- addFileVersionButton.setText("Add File Version"); addFileVersionButton.setOpaque(false); addFileVersionButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addFileVersionButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addFileVersionButtonActionPerformed(); } }); panel29.add(addFileVersionButton, cc.xy(1, 1)); //---- removeFileVersionButton ---- removeFileVersionButton.setText("Remove File Version"); removeFileVersionButton.setOpaque(false); removeFileVersionButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeFileVersionButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeFileVersionButtonActionPerformed(e); } }); panel29.add(removeFileVersionButton, cc.xy(3, 1)); } panel2.add(panel29, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } basicInformationPanel.add(panel2, cc.xywh(1, 5, 3, 1)); } 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.CENTER, 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)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- namesTable ---- namesTable.setPreferredScrollableViewportSize(new Dimension(450, 300)); 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)); //---- SubjectsLabel3 ---- SubjectsLabel3.setText("Subjects"); SubjectsLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); namesPanel.add(SubjectsLabel3, cc.xy(1, 9)); //======== scrollPane3 ======== { scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- subjectsTable ---- subjectsTable.setPreferredScrollableViewportSize(new Dimension(200, 200)); 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.setBackground(new Color(231, 188, 251)); 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.setBackground(new Color(231, 188, 251)); 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); //======== panel6 ======== { panel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel6.setBackground(new Color(200, 205, 232)); panel6.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== scrollPane5 ======== { scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- notesTable ---- notesTable.setFocusable(false); notesTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { notesTableMouseClicked(e); } }); scrollPane5.setViewportView(notesTable); } panel6.add(scrollPane5, cc.xy(1, 1)); //======== 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"))); //---- addNoteEtcComboBox ---- addNoteEtcComboBox.setOpaque(false); addNoteEtcComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addNoteEtcComboBoxActionPerformed(e); } }); panel14.add(addNoteEtcComboBox, cc.xy(1, 1)); //---- removeNoteButton ---- removeNoteButton.setBackground(new Color(231, 188, 251)); removeNoteButton.setText("Remove Note"); removeNoteButton.setOpaque(false); removeNoteButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); removeNoteButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeNoteButtonActionPerformed(e); } }); panel14.add(removeNoteButton, cc.xy(3, 1)); } panel6.add(panel14, cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); } tabbedPane.addTab("Notes", panel6); } add(tabbedPane, cc.xywh(1, 2, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents // instancesTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); }
From source file:org.archiviststoolkit.editor.DigitalObjectTreeViewer.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license panel3 = new JPanel(); label2 = new JLabel(); resourceTitle = new JTextField(); label3 = new JLabel(); resourceId = new JTextField(); splitPane = new JSplitPane(); digitalObjectTreeScrollPane = new JScrollPane(); panel2 = new JPanel(); addChildButton = new JButton(); addSiblingBelowButton = new JButton(); deleteDigitalObjectButton = new JButton(); exportMetsButton = new JButton(); exportMARC = new JButton(); exportMODS = new JButton(); exportDC = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setPreferredSize(new Dimension(1000, 600)); setOpaque(false);// w ww. j a va 2 s.c o m setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setLayout(new FormLayout("default:grow", "default, default, fill:default")); //======== panel3 ======== { panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel3.setBackground(new Color(200, 205, 232)); panel3.setVisible(false); 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, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- label2 ---- label2.setText("Digtal Object Title: "); label2.setForeground(new Color(0, 0, 102)); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel3.add(label2, cc.xy(1, 1)); //---- resourceTitle ---- resourceTitle.setEditable(false); resourceTitle.setOpaque(false); resourceTitle.setBorder(null); panel3.add(resourceTitle, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); //---- label3 ---- label3.setText("Resource ID: "); label3.setForeground(new Color(0, 0, 102)); label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel3.add(label3, cc.xy(5, 1)); //---- resourceId ---- resourceId.setEditable(false); resourceId.setOpaque(false); resourceId.setBorder(null); panel3.add(resourceId, cc.xywh(7, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT)); } add(panel3, cc.xy(1, 1)); //======== splitPane ======== { splitPane.setDividerLocation(300); splitPane.setLastDividerLocation(300); splitPane.setPreferredSize(new Dimension(1000, 600)); splitPane.setOpaque(false); splitPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //======== digitalObjectTreeScrollPane ======== { digitalObjectTreeScrollPane.setPreferredSize(new Dimension(250, 384)); digitalObjectTreeScrollPane.setMinimumSize(new Dimension(250, 384)); digitalObjectTreeScrollPane .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); digitalObjectTreeScrollPane.setFocusable(false); digitalObjectTreeScrollPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); digitalObjectTreeScrollPane.setAutoscrolls(true); } splitPane.setLeftComponent(digitalObjectTreeScrollPane); } add(splitPane, cc.xy(1, 2)); //======== panel2 ======== { panel2.setOpaque(false); panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); panel2.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.CENTER, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.UNRELATED_GAP_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, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- addChildButton ---- addChildButton.setOpaque(false); addChildButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addChildButton.setIcon( new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/addChild.jpg"))); addChildButton.setHorizontalTextPosition(SwingConstants.RIGHT); addChildButton.setToolTipText("Add Child"); addChildButton.setText("<html><c>Add<br>Child</c></html>"); addChildButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addChildActionPerformed(e); } }); panel2.add(addChildButton, cc.xy(1, 1)); //---- addSiblingBelowButton ---- addSiblingBelowButton.setOpaque(false); addSiblingBelowButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); addSiblingBelowButton.setIcon(new ImageIcon( getClass().getResource("/org/archiviststoolkit/resources/images/addSibling.png"))); addSiblingBelowButton.setToolTipText("Add Sibling Above"); addSiblingBelowButton.setText("<html>Add<br>Sibling</html>"); addSiblingBelowButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { addSiblingBelowActionPerformed(e); } }); panel2.add(addSiblingBelowButton, cc.xy(3, 1)); //---- deleteDigitalObjectButton ---- deleteDigitalObjectButton.setOpaque(false); deleteDigitalObjectButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); deleteDigitalObjectButton.setIcon( new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/delete.jpg"))); deleteDigitalObjectButton.setToolTipText("Delete Digital Object"); deleteDigitalObjectButton.setText("<html>Delete<br>Node</html>"); deleteDigitalObjectButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { deleteDigitalObjectButtonActionPerformed(e); } }); panel2.add(deleteDigitalObjectButton, cc.xy(5, 1)); //---- exportMetsButton ---- exportMetsButton.setOpaque(false); exportMetsButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); exportMetsButton.setIcon(new ImageIcon( getClass().getResource("/org/archiviststoolkit/resources/images/exportMETS.jpg"))); exportMetsButton.setToolTipText("Export METS"); exportMetsButton.setText("<html>Export<br>METS</html>"); exportMetsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exportMetsButtonActionPerformed(e); } }); panel2.add(exportMetsButton, cc.xywh(9, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); //---- exportMARC ---- exportMARC.setOpaque(false); exportMARC.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); exportMARC.setIcon(new ImageIcon( getClass().getResource("/org/archiviststoolkit/resources/images/exportMARC.jpg"))); exportMARC.setToolTipText("Export MARC"); exportMARC.setText("<html>Export<br>MARC</html>"); exportMARC.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exportMARCActionPerformed(e); } }); panel2.add(exportMARC, cc.xywh(11, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- exportMODS ---- exportMODS.setOpaque(false); exportMODS.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); exportMODS.setIcon(new ImageIcon( getClass().getResource("/org/archiviststoolkit/resources/images/exportMODS.png"))); exportMODS.setToolTipText("Export MODS"); exportMODS.setText("<html>Export<br>MODS</html>"); exportMODS.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exportMODSActionPerformed(e); } }); panel2.add(exportMODS, cc.xywh(13, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- exportDC ---- exportDC.setOpaque(false); exportDC.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); exportDC.setIcon( new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/exportDC.png"))); exportDC.setToolTipText("Export Dublin Core"); exportDC.setText("<html>Export<br>Dublin Core</html>"); exportDC.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exportDCActionPerformed(e); } }); panel2.add(exportDC, cc.xywh(15, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); } add(panel2, cc.xy(1, 3)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.EventsFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label_subjectScopeNote = new JLabel(); scrollPane1 = new JScrollPane(); descritpion = ATBasicComponentFactory .createTextArea(detailsModel.getModel(Events.PROPERTYNAME_EVENT_DESCRIPTION), false); tagApplicatorPanel = new JPanel(); insertInlineTag = ATBasicComponentFactory .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.EVENT_DESCRIPTION)); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER);/* www . j a va 2 s. c o m*/ setBackground(new Color(234, 201, 250)); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;400px):grow") }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label_subjectScopeNote ---- label_subjectScopeNote.setText("Event"); label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP); label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label_subjectScopeNote, Events.class, Events.PROPERTYNAME_EVENT_DESCRIPTION); add(label_subjectScopeNote, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); //======== scrollPane1 ======== { scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrollPane1.setMaximumSize(new Dimension(32767, 100)); scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); //---- descritpion ---- descritpion.setRows(4); descritpion.setLineWrap(true); descritpion.setTabSize(20); descritpion.setWrapStyleWord(true); scrollPane1.setViewportView(descritpion); } add(scrollPane1, cc.xy(3, 1)); //======== tagApplicatorPanel ======== { tagApplicatorPanel.setOpaque(false); tagApplicatorPanel.setLayout(new FormLayout("default", "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)); } add(tagApplicatorPanel, cc.xy(3, 3)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:org.archiviststoolkit.editor.ExternalReferenceFields.java
License:Open Source License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license label1 = new JLabel(); title = ATBasicComponentFactory//from ww w .j a v a 2s. co m .createTextField(detailsModel.getModel(ExternalReference.PROPERTYNAME_TITLE)); label2 = new JLabel(); href = ATBasicComponentFactory.createTextField(detailsModel.getModel(ExternalReference.PROPERTYNAME_HREF)); actuateLabel = new JLabel(); actuate = ATBasicComponentFactory.createComboBox(detailsModel, ExternalReference.PROPERTYNAME_ACTUATE, ExternalReference.class); showLabel = new JLabel(); show = ATBasicComponentFactory.createComboBox(detailsModel, ExternalReference.PROPERTYNAME_SHOW, ExternalReference.class); openInBrowser = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setBorder(Borders.DLU4_BORDER); setOpaque(false); setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); setMinimumSize(new Dimension(600, 97)); setPreferredSize(new Dimension(600, 120)); 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, 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 })); //---- label1 ---- label1.setText("Title"); label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label1, ExternalReference.class, ExternalReference.PROPERTYNAME_TITLE); add(label1, cc.xy(1, 1)); add(title, cc.xywh(3, 1, 7, 1)); //---- label2 ---- label2.setText("HREF"); label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(label2, ExternalReference.class, ExternalReference.PROPERTYNAME_HREF); add(label2, cc.xy(1, 3)); add(href, cc.xywh(3, 3, 7, 1)); //---- actuateLabel ---- actuateLabel.setText("Actuate"); actuateLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(actuateLabel, ExternalReference.class, ExternalReference.PROPERTYNAME_ACTUATE); add(actuateLabel, cc.xy(1, 5)); //---- actuate ---- actuate.setOpaque(false); actuate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(actuate, cc.xy(3, 5)); //---- showLabel ---- showLabel.setText("Show"); showLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); ATFieldInfo.assignLabelInfo(showLabel, ExternalReference.class, ExternalReference.PROPERTYNAME_SHOW); add(showLabel, cc.xy(5, 5)); //---- show ---- show.setOpaque(false); show.setFont(new Font("Trebuchet MS", Font.PLAIN, 13)); add(show, cc.xy(7, 5)); //---- openInBrowser ---- openInBrowser.setText("Open in Browser"); openInBrowser.setOpaque(false); openInBrowser.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { openInBrowserActionPerformed(); } }); add(openInBrowser, cc.xywh(9, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents }