01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.util;
06:
07: import java.util.Vector;
08:
09: /**
10: * A bean that helps implement a tabbed pane
11: *
12: * @author Onyeje Bose (digi9ten@yahoo.com)
13: * @author Rickard Öberg (rickard@middleware-company.com)
14: * @version $Revision: 1282 $
15: */
16: public class TabbedPane {
17:
18: protected String tabAlign = null;
19:
20: // Attributes ----------------------------------------------------
21: protected Vector content = null;
22: protected int selectedIndex = 0;
23:
24: // Public --------------------------------------------------------
25: public TabbedPane(int defaultIndex) {
26: selectedIndex = defaultIndex;
27: }
28:
29: public void setContent(Vector content) {
30: this .content = content;
31: }
32:
33: public Vector getContent() {
34: return content;
35: }
36:
37: public void setSelectedIndex(int selectedIndex) {
38: this .selectedIndex = selectedIndex;
39: }
40:
41: public int getSelectedIndex() {
42: return selectedIndex;
43: }
44:
45: public void setTabAlign(String tabAlign) {
46: this .tabAlign = tabAlign;
47: }
48:
49: public String getTabAlign() {
50: return tabAlign;
51: }
52: }
|