This project has retired. For details please refer to its Attic page.
DetailsTabs xref

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.chemistry.opencmis.workbench.details;
20  
21  import javax.swing.JScrollPane;
22  import javax.swing.JTabbedPane;
23  
24  import org.apache.chemistry.opencmis.workbench.model.ClientModel;
25  
26  public class DetailsTabs extends JTabbedPane {
27  
28      private static final long serialVersionUID = 1L;
29  
30      private final ClientModel model;
31  
32      private ObjectPanel objectPanel;
33      private ActionsPanel actionsPanel;
34      private PropertyTable propertyTable;
35      private RelationshipTable relationshipTable;
36      private RenditionTable renditionTable;
37      private ACLTable aclTable;
38      private PolicyTable policyTable;
39      private VersionTable versionTable;
40      private TypesPanel typesPanel;
41      private ExtensionsPanel extensionsPanel;
42  
43      public DetailsTabs(ClientModel model) {
44          super(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
45  
46          this.model = model;
47          createGUI();
48      }
49  
50      private void createGUI() {
51          objectPanel = new ObjectPanel(model);
52          actionsPanel = new ActionsPanel(model);
53          propertyTable = new PropertyTable(model);
54          relationshipTable = new RelationshipTable(model);
55          renditionTable = new RenditionTable(model);
56          aclTable = new ACLTable(model);
57          policyTable = new PolicyTable(model);
58          versionTable = new VersionTable(model);
59          typesPanel = new TypesPanel(model);
60          extensionsPanel = new ExtensionsPanel(model);
61  
62          addTab("Object", new JScrollPane(objectPanel));
63          addTab("Actions", new JScrollPane(actionsPanel));
64          addTab("Properties", new JScrollPane(propertyTable));
65          addTab("Relationships", new JScrollPane(relationshipTable));
66          addTab("Renditions", new JScrollPane(renditionTable));
67          addTab("ACL", new JScrollPane(aclTable));
68          addTab("Policies", new JScrollPane(policyTable));
69          addTab("Versions", new JScrollPane(versionTable));
70          addTab("Type", new JScrollPane(typesPanel));
71          addTab("Extensions", new JScrollPane(extensionsPanel));
72      }
73  }