This project has retired. For details please refer to its
Attic page.
DetailsTabs xref
1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.chemistry.opencmis.workbench.details;
2021import javax.swing.JScrollPane;
22import javax.swing.JTabbedPane;
2324import org.apache.chemistry.opencmis.workbench.model.ClientModel;
2526publicclassDetailsTabsextends JTabbedPane {
2728privatestaticfinallong serialVersionUID = 1L;
2930privatefinalClientModel model;
3132privateObjectPanel objectPanel;
33privateActionsPanel actionsPanel;
34privatePropertyTable propertyTable;
35privateRelationshipTable relationshipTable;
36privateRenditionTable renditionTable;
37privateACLTable aclTable;
38privatePolicyTable policyTable;
39privateVersionTable versionTable;
40privateTypesPanel typesPanel;
41privateExtensionsPanel extensionsPanel;
4243publicDetailsTabs(ClientModel model) {
44super(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
4546this.model = model;
47 createGUI();
48 }
4950privatevoid createGUI() {
51 objectPanel = newObjectPanel(model);
52 actionsPanel = newActionsPanel(model);
53 propertyTable = newPropertyTable(model);
54 relationshipTable = newRelationshipTable(model);
55 renditionTable = newRenditionTable(model);
56 aclTable = newACLTable(model);
57 policyTable = newPolicyTable(model);
58 versionTable = newVersionTable(model);
59 typesPanel = newTypesPanel(model);
60 extensionsPanel = newExtensionsPanel(model);
6162 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 }