| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlTabFolder
HtmlTabFolder | public class HtmlTabFolder extends HtmlComponent (Code) | | This type implements a navigation bar which resembles a tab folder. Each tab entry contains a display
component, typically text, and an HTML link.
|
Inner Class :class TabInfo | |
Method Summary | |
public void | addTab(HtmlComponent item, String href, String target, boolean is_active) This method adds a tab entry to the folder. | public void | addTab(String text, String href) This method adds a tab entry to the folder. | public void | addTab(String text, String href, String target, boolean is_active) This method adds a tab to the folder. | public void | generateHTML(java.io.PrintWriter p, int rowNo) | public String | getActiveHref() This method returns the href corresponding to active tab, or null if no active tab. | public int | getActiveTab() | public String | getImagePath() | public String | getTabActiveColor() This method returns the HTML color value for the active tab background. | public String | getTabBorderImage() This method returns the name of the image file used to display the tab border. | public String | getTabColor() This method returns the HTML color value used for the (non-active) tab background. | public int | getTabHeight() This method returns the height in pixels of the tab folder, not counting the optional stripe. | public String | getTabLeftImage() This method returns the name of the image file for the left side of each tab. | public String | getTabRightImage() This method returns the name of the image file for the right side of each tab. | public HtmlStyle | getTabStyle() This method returns the HTML color value used for the (non-active) tab background. | public String | getTheme() This method returns the property theme for the component. | public String | getWidth() | public void | setActiveHref(String href) This method sets the tab with the given href to be "active", i.e. | public void | setActiveTab(int tabNr) | public void | setEnabledTab(boolean enabled) | public void | setImagePath(String _imagePath) | public void | setTabActiveColor(String value) This method sets the HTML color value for the active tab background. | public void | setTabActiveFont(String tagStart, String tagEnd) This method sets the HTML font tags to use for text in the active tab. | public void | setTabBorderImage(String image) This method sets the image file used for tab borders. | public void | setTabColor(String value) This method sets the HTML color value for the (non-active) tab background. | public void | setTabFont(String tagStart, String tagEnd) This method sets the HTML font tags for text in each (non-active) tab. | public void | setTabHeight(int height) This method sets the height in pixels of the tab folder, not counting the optional stripe. | public void | setTabLeftImage(String image) This method sets the image file for the left side of each tab. | public void | setTabRightImage(String image) This method sets the image file for the right side of each tab. | public void | setTabStyle(String sStyle) This method sets the HTML color value for the active tab background. | public void | setTheme(String theme) This method sets the property theme for the component. | public void | setWidth(String _width) | public void | showStripe(boolean show) This method determines whether a horizontal stripe below the tab folder, in the same color as the active
background, is displayed. |
enabledTab | boolean enabledTab(Code) | | |
HtmlTabFolder | public HtmlTabFolder(String name, HtmlPage p)(Code) | | Constructs a new HtmlTabFolder to place in the given page.
Parameters: name - java.lang.String Parameters: p - com.salmonllc.html.HtmlPage |
HtmlTabFolder | public HtmlTabFolder(String name, String theme, HtmlPage p)(Code) | | Constructs a new HtmlTabFolder to place in the given page.
Parameters: name - java.lang.String Parameters: theme - The theme to use for loading properties Parameters: p - com.salmonllc.html.HtmlPage |
addTab | public void addTab(HtmlComponent item, String href, String target, boolean is_active)(Code) | | This method adds a tab entry to the folder.
Parameters: item - HtmlComponent The component that will appear in the tab Parameters: href - java.lang.String The href for the tab link Parameters: target - java.lang.String Target for the href, optionally null Parameters: is_active - boolean True if this tab is active (displayed in the active color). |
addTab | public void addTab(String text, String href)(Code) | | This method adds a tab entry to the folder. Text is displayed; target of the href is null; tab is not active.
Parameters: text - Text to display in the tab Parameters: href - Href to use in the link |
addTab | public void addTab(String text, String href, String target, boolean is_active)(Code) | | This method adds a tab to the folder.
Parameters: text - java.lang.String The text that will appear in the tab Parameters: href - java.lang.String The href for the tab link Parameters: target - java.lang.String Target for the href, optionally null Parameters: is_active - boolean True if this tab is active (use active color) |
getActiveHref | public String getActiveHref()(Code) | | This method returns the href corresponding to active tab, or null if no active tab.
|
getActiveTab | public int getActiveTab()(Code) | | get active tab number
|
getTabActiveColor | public String getTabActiveColor()(Code) | | This method returns the HTML color value for the active tab background.
|
getTabBorderImage | public String getTabBorderImage()(Code) | | This method returns the name of the image file used to display the tab border.
|
getTabColor | public String getTabColor()(Code) | | This method returns the HTML color value used for the (non-active) tab background.
java.lang.String |
getTabHeight | public int getTabHeight()(Code) | | This method returns the height in pixels of the tab folder, not counting the optional stripe.
|
getTabLeftImage | public String getTabLeftImage()(Code) | | This method returns the name of the image file for the left side of each tab.
java.lang.String |
getTabRightImage | public String getTabRightImage()(Code) | | This method returns the name of the image file for the right side of each tab.
java.lang.String |
getTabStyle | public HtmlStyle getTabStyle()(Code) | | This method returns the HTML color value used for the (non-active) tab background.
java.lang.String |
getTheme | public String getTheme()(Code) | | This method returns the property theme for the component.
|
setActiveHref | public void setActiveHref(String href)(Code) | | This method sets the tab with the given href to be "active", i.e. displayed using the active display attributes.
Parameters: href - java.lang.String |
setActiveTab | public void setActiveTab(int tabNr)(Code) | | Set active tab number
|
setEnabledTab | public void setEnabledTab(boolean enabled)(Code) | | |
setImagePath | public void setImagePath(String _imagePath)(Code) | | |
setTabActiveColor | public void setTabActiveColor(String value)(Code) | | This method sets the HTML color value for the active tab background.
Parameters: value - java.lang.String |
setTabActiveFont | public void setTabActiveFont(String tagStart, String tagEnd)(Code) | | This method sets the HTML font tags to use for text in the active tab.
Parameters: tagStart - java.lang.String Start font tag Parameters: tagEnd - java.lang.String End font tag |
setTabBorderImage | public void setTabBorderImage(String image)(Code) | | This method sets the image file used for tab borders.
Parameters: image - java.lang.String |
setTabColor | public void setTabColor(String value)(Code) | | This method sets the HTML color value for the (non-active) tab background.
Parameters: value - java.lang.String |
setTabFont | public void setTabFont(String tagStart, String tagEnd)(Code) | | This method sets the HTML font tags for text in each (non-active) tab.
Parameters: tagStart - java.lang.String Start font tag Parameters: tagEnd - java.lang.String End font tag |
setTabHeight | public void setTabHeight(int height)(Code) | | This method sets the height in pixels of the tab folder, not counting the optional stripe.
Parameters: height - int |
setTabLeftImage | public void setTabLeftImage(String image)(Code) | | This method sets the image file for the left side of each tab.
Parameters: image - java.lang.String |
setTabRightImage | public void setTabRightImage(String image)(Code) | | This method sets the image file for the right side of each tab.
Parameters: image - java.lang.String |
setTabStyle | public void setTabStyle(String sStyle)(Code) | | This method sets the HTML color value for the active tab background.
|
setTheme | public void setTheme(String theme)(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
showStripe | public void showStripe(boolean show)(Code) | | This method determines whether a horizontal stripe below the tab folder, in the same color as the active
background, is displayed.
Parameters: show - boolean |
|
|