1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.util;
19
20 import java.util.Vector;
21
22
23 /***
24 * A bean that helps implement a tabbed pane
25 *
26 */
27 public class TabbedPane {
28
29 protected String tabAlign = null;
30
31
32 protected Vector content = null;
33 protected int selectedIndex = 0;
34
35
36
37 public TabbedPane(int defaultIndex) {
38 selectedIndex = defaultIndex;
39 }
40
41
42 public void setContent(Vector content) {
43 this.content = content;
44 }
45
46 public Vector getContent() {
47 return content;
48 }
49
50 public void setSelectedIndex(int selectedIndex) {
51 this.selectedIndex = selectedIndex;
52 }
53
54 public int getSelectedIndex() {
55 return selectedIndex;
56 }
57
58 public void setTabAlign(String tabAlign) {
59 this.tabAlign = tabAlign;
60 }
61
62 public String getTabAlign() {
63 return tabAlign;
64 }
65 }