| org.apache.beehive.netui.tags.html.HtmlBaseTag org.apache.beehive.netui.tags.html.HtmlFocusBaseTag org.apache.beehive.netui.tags.html.Button
Button | public class Button extends HtmlFocusBaseTag implements IUrlParams,IHtmlAccessable,IHasPopupSupport(Code) | | Generates a button on the page with the specified attributes. The
<netui:button> tag must be enclosed in <netui:form...> ...
</netui:form> tags. You can specify the action that the form will
raise on the <netui:form> tag.
Form |
ACTION_OVERRIDE | final public static String ACTION_OVERRIDE(Code) | | |
addParameter | public void addParameter(String name, Object value, String facet) throws JspException(Code) | | Adds a URL parameter to the generated hyperlink.
Parameters: name - the name of the parameter to be added. Parameters: value - the value of the parameter to be added (a String or String[]). Parameters: facet - |
doAfterBody | public int doAfterBody() throws JspException(Code) | | Save the associated button label from the body content (if any).
By default, we render the HTML markup with an <input> tag and
if the value attribute is null then we will use the body content
as the value attribute.
However, if the renderAsButton attribute
is set to true, then we render the HTML markup with an HTML
<button> tag, using the value attribute, and placing the
evaluated body content as the content between the begin and
end HTML button tags.
throws: JspException - if a JSP exception has occurred |
getState | protected AbstractHtmlState getState()(Code) | | This method will return the state associated with the tag. This is used by this
base class to access the individual state objects created by the tags.
a subclass of the AbstractHtmlState class. |
getTagName | public String getTagName()(Code) | | Return the name of the Tag.
|
localRelease | protected void localRelease()(Code) | | Release any acquired resources.
|
setAccessKey | public void setAccessKey(char accessKey)(Code) | | Sets the accessKey attribute value. This should key value of the
keyboard navigation key. It is recommended not to use the following
values because there are often used by browsers A, C, E, F, G,
H, V, left arrow, and right arrow .
Parameters: accessKey - the accessKey value. |
setAction | public void setAction(String action) throws JspException(Code) | | Set the name of the action for the Button.
Parameters: action - the name of the action to set for the Button. |
setAlt | public void setAlt(String alt)(Code) | | Sets the alt attribute value.
Parameters: alt - the alt value. |
setAttribute | public void setAttribute(String name, String value, String facet) throws JspException(Code) | | Base support for the attribute tag. This is overridden to prevent setting the type
and value attributes.
Parameters: name - The name of the attribute. This value may not be null or the empty string. Parameters: value - The value of the attribute. Parameters: facet - The name of a facet to which the attribute will be applied. This is optional. throws: JspException - A JspException may be thrown if there is an error setting the attribute. |
setDisableSecondClick | public void setDisableSecondClick(boolean disableSecondClick)(Code) | | When true, this button will disable itself before submitting.
Parameters: disableSecondClick - when true, this button will disable itself before submitting. |
setPopup | public void setPopup(boolean popup)(Code) | | Sets the popup indicator.
Parameters: popup - whether or not the button should open a popup window. |
setRenderAsButton | public void setRenderAsButton(boolean renderAsButton)(Code) | | When set to true, this tag will render the <button> control in the HTML markup,
rather than the <input type="..."> element. The evaluated content between
the start and end tags will be written out as the content between the rendered
HTML <button> and </button>.
Please note that using an action override and rendering the
markup with a <button> control will not work in Internet Explorer.
Internet Explorer includes the name and value of every <button>
control in the HTML form as parameters in the request query,
regardless of whether the button has been clicked or not.
Parameters: renderAsButton - whether or not to render a <button> rather than an <input> tag. |
setTabindex | public void setTabindex(int tabindex)(Code) | | Sets the tabIndex of the rendered html tag.
Parameters: tabindex - the tab index. |
setTargetScope | public void setTargetScope(String targetScope)(Code) | | Set the target "scope" for the button's action. Multiple active page flows may exist concurrently within named
scopes. This attribute selects which named scope to use. If omitted, the default scope is assumed.
Parameters: targetScope - the name of the target scope in which the associated action's page flow resides. |
setType | public void setType(String type) throws JspException(Code) | | Set the type of the Button (submit, button, or reset).
Parameters: type - the type of the Button. |
setValue | public void setValue(String value) throws JspException(Code) | | Set the value of the Button's text.
Parameters: value - the value of the Button's text. |
|
|