| |
|
| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlButton
HtmlButton | public class HtmlButton extends HtmlComponent (Code) | | This class will generate an html button. The button will execute some javascript when clicked.
|
HtmlButton | public HtmlButton(String name, String dispName, String onClick, HtmlPage p)(Code) | | Constructs a new Button.
Parameters: name - Each component on a page must have a unique name. Parameters: dispName - The text to appear on the button. Parameters: onClick - The javascript to execute when the button is clicked. Parameters: p - A Props object that will be used to initialize any properties in the object. |
HtmlButton | public HtmlButton(String name, String dispName, String onClick, String theme, HtmlPage p)(Code) | | Constructs a new Button.
Parameters: name - Each component on a page must have a unique name. Parameters: dispName - The text to appear on the button. Parameters: onClick - The javascript to execute when the button is clicked. Parameters: theme - The theme to use for loading properties. Parameters: p - A Props object that will be used to initialize any properties in the object. |
getButtonBgColor | public String getButtonBgColor()(Code) | | Returns the background color for the button
|
getButtonFontStyle | public String getButtonFontStyle()(Code) | | Gets the foreground font style for a button
|
getDisplayName | public String getDisplayName()(Code) | | This method returns the text that will be displayed on the button in the browser.
java.lang.String |
getEnabled | public boolean getEnabled()(Code) | | |
getFontEndTag | public String getFontEndTag()(Code) | | This method gets the end font tag for the component.
|
getFontStartTag | public String getFontStartTag()(Code) | | This method gets the start font tag for the component.
|
getOnClick | public String getOnClick()(Code) | | This method gets the javascript that will be executed when the button is clicked.
|
getOnDoubleClick | public String getOnDoubleClick()(Code) | | Returns the onDoubleClick. |
getOnMouseDown | public String getOnMouseDown()(Code) | | Returns the onMouseDown. |
getTabIndex | public int getTabIndex()(Code) | | |
getTheme | public String getTheme()(Code) | | This method returns the property theme for the component.
|
setAccessKey | public void setAccessKey(String string)(Code) | | Parameters: sets - the access key html attribute |
setButtonBgColor | public void setButtonBgColor(String buttonBgColor)(Code) | | Sets the background color for the button
|
setButtonFontStyle | public void setButtonFontStyle(String buttonFontStyle)(Code) | | Sets the foreground font style for a button
|
setDisplayName | public void setDisplayName(String name)(Code) | | This method sets the text that will appear on the button in the browser.
|
setEnabled | public void setEnabled(boolean enabled)(Code) | | |
setFontEndTag | public void setFontEndTag(String value)(Code) | | This method sets the end font tag for the component.
|
setFontStartTag | public void setFontStartTag(String value)(Code) | | This method sets the start font tag for the component.
|
setOnClick | public void setOnClick(String onClick)(Code) | | This method sets the javascript that will be executed when the button is clicked.
|
setOnDoubleClick | public void setOnDoubleClick(String onDoubleClick)(Code) | | Parameters: onDoubleClick - The onDoubleClick to set. |
setOnMouseDown | public void setOnMouseDown(String onMouseDown)(Code) | | Parameters: onMouseDown - The onMouseDown to set. |
setTabIndex | public void setTabIndex(int val)(Code) | | Parameters: sets - the tab index html attribute. You can also pass TAB_INDEX_DEFAULT to use the default tab index for the component or TAB_INDEX_NONE to keep this component from being tabbed to |
setTheme | public void setTheme(String theme)(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
|
|
|