org.apache.myfaces.tobago.taglib.extension
Class MenuRadioExtensionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.myfaces.tobago.taglib.extension.MenuRadioExtensionTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, Tag, AbstractCommandTagDeclaration, TobagoTagDeclaration, HasAction, HasActionListener, HasBinding, HasConverter, HasId, HasIdBindingAndRendered, HasLabel, HasLink, HasOnclick, HasValue, IsDisabled, IsImmediateCommand, IsRendered, IsTransition

public class MenuRadioExtensionTag
extends BodyTagSupport
implements AbstractCommandTagDeclaration, HasIdBindingAndRendered, HasLabel, IsDisabled, HasValue, HasConverter

Renders a submenu with select one items (like a radio button).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Constructor Summary
MenuRadioExtensionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setAction(String action)
          Action to invoke when clicked.
 void setActionListener(String actionListener)
          MethodBinding representing an action listener method that will be notified when this component is activated by the user.
 void setBinding(String binding)
          The value binding expression linking this component to a property in a backing bean.
 void setConverter(String converter)
          An expression that specifies the Converter for this component.
 void setDisabled(String disabled)
          Flag indicating that this element is disabled.
 void setImmediate(String immediate)
          Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.
 void setLabel(String label)
          Text value to display as label.
 void setLink(String navigate)
          Link to an arbitrary URL
 void setOnclick(String onclick)
          Script to be invoked when clicked
 void setRendered(String rendered)
          Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
 void setTransition(String transition)
          Specify, if the command calls an JSF-Action.
 void setValue(String value)
          The current value of this component.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasId
setId
 

Constructor Detail

MenuRadioExtensionTag

public MenuRadioExtensionTag()
Method Detail

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class BodyTagSupport
Throws:
JspException

setAction

public void setAction(String action)
Description copied from interface: HasAction
Action to invoke when clicked. This must be a MethodBinding or a String representing the application action to invoke when this component is activated by the user. The MethodBinding must evaluate to a public method that takes no parameters, and returns a String (the logical outcome) which is passed to the NavigationHandler for this application. The String is directly passed to the Navigationhandler.

Specified by:
setAction in interface HasAction

setActionListener

public void setActionListener(String actionListener)
Description copied from interface: HasActionListener
MethodBinding representing an action listener method that will be notified when this component is activated by the user. The expression must evaluate to a public method that takes an ActionEvent parameter, with a return type of void.

Specified by:
setActionListener in interface HasActionListener

setOnclick

public void setOnclick(String onclick)
Description copied from interface: HasOnclick
Script to be invoked when clicked

Specified by:
setOnclick in interface HasOnclick

setLink

public void setLink(String navigate)
Description copied from interface: HasLink
Link to an arbitrary URL

Specified by:
setLink in interface HasLink

setBinding

public void setBinding(String binding)
                throws JspException
Description copied from interface: HasBinding
The value binding expression linking this component to a property in a backing bean.

Specified by:
setBinding in interface HasBinding
Throws:
JspException

setRendered

public void setRendered(String rendered)
Description copied from interface: IsRendered
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.

Specified by:
setRendered in interface IsRendered

setDisabled

public void setDisabled(String disabled)
Description copied from interface: IsDisabled
Flag indicating that this element is disabled.

Specified by:
setDisabled in interface IsDisabled

setValue

public void setValue(String value)
Description copied from interface: HasValue
The current value of this component.

Specified by:
setValue in interface HasValue

setLabel

public void setLabel(String label)
Description copied from interface: HasLabel
Text value to display as label. If text contains an underscore the next character is used as accesskey.

Specified by:
setLabel in interface HasLabel

setImmediate

public void setImmediate(String immediate)
Description copied from interface: IsImmediateCommand
Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.

Specified by:
setImmediate in interface IsImmediateCommand

setTransition

public void setTransition(String transition)
Description copied from interface: IsTransition
Specify, if the command calls an JSF-Action. Useful to switch off the Double-Submit-Check and Waiting-Behavior.

Specified by:
setTransition in interface IsTransition
Parameters:
transition - Indicates the transition.

setConverter

public void setConverter(String converter)
Description copied from interface: HasConverter
An expression that specifies the Converter for this component. If the value binding expression is a String, the String is used as an ID to look up a Converter. If the value binding expression is a Converter, uses that instance as the converter. The value can either be a static value (ID case only) or an EL expression.

Specified by:
setConverter in interface HasConverter

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class BodyTagSupport


Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.