tabbedpane.java

来自「webwork source」· Java 代码 · 共 61 行

JAVA
61
字号
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.util;import java.util.Vector;/** * A bean that helps implement a tabbed pane *	@author Onyeje Bose (digi9ten@yahoo.com) *	@author Rickard 謆erg (rickard@middleware-company.com) *	@version $Revision: 1.10 $ */public class TabbedPane{    // Attributes ----------------------------------------------------    protected Vector content = null;    protected int selectedIndex = 0;    protected String tabAlign = null;    // Public --------------------------------------------------------    public TabbedPane( int defaultIndex )    {        selectedIndex = defaultIndex;    }    public int getSelectedIndex()    {        return selectedIndex;    }    public void setSelectedIndex( int selectedIndex )    {        this.selectedIndex = selectedIndex;    }    public Vector getContent()    {        return content;    }    public void setContent( Vector content )    {        this.content = content;    }    public String getTabAlign()    {        return tabAlign;    }    public void setTabAlign( String tabAlign )    {        this.tabAlign = tabAlign;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?