CPD Results
The following document contains the results of PMD's CPD 4.1.
Duplications
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/component/core/input/CoreSelectManyCheckbox.java | 167 |
| org/apache/myfaces/trinidad/component/core/input/CoreSelectOneRadio.java | 195 |
setProperty(UNSELECTED_LABEL_KEY, (unselectedLabel));
}
/**
* Gets whether the control displays the buttons
* horizontally or vertically.The valid values are "horizontal" and
* "vertical", the default being "vertical".
*
* @return the new layout value
*/
final public String getLayout()
{
return ComponentUtils.resolveString(getProperty(LAYOUT_KEY), "vertical");
}
/**
* Sets whether the control displays the buttons
* horizontally or vertically.The valid values are "horizontal" and
* "vertical", the default being "vertical".
*
* @param layout the new layout value
*/
final public void setLayout(String layout)
{
setProperty(LAYOUT_KEY, (layout));
}
/**
* Gets whether or not the values are passed through to
* the client. When valuePassThru is false
* the value and the options' values
* are converted to indexes before being sent to the client.
* Therefore, when valuePassThru is false,
* there is no need to write your own converter when you are using custom Objects
* as your values and/or options.
* If you need to know the actual values on the client-side, then you can set
* valuePassThru to true. This will pass the values through to the client,
* using your custom converter if it is available; a custom converter is
* needed if you are using custom objects. The default is false.
*
* @return the new valuePassThru value
*/
final public boolean isValuePassThru()
{
return ComponentUtils.resolveBoolean(getProperty(VALUE_PASS_THRU_KEY), false);
}
/**
* Sets whether or not the values are passed through to
* the client. When valuePassThru is false
* the value and the options' values
* are converted to indexes before being sent to the client.
* Therefore, when valuePassThru is false,
* there is no need to write your own converter when you are using custom Objects
* as your values and/or options.
* If you need to know the actual values on the client-side, then you can set
* valuePassThru to true. This will pass the values through to the client,
* using your custom converter if it is available; a custom converter is
* needed if you are using custom objects. The default is false.
*
* @param valuePassThru the new valuePassThru value
*/
final public void setValuePassThru(boolean valuePassThru)
{
setProperty(VALUE_PASS_THRU_KEY, valuePassThru ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is read-only.
*
* @return the new readOnly value
*/
final public boolean isReadOnly()
{
return ComponentUtils.resolveBoolean(getProperty(READ_ONLY_KEY), false);
}
/**
* Sets whether the element is read-only.
*
* @param readOnly the new readOnly value
*/
final public void setReadOnly(boolean readOnly)
{
setProperty(READ_ONLY_KEY, readOnly ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is disabled.
*
* @return the new disabled value
*/
final public boolean isDisabled()
{
return ComponentUtils.resolveBoolean(getProperty(DISABLED_KEY), false);
}
/**
* Sets whether the element is disabled.
*
* @param disabled the new disabled value
*/
final public void setDisabled(boolean disabled)
{
setProperty(DISABLED_KEY, disabled ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets the label of the bean.
*
* @return the new label value
*/
final public String getLabel()
{
return ComponentUtils.resolveString(getProperty(LABEL_KEY));
}
/**
* Sets the label of the bean.
*
* @param label the new label value
*/
final public void setLabel(String label)
{
setProperty(LABEL_KEY, (label));
}
/**
* Gets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @return the new simple value
*/
final public boolean isSimple()
{
return ComponentUtils.resolveBoolean(getProperty(SIMPLE_KEY), false);
}
/**
* Sets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @param simple the new simple value
*/
final public void setSimple(boolean simple)
{
setProperty(SIMPLE_KEY, simple ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets event handler for when the value is changed.
*
* @return the new onchange value
*/
final public String getOnchange()
{
return ComponentUtils.resolveString(getProperty(ONCHANGE_KEY));
}
/**
* Sets event handler for when the value is changed.
*
* @param onchange the new onchange value
*/
final public void setOnchange(String onchange)
{
setProperty(ONCHANGE_KEY, (onchange));
}
/**
* Gets the CSS styles to use for this component.
*
* @return the new inlineStyle value
*/
final public String getInlineStyle()
{
return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
}
/**
* Sets the CSS styles to use for this component.
*
* @param inlineStyle the new inlineStyle value
*/
final public void setInlineStyle(String inlineStyle)
{
setProperty(INLINE_STYLE_KEY, (inlineStyle));
}
/**
* Gets a CSS style class to use for this component.
*
* @return the new styleClass value
*/
final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
}
/**
* Sets a CSS style class to use for this component.
*
* @param styleClass the new styleClass value
*/
final public void setStyleClass(String styleClass)
{
setProperty(STYLE_CLASS_KEY, (styleClass));
}
/**
* Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @return the new shortDesc value
*/
final public String getShortDesc()
{
return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
}
/**
* Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @param shortDesc the new shortDesc value
*/
final public void setShortDesc(String shortDesc)
{
setProperty(SHORT_DESC_KEY, (shortDesc));
}
/**
* Gets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @return the new partialTriggers value
*/
final public String[] getPartialTriggers()
{
return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
}
/**
* Sets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @param partialTriggers the new partialTriggers value
*/
final public void setPartialTriggers(String[] partialTriggers)
{
setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
}
/**
* Gets an onclick Javascript handler.
*
* @return the new onclick value
*/
final public String getOnclick()
{
return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
}
/**
* Sets an onclick Javascript handler.
*
* @param onclick the new onclick value
*/
final public void setOnclick(String onclick)
{
setProperty(ONCLICK_KEY, (onclick));
}
/**
* Gets an ondblclick Javascript handler.
*
* @return the new ondblclick value
*/
final public String getOndblclick()
{
return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
}
/**
* Sets an ondblclick Javascript handler.
*
* @param ondblclick the new ondblclick value
*/
final public void setOndblclick(String ondblclick)
{
setProperty(ONDBLCLICK_KEY, (ondblclick));
}
/**
* Gets an onmousedown Javascript handler.
*
* @return the new onmousedown value
*/
final public String getOnmousedown()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
}
/**
* Sets an onmousedown Javascript handler.
*
* @param onmousedown the new onmousedown value
*/
final public void setOnmousedown(String onmousedown)
{
setProperty(ONMOUSEDOWN_KEY, (onmousedown));
}
/**
* Gets an onmouseup Javascript handler.
*
* @return the new onmouseup value
*/
final public String getOnmouseup()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
}
/**
* Sets an onmouseup Javascript handler.
*
* @param onmouseup the new onmouseup value
*/
final public void setOnmouseup(String onmouseup)
{
setProperty(ONMOUSEUP_KEY, (onmouseup));
}
/**
* Gets an onmouseover Javascript handler.
*
* @return the new onmouseover value
*/
final public String getOnmouseover()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
}
/**
* Sets an onmouseover Javascript handler.
*
* @param onmouseover the new onmouseover value
*/
final public void setOnmouseover(String onmouseover)
{
setProperty(ONMOUSEOVER_KEY, (onmouseover));
}
/**
* Gets an onmousemove Javascript handler.
*
* @return the new onmousemove value
*/
final public String getOnmousemove()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
}
/**
* Sets an onmousemove Javascript handler.
*
* @param onmousemove the new onmousemove value
*/
final public void setOnmousemove(String onmousemove)
{
setProperty(ONMOUSEMOVE_KEY, (onmousemove));
}
/**
* Gets an onmouseout Javascript handler.
*
* @return the new onmouseout value
*/
final public String getOnmouseout()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
}
/**
* Sets an onmouseout Javascript handler.
*
* @param onmouseout the new onmouseout value
*/
final public void setOnmouseout(String onmouseout)
{
setProperty(ONMOUSEOUT_KEY, (onmouseout));
}
/**
* Gets an onkeypress Javascript handler.
*
* @return the new onkeypress value
*/
final public String getOnkeypress()
{
return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
}
/**
* Sets an onkeypress Javascript handler.
*
* @param onkeypress the new onkeypress value
*/
final public void setOnkeypress(String onkeypress)
{
setProperty(ONKEYPRESS_KEY, (onkeypress));
}
/**
* Gets an onkeydown Javascript handler.
*
* @return the new onkeydown value
*/
final public String getOnkeydown()
{
return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
}
/**
* Sets an onkeydown Javascript handler.
*
* @param onkeydown the new onkeydown value
*/
final public void setOnkeydown(String onkeydown)
{
setProperty(ONKEYDOWN_KEY, (onkeydown));
}
/**
* Gets an onkeyup Javascript handler.
*
* @return the new onkeyup value
*/
final public String getOnkeyup()
{
return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
}
/**
* Sets an onkeyup Javascript handler.
*
* @param onkeyup the new onkeyup value
*/
final public void setOnkeyup(String onkeyup)
{
setProperty(ONKEYUP_KEY, (onkeyup));
}
/**
* Gets the event handler for the component losing the focus.
*
* @return the new onblur value
*/
final public String getOnblur()
{
return ComponentUtils.resolveString(getProperty(ONBLUR_KEY));
}
/**
* Sets the event handler for the component losing the focus.
*
* @param onblur the new onblur value
*/
final public void setOnblur(String onblur)
{
setProperty(ONBLUR_KEY, (onblur));
}
/**
* Gets the event handler for the component gaining the focus.
*
* @return the new onfocus value
*/
final public String getOnfocus()
{
return ComponentUtils.resolveString(getProperty(ONFOCUS_KEY));
}
/**
* Sets the event handler for the component gaining the focus.
*
* @param onfocus the new onfocus value
*/
final public void setOnfocus(String onfocus)
{
setProperty(ONFOCUS_KEY, (onfocus));
}
/**
* Gets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @return the new showRequired value
*/
final public boolean isShowRequired()
{
return ComponentUtils.resolveBoolean(getProperty(SHOW_REQUIRED_KEY), false);
}
/**
* Sets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @param showRequired the new showRequired value
*/
final public void setShowRequired(boolean showRequired)
{
setProperty(SHOW_REQUIRED_KEY, showRequired ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @return the new accessKey value
*/
final public char getAccessKey()
{
return ComponentUtils.resolveCharacter((Character)getProperty(ACCESS_KEY_KEY));
}
/**
* Sets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @param accessKey the new accessKey value
*/
final public void setAccessKey(char accessKey)
{
setProperty(ACCESS_KEY_KEY, Character.valueOf(accessKey));
}
/**
* Gets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @return the new autoSubmit value
*/
final public boolean isAutoSubmit()
{
return ComponentUtils.resolveBoolean(getProperty(AUTO_SUBMIT_KEY), false);
}
/**
* Sets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @param autoSubmit the new autoSubmit value
*/
final public void setAutoSubmit(boolean autoSubmit)
{
setProperty(AUTO_SUBMIT_KEY, autoSubmit ? Boolean.TRUE : Boolean.FALSE);
}
@Override
public String getFamily()
{
return COMPONENT_FAMILY;
}
@Override
protected FacesBean.Type getBeanType()
{
return TYPE;
}
/**
* Construct an instance of the CoreSelectOneRadio.
*/
protected CoreSelectOneRadio(
| |
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/component/core/input/CoreSelectManyShuttle.java | 340 |
| org/apache/myfaces/trinidad/component/core/input/CoreSelectOrderShuttle.java | 208 |
setProperty(REORDER_ONLY_KEY, reorderOnly ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether or not the values are passed through to
* the client. When valuePassThru is false
* the value and the options' values
* are converted to indexes before being sent to the client.
* Therefore, when valuePassThru is false,
* there is no need to write your own converter when you are using custom Objects
* as your values and/or options.
* If you need to know the actual values on the client-side, then you can set
* valuePassThru to true. This will pass the values through to the client,
* using your custom converter if it is available; a custom converter is
* needed if you are using custom objects. The default is false.
*
* @return the new valuePassThru value
*/
final public boolean isValuePassThru()
{
return ComponentUtils.resolveBoolean(getProperty(VALUE_PASS_THRU_KEY), false);
}
/**
* Sets whether or not the values are passed through to
* the client. When valuePassThru is false
* the value and the options' values
* are converted to indexes before being sent to the client.
* Therefore, when valuePassThru is false,
* there is no need to write your own converter when you are using custom Objects
* as your values and/or options.
* If you need to know the actual values on the client-side, then you can set
* valuePassThru to true. This will pass the values through to the client,
* using your custom converter if it is available; a custom converter is
* needed if you are using custom objects. The default is false.
*
* @param valuePassThru the new valuePassThru value
*/
final public void setValuePassThru(boolean valuePassThru)
{
setProperty(VALUE_PASS_THRU_KEY, valuePassThru ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is read-only.
*
* @return the new readOnly value
*/
final public boolean isReadOnly()
{
return ComponentUtils.resolveBoolean(getProperty(READ_ONLY_KEY), false);
}
/**
* Sets whether the element is read-only.
*
* @param readOnly the new readOnly value
*/
final public void setReadOnly(boolean readOnly)
{
setProperty(READ_ONLY_KEY, readOnly ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is disabled.
*
* @return the new disabled value
*/
final public boolean isDisabled()
{
return ComponentUtils.resolveBoolean(getProperty(DISABLED_KEY), false);
}
/**
* Sets whether the element is disabled.
*
* @param disabled the new disabled value
*/
final public void setDisabled(boolean disabled)
{
setProperty(DISABLED_KEY, disabled ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets event handler for when the value is changed.
*
* @return the new onchange value
*/
final public String getOnchange()
{
return ComponentUtils.resolveString(getProperty(ONCHANGE_KEY));
}
/**
* Sets event handler for when the value is changed.
*
* @param onchange the new onchange value
*/
final public void setOnchange(String onchange)
{
setProperty(ONCHANGE_KEY, (onchange));
}
/**
* Gets the CSS styles to use for this component.
*
* @return the new inlineStyle value
*/
final public String getInlineStyle()
{
return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
}
/**
* Sets the CSS styles to use for this component.
*
* @param inlineStyle the new inlineStyle value
*/
final public void setInlineStyle(String inlineStyle)
{
setProperty(INLINE_STYLE_KEY, (inlineStyle));
}
/**
* Gets a CSS style class to use for this component.
*
* @return the new styleClass value
*/
final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
}
/**
* Sets a CSS style class to use for this component.
*
* @param styleClass the new styleClass value
*/
final public void setStyleClass(String styleClass)
{
setProperty(STYLE_CLASS_KEY, (styleClass));
}
/**
* Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @return the new shortDesc value
*/
final public String getShortDesc()
{
return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
}
/**
* Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @param shortDesc the new shortDesc value
*/
final public void setShortDesc(String shortDesc)
{
setProperty(SHORT_DESC_KEY, (shortDesc));
}
/**
* Gets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @return the new partialTriggers value
*/
final public String[] getPartialTriggers()
{
return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
}
/**
* Sets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @param partialTriggers the new partialTriggers value
*/
final public void setPartialTriggers(String[] partialTriggers)
{
setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
}
/**
* Gets an onclick Javascript handler.
*
* @return the new onclick value
*/
final public String getOnclick()
{
return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
}
/**
* Sets an onclick Javascript handler.
*
* @param onclick the new onclick value
*/
final public void setOnclick(String onclick)
{
setProperty(ONCLICK_KEY, (onclick));
}
/**
* Gets an ondblclick Javascript handler.
*
* @return the new ondblclick value
*/
final public String getOndblclick()
{
return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
}
/**
* Sets an ondblclick Javascript handler.
*
* @param ondblclick the new ondblclick value
*/
final public void setOndblclick(String ondblclick)
{
setProperty(ONDBLCLICK_KEY, (ondblclick));
}
/**
* Gets an onmousedown Javascript handler.
*
* @return the new onmousedown value
*/
final public String getOnmousedown()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
}
/**
* Sets an onmousedown Javascript handler.
*
* @param onmousedown the new onmousedown value
*/
final public void setOnmousedown(String onmousedown)
{
setProperty(ONMOUSEDOWN_KEY, (onmousedown));
}
/**
* Gets an onmouseup Javascript handler.
*
* @return the new onmouseup value
*/
final public String getOnmouseup()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
}
/**
* Sets an onmouseup Javascript handler.
*
* @param onmouseup the new onmouseup value
*/
final public void setOnmouseup(String onmouseup)
{
setProperty(ONMOUSEUP_KEY, (onmouseup));
}
/**
* Gets an onmouseover Javascript handler.
*
* @return the new onmouseover value
*/
final public String getOnmouseover()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
}
/**
* Sets an onmouseover Javascript handler.
*
* @param onmouseover the new onmouseover value
*/
final public void setOnmouseover(String onmouseover)
{
setProperty(ONMOUSEOVER_KEY, (onmouseover));
}
/**
* Gets an onmousemove Javascript handler.
*
* @return the new onmousemove value
*/
final public String getOnmousemove()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
}
/**
* Sets an onmousemove Javascript handler.
*
* @param onmousemove the new onmousemove value
*/
final public void setOnmousemove(String onmousemove)
{
setProperty(ONMOUSEMOVE_KEY, (onmousemove));
}
/**
* Gets an onmouseout Javascript handler.
*
* @return the new onmouseout value
*/
final public String getOnmouseout()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
}
/**
* Sets an onmouseout Javascript handler.
*
* @param onmouseout the new onmouseout value
*/
final public void setOnmouseout(String onmouseout)
{
setProperty(ONMOUSEOUT_KEY, (onmouseout));
}
/**
* Gets an onkeypress Javascript handler.
*
* @return the new onkeypress value
*/
final public String getOnkeypress()
{
return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
}
/**
* Sets an onkeypress Javascript handler.
*
* @param onkeypress the new onkeypress value
*/
final public void setOnkeypress(String onkeypress)
{
setProperty(ONKEYPRESS_KEY, (onkeypress));
}
/**
* Gets an onkeydown Javascript handler.
*
* @return the new onkeydown value
*/
final public String getOnkeydown()
{
return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
}
/**
* Sets an onkeydown Javascript handler.
*
* @param onkeydown the new onkeydown value
*/
final public void setOnkeydown(String onkeydown)
{
setProperty(ONKEYDOWN_KEY, (onkeydown));
}
/**
* Gets an onkeyup Javascript handler.
*
* @return the new onkeyup value
*/
final public String getOnkeyup()
{
return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
}
/**
* Sets an onkeyup Javascript handler.
*
* @param onkeyup the new onkeyup value
*/
final public void setOnkeyup(String onkeyup)
{
setProperty(ONKEYUP_KEY, (onkeyup));
}
/**
* Gets the event handler for the component losing the focus.
*
* @return the new onblur value
*/
final public String getOnblur()
{
return ComponentUtils.resolveString(getProperty(ONBLUR_KEY));
}
/**
* Sets the event handler for the component losing the focus.
*
* @param onblur the new onblur value
*/
final public void setOnblur(String onblur)
{
setProperty(ONBLUR_KEY, (onblur));
}
/**
* Gets the event handler for the component gaining the focus.
*
* @return the new onfocus value
*/
final public String getOnfocus()
{
return ComponentUtils.resolveString(getProperty(ONFOCUS_KEY));
}
/**
* Sets the event handler for the component gaining the focus.
*
* @param onfocus the new onfocus value
*/
final public void setOnfocus(String onfocus)
{
setProperty(ONFOCUS_KEY, (onfocus));
}
/**
* Gets the display size(number of items) of the lists. The size
* specified must be between 10 and 20 items. If the attribute is not
* set or has a value less than 10, the size would have a default or
* minimum value of 10. If the attribute value specified is more than
* 20 items, the size would have the maximum value of 20.
*
* @return the new size value
*/
final public int getSize()
{
return ComponentUtils.resolveInteger(getProperty(SIZE_KEY));
}
/**
* Sets the display size(number of items) of the lists. The size
* specified must be between 10 and 20 items. If the attribute is not
* set or has a value less than 10, the size would have a default or
* minimum value of 10. If the attribute value specified is more than
* 20 items, the size would have the maximum value of 20.
*
* @param size the new size value
*/
final public void setSize(int size)
{
setProperty(SIZE_KEY, Integer.valueOf(size));
}
/**
* Gets the header of the leading list of the shuttle.
*
* @return the new leadingHeader value
*/
final public String getLeadingHeader()
{
return ComponentUtils.resolveString(getProperty(LEADING_HEADER_KEY));
}
/**
* Sets the header of the leading list of the shuttle.
*
* @param leadingHeader the new leadingHeader value
*/
final public void setLeadingHeader(String leadingHeader)
{
setProperty(LEADING_HEADER_KEY, (leadingHeader));
}
/**
* Gets the header of the trailing list of the shuttle.
*
* @return the new trailingHeader value
*/
final public String getTrailingHeader()
{
return ComponentUtils.resolveString(getProperty(TRAILING_HEADER_KEY));
}
/**
* Sets the header of the trailing list of the shuttle.
*
* @param trailingHeader the new trailingHeader value
*/
final public void setTrailingHeader(String trailingHeader)
{
setProperty(TRAILING_HEADER_KEY, (trailingHeader));
}
/**
* Gets whether or not the leading list has an area to display descriptions.
*
* @return the new leadingDescShown value
*/
final public boolean isLeadingDescShown()
{
return ComponentUtils.resolveBoolean(getProperty(LEADING_DESC_SHOWN_KEY), false);
}
/**
* Sets whether or not the leading list has an area to display descriptions.
*
* @param leadingDescShown the new leadingDescShown value
*/
final public void setLeadingDescShown(boolean leadingDescShown)
{
setProperty(LEADING_DESC_SHOWN_KEY, leadingDescShown ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether or not the trailing list has an area to display descriptions.
*
* @return the new trailingDescShown value
*/
final public boolean isTrailingDescShown()
{
return ComponentUtils.resolveBoolean(getProperty(TRAILING_DESC_SHOWN_KEY), false);
}
/**
* Sets whether or not the trailing list has an area to display descriptions.
*
* @param trailingDescShown the new trailingDescShown value
*/
final public void setTrailingDescShown(boolean trailingDescShown)
{
setProperty(TRAILING_DESC_SHOWN_KEY, trailingDescShown ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets the label for the shuttle that is used to identify the component only when displaying error messages. The label specified does not otherwise appear on the page.
*
* @return the new label value
*/
final public String getLabel()
{
return ComponentUtils.resolveString(getProperty(LABEL_KEY));
}
/**
* Sets the label for the shuttle that is used to identify the component only when displaying error messages. The label specified does not otherwise appear on the page.
*
* @param label the new label value
*/
final public void setLabel(String label)
{
setProperty(LABEL_KEY, (label));
}
@Override
public String getFamily()
{
return COMPONENT_FAMILY;
}
@Override
protected FacesBean.Type getBeanType()
{
return TYPE;
}
/**
* Construct an instance of the CoreSelectOrderShuttle.
*/
protected CoreSelectOrderShuttle(
| |
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/component/core/input/CoreSelectManyCheckbox.java | 191 |
| org/apache/myfaces/trinidad/component/core/input/CoreSelectManyListbox.java | 186 |
setProperty(UNSELECTED_LABEL_KEY, (unselectedLabel));
}
/**
* Gets whether or not the values are passed through to
* the client. When valuePassThru is false
* the value and the options' values
* are converted to indexes before being sent to the client.
* Therefore, when valuePassThru is false,
* there is no need to write your own converter when you are using custom Objects
* as your values and/or options.
* If you need to know the actual values on the client-side, then you can set
* valuePassThru to true. This will pass the values through to the client,
* using your custom converter if it is available; a custom converter is
* needed if you are using custom objects. The default is false.
*
* @return the new valuePassThru value
*/
final public boolean isValuePassThru()
{
return ComponentUtils.resolveBoolean(getProperty(VALUE_PASS_THRU_KEY), false);
}
/**
* Sets whether or not the values are passed through to
* the client. When valuePassThru is false
* the value and the options' values
* are converted to indexes before being sent to the client.
* Therefore, when valuePassThru is false,
* there is no need to write your own converter when you are using custom Objects
* as your values and/or options.
* If you need to know the actual values on the client-side, then you can set
* valuePassThru to true. This will pass the values through to the client,
* using your custom converter if it is available; a custom converter is
* needed if you are using custom objects. The default is false.
*
* @param valuePassThru the new valuePassThru value
*/
final public void setValuePassThru(boolean valuePassThru)
{
setProperty(VALUE_PASS_THRU_KEY, valuePassThru ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is read-only.
*
* @return the new readOnly value
*/
final public boolean isReadOnly()
{
return ComponentUtils.resolveBoolean(getProperty(READ_ONLY_KEY), false);
}
/**
* Sets whether the element is read-only.
*
* @param readOnly the new readOnly value
*/
final public void setReadOnly(boolean readOnly)
{
setProperty(READ_ONLY_KEY, readOnly ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is disabled.
*
* @return the new disabled value
*/
final public boolean isDisabled()
{
return ComponentUtils.resolveBoolean(getProperty(DISABLED_KEY), false);
}
/**
* Sets whether the element is disabled.
*
* @param disabled the new disabled value
*/
final public void setDisabled(boolean disabled)
{
setProperty(DISABLED_KEY, disabled ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets the label of the bean.
*
* @return the new label value
*/
final public String getLabel()
{
return ComponentUtils.resolveString(getProperty(LABEL_KEY));
}
/**
* Sets the label of the bean.
*
* @param label the new label value
*/
final public void setLabel(String label)
{
setProperty(LABEL_KEY, (label));
}
/**
* Gets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @return the new simple value
*/
final public boolean isSimple()
{
return ComponentUtils.resolveBoolean(getProperty(SIMPLE_KEY), false);
}
/**
* Sets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @param simple the new simple value
*/
final public void setSimple(boolean simple)
{
setProperty(SIMPLE_KEY, simple ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets event handler for when the value is changed.
*
* @return the new onchange value
*/
final public String getOnchange()
{
return ComponentUtils.resolveString(getProperty(ONCHANGE_KEY));
}
/**
* Sets event handler for when the value is changed.
*
* @param onchange the new onchange value
*/
final public void setOnchange(String onchange)
{
setProperty(ONCHANGE_KEY, (onchange));
}
/**
* Gets the CSS styles to use for this component.
*
* @return the new inlineStyle value
*/
final public String getInlineStyle()
{
return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
}
/**
* Sets the CSS styles to use for this component.
*
* @param inlineStyle the new inlineStyle value
*/
final public void setInlineStyle(String inlineStyle)
{
setProperty(INLINE_STYLE_KEY, (inlineStyle));
}
/**
* Gets a CSS style class to use for this component.
*
* @return the new styleClass value
*/
final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
}
/**
* Sets a CSS style class to use for this component.
*
* @param styleClass the new styleClass value
*/
final public void setStyleClass(String styleClass)
{
setProperty(STYLE_CLASS_KEY, (styleClass));
}
/**
* Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @return the new shortDesc value
*/
final public String getShortDesc()
{
return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
}
/**
* Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @param shortDesc the new shortDesc value
*/
final public void setShortDesc(String shortDesc)
{
setProperty(SHORT_DESC_KEY, (shortDesc));
}
/**
* Gets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @return the new partialTriggers value
*/
final public String[] getPartialTriggers()
{
return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
}
/**
* Sets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @param partialTriggers the new partialTriggers value
*/
final public void setPartialTriggers(String[] partialTriggers)
{
setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
}
/**
* Gets an onclick Javascript handler.
*
* @return the new onclick value
*/
final public String getOnclick()
{
return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
}
/**
* Sets an onclick Javascript handler.
*
* @param onclick the new onclick value
*/
final public void setOnclick(String onclick)
{
setProperty(ONCLICK_KEY, (onclick));
}
/**
* Gets an ondblclick Javascript handler.
*
* @return the new ondblclick value
*/
final public String getOndblclick()
{
return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
}
/**
* Sets an ondblclick Javascript handler.
*
* @param ondblclick the new ondblclick value
*/
final public void setOndblclick(String ondblclick)
{
setProperty(ONDBLCLICK_KEY, (ondblclick));
}
/**
* Gets an onmousedown Javascript handler.
*
* @return the new onmousedown value
*/
final public String getOnmousedown()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
}
/**
* Sets an onmousedown Javascript handler.
*
* @param onmousedown the new onmousedown value
*/
final public void setOnmousedown(String onmousedown)
{
setProperty(ONMOUSEDOWN_KEY, (onmousedown));
}
/**
* Gets an onmouseup Javascript handler.
*
* @return the new onmouseup value
*/
final public String getOnmouseup()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
}
/**
* Sets an onmouseup Javascript handler.
*
* @param onmouseup the new onmouseup value
*/
final public void setOnmouseup(String onmouseup)
{
setProperty(ONMOUSEUP_KEY, (onmouseup));
}
/**
* Gets an onmouseover Javascript handler.
*
* @return the new onmouseover value
*/
final public String getOnmouseover()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
}
/**
* Sets an onmouseover Javascript handler.
*
* @param onmouseover the new onmouseover value
*/
final public void setOnmouseover(String onmouseover)
{
setProperty(ONMOUSEOVER_KEY, (onmouseover));
}
/**
* Gets an onmousemove Javascript handler.
*
* @return the new onmousemove value
*/
final public String getOnmousemove()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
}
/**
* Sets an onmousemove Javascript handler.
*
* @param onmousemove the new onmousemove value
*/
final public void setOnmousemove(String onmousemove)
{
setProperty(ONMOUSEMOVE_KEY, (onmousemove));
}
/**
* Gets an onmouseout Javascript handler.
*
* @return the new onmouseout value
*/
final public String getOnmouseout()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
}
/**
* Sets an onmouseout Javascript handler.
*
* @param onmouseout the new onmouseout value
*/
final public void setOnmouseout(String onmouseout)
{
setProperty(ONMOUSEOUT_KEY, (onmouseout));
}
/**
* Gets an onkeypress Javascript handler.
*
* @return the new onkeypress value
*/
final public String getOnkeypress()
{
return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
}
/**
* Sets an onkeypress Javascript handler.
*
* @param onkeypress the new onkeypress value
*/
final public void setOnkeypress(String onkeypress)
{
setProperty(ONKEYPRESS_KEY, (onkeypress));
}
/**
* Gets an onkeydown Javascript handler.
*
* @return the new onkeydown value
*/
final public String getOnkeydown()
{
return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
}
/**
* Sets an onkeydown Javascript handler.
*
* @param onkeydown the new onkeydown value
*/
final public void setOnkeydown(String onkeydown)
{
setProperty(ONKEYDOWN_KEY, (onkeydown));
}
/**
* Gets an onkeyup Javascript handler.
*
* @return the new onkeyup value
*/
final public String getOnkeyup()
{
return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
}
/**
* Sets an onkeyup Javascript handler.
*
* @param onkeyup the new onkeyup value
*/
final public void setOnkeyup(String onkeyup)
{
setProperty(ONKEYUP_KEY, (onkeyup));
}
/**
* Gets the event handler for the component losing the focus.
*
* @return the new onblur value
*/
final public String getOnblur()
{
return ComponentUtils.resolveString(getProperty(ONBLUR_KEY));
}
/**
* Sets the event handler for the component losing the focus.
*
* @param onblur the new onblur value
*/
final public void setOnblur(String onblur)
{
setProperty(ONBLUR_KEY, (onblur));
}
/**
* Gets the event handler for the component gaining the focus.
*
* @return the new onfocus value
*/
final public String getOnfocus()
{
return ComponentUtils.resolveString(getProperty(ONFOCUS_KEY));
}
/**
* Sets the event handler for the component gaining the focus.
*
* @param onfocus the new onfocus value
*/
final public void setOnfocus(String onfocus)
{
setProperty(ONFOCUS_KEY, (onfocus));
}
/**
* Gets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @return the new showRequired value
*/
final public boolean isShowRequired()
{
return ComponentUtils.resolveBoolean(getProperty(SHOW_REQUIRED_KEY), false);
}
/**
* Sets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @param showRequired the new showRequired value
*/
final public void setShowRequired(boolean showRequired)
{
setProperty(SHOW_REQUIRED_KEY, showRequired ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @return the new accessKey value
*/
final public char getAccessKey()
{
return ComponentUtils.resolveCharacter((Character)getProperty(ACCESS_KEY_KEY));
}
/**
* Sets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @param accessKey the new accessKey value
*/
final public void setAccessKey(char accessKey)
{
setProperty(ACCESS_KEY_KEY, Character.valueOf(accessKey));
}
/**
* Gets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @return the new autoSubmit value
*/
final public boolean isAutoSubmit()
{
return ComponentUtils.resolveBoolean(getProperty(AUTO_SUBMIT_KEY), false);
}
/**
* Sets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @param autoSubmit the new autoSubmit value
*/
final public void setAutoSubmit(boolean autoSubmit)
{
setProperty(AUTO_SUBMIT_KEY, autoSubmit ? Boolean.TRUE : Boolean.FALSE);
}
@Override
public String getFamily()
{
return COMPONENT_FAMILY;
}
@Override
protected FacesBean.Type getBeanType()
{
return TYPE;
}
/**
* Construct an instance of the CoreSelectOneChoice.
*/
protected CoreSelectOneChoice(
| |
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/component/core/input/CoreSelectManyCheckbox.java | 231 |
| org/apache/myfaces/trinidad/component/core/input/CoreSelectOneListbox.java | 252 |
setProperty(UNSELECTED_LABEL_KEY, (unselectedLabel));
}
/**
* Gets whether the element is read-only.
*
* @return the new readOnly value
*/
final public boolean isReadOnly()
{
return ComponentUtils.resolveBoolean(getProperty(READ_ONLY_KEY), false);
}
/**
* Sets whether the element is read-only.
*
* @param readOnly the new readOnly value
*/
final public void setReadOnly(boolean readOnly)
{
setProperty(READ_ONLY_KEY, readOnly ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is disabled.
*
* @return the new disabled value
*/
final public boolean isDisabled()
{
return ComponentUtils.resolveBoolean(getProperty(DISABLED_KEY), false);
}
/**
* Sets whether the element is disabled.
*
* @param disabled the new disabled value
*/
final public void setDisabled(boolean disabled)
{
setProperty(DISABLED_KEY, disabled ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets the label of the bean.
*
* @return the new label value
*/
final public String getLabel()
{
return ComponentUtils.resolveString(getProperty(LABEL_KEY));
}
/**
* Sets the label of the bean.
*
* @param label the new label value
*/
final public void setLabel(String label)
{
setProperty(LABEL_KEY, (label));
}
/**
* Gets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @return the new simple value
*/
final public boolean isSimple()
{
return ComponentUtils.resolveBoolean(getProperty(SIMPLE_KEY), false);
}
/**
* Sets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @param simple the new simple value
*/
final public void setSimple(boolean simple)
{
setProperty(SIMPLE_KEY, simple ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets event handler for when the value is changed.
*
* @return the new onchange value
*/
final public String getOnchange()
{
return ComponentUtils.resolveString(getProperty(ONCHANGE_KEY));
}
/**
* Sets event handler for when the value is changed.
*
* @param onchange the new onchange value
*/
final public void setOnchange(String onchange)
{
setProperty(ONCHANGE_KEY, (onchange));
}
/**
* Gets the CSS styles to use for this component.
*
* @return the new inlineStyle value
*/
final public String getInlineStyle()
{
return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
}
/**
* Sets the CSS styles to use for this component.
*
* @param inlineStyle the new inlineStyle value
*/
final public void setInlineStyle(String inlineStyle)
{
setProperty(INLINE_STYLE_KEY, (inlineStyle));
}
/**
* Gets a CSS style class to use for this component.
*
* @return the new styleClass value
*/
final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
}
/**
* Sets a CSS style class to use for this component.
*
* @param styleClass the new styleClass value
*/
final public void setStyleClass(String styleClass)
{
setProperty(STYLE_CLASS_KEY, (styleClass));
}
/**
* Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @return the new shortDesc value
*/
final public String getShortDesc()
{
return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
}
/**
* Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @param shortDesc the new shortDesc value
*/
final public void setShortDesc(String shortDesc)
{
setProperty(SHORT_DESC_KEY, (shortDesc));
}
/**
* Gets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @return the new partialTriggers value
*/
final public String[] getPartialTriggers()
{
return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
}
/**
* Sets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @param partialTriggers the new partialTriggers value
*/
final public void setPartialTriggers(String[] partialTriggers)
{
setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
}
/**
* Gets an onclick Javascript handler.
*
* @return the new onclick value
*/
final public String getOnclick()
{
return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
}
/**
* Sets an onclick Javascript handler.
*
* @param onclick the new onclick value
*/
final public void setOnclick(String onclick)
{
setProperty(ONCLICK_KEY, (onclick));
}
/**
* Gets an ondblclick Javascript handler.
*
* @return the new ondblclick value
*/
final public String getOndblclick()
{
return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
}
/**
* Sets an ondblclick Javascript handler.
*
* @param ondblclick the new ondblclick value
*/
final public void setOndblclick(String ondblclick)
{
setProperty(ONDBLCLICK_KEY, (ondblclick));
}
/**
* Gets an onmousedown Javascript handler.
*
* @return the new onmousedown value
*/
final public String getOnmousedown()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
}
/**
* Sets an onmousedown Javascript handler.
*
* @param onmousedown the new onmousedown value
*/
final public void setOnmousedown(String onmousedown)
{
setProperty(ONMOUSEDOWN_KEY, (onmousedown));
}
/**
* Gets an onmouseup Javascript handler.
*
* @return the new onmouseup value
*/
final public String getOnmouseup()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
}
/**
* Sets an onmouseup Javascript handler.
*
* @param onmouseup the new onmouseup value
*/
final public void setOnmouseup(String onmouseup)
{
setProperty(ONMOUSEUP_KEY, (onmouseup));
}
/**
* Gets an onmouseover Javascript handler.
*
* @return the new onmouseover value
*/
final public String getOnmouseover()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
}
/**
* Sets an onmouseover Javascript handler.
*
* @param onmouseover the new onmouseover value
*/
final public void setOnmouseover(String onmouseover)
{
setProperty(ONMOUSEOVER_KEY, (onmouseover));
}
/**
* Gets an onmousemove Javascript handler.
*
* @return the new onmousemove value
*/
final public String getOnmousemove()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
}
/**
* Sets an onmousemove Javascript handler.
*
* @param onmousemove the new onmousemove value
*/
final public void setOnmousemove(String onmousemove)
{
setProperty(ONMOUSEMOVE_KEY, (onmousemove));
}
/**
* Gets an onmouseout Javascript handler.
*
* @return the new onmouseout value
*/
final public String getOnmouseout()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
}
/**
* Sets an onmouseout Javascript handler.
*
* @param onmouseout the new onmouseout value
*/
final public void setOnmouseout(String onmouseout)
{
setProperty(ONMOUSEOUT_KEY, (onmouseout));
}
/**
* Gets an onkeypress Javascript handler.
*
* @return the new onkeypress value
*/
final public String getOnkeypress()
{
return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
}
/**
* Sets an onkeypress Javascript handler.
*
* @param onkeypress the new onkeypress value
*/
final public void setOnkeypress(String onkeypress)
{
setProperty(ONKEYPRESS_KEY, (onkeypress));
}
/**
* Gets an onkeydown Javascript handler.
*
* @return the new onkeydown value
*/
final public String getOnkeydown()
{
return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
}
/**
* Sets an onkeydown Javascript handler.
*
* @param onkeydown the new onkeydown value
*/
final public void setOnkeydown(String onkeydown)
{
setProperty(ONKEYDOWN_KEY, (onkeydown));
}
/**
* Gets an onkeyup Javascript handler.
*
* @return the new onkeyup value
*/
final public String getOnkeyup()
{
return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
}
/**
* Sets an onkeyup Javascript handler.
*
* @param onkeyup the new onkeyup value
*/
final public void setOnkeyup(String onkeyup)
{
setProperty(ONKEYUP_KEY, (onkeyup));
}
/**
* Gets the event handler for the component losing the focus.
*
* @return the new onblur value
*/
final public String getOnblur()
{
return ComponentUtils.resolveString(getProperty(ONBLUR_KEY));
}
/**
* Sets the event handler for the component losing the focus.
*
* @param onblur the new onblur value
*/
final public void setOnblur(String onblur)
{
setProperty(ONBLUR_KEY, (onblur));
}
/**
* Gets the event handler for the component gaining the focus.
*
* @return the new onfocus value
*/
final public String getOnfocus()
{
return ComponentUtils.resolveString(getProperty(ONFOCUS_KEY));
}
/**
* Sets the event handler for the component gaining the focus.
*
* @param onfocus the new onfocus value
*/
final public void setOnfocus(String onfocus)
{
setProperty(ONFOCUS_KEY, (onfocus));
}
/**
* Gets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @return the new showRequired value
*/
final public boolean isShowRequired()
{
return ComponentUtils.resolveBoolean(getProperty(SHOW_REQUIRED_KEY), false);
}
/**
* Sets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @param showRequired the new showRequired value
*/
final public void setShowRequired(boolean showRequired)
{
setProperty(SHOW_REQUIRED_KEY, showRequired ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @return the new accessKey value
*/
final public char getAccessKey()
{
return ComponentUtils.resolveCharacter((Character)getProperty(ACCESS_KEY_KEY));
}
/**
* Sets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @param accessKey the new accessKey value
*/
final public void setAccessKey(char accessKey)
{
setProperty(ACCESS_KEY_KEY, Character.valueOf(accessKey));
}
/**
* Gets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @return the new autoSubmit value
*/
final public boolean isAutoSubmit()
{
return ComponentUtils.resolveBoolean(getProperty(AUTO_SUBMIT_KEY), false);
}
/**
* Sets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @param autoSubmit the new autoSubmit value
*/
final public void setAutoSubmit(boolean autoSubmit)
{
setProperty(AUTO_SUBMIT_KEY, autoSubmit ? Boolean.TRUE : Boolean.FALSE);
}
@Override
public String getFamily()
{
return COMPONENT_FAMILY;
}
@Override
protected FacesBean.Type getBeanType()
{
return TYPE;
}
/**
* Construct an instance of the CoreSelectOneListbox.
*/
protected CoreSelectOneListbox(
| |
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/model/ChildPropertyMenuModel.java | 119 |
| org/apache/myfaces/trinidad/model/ChildPropertyTreeModel.java | 120 |
public ChildPropertyTreeModel()
{
Node root = new Node(null);
_path.add(root);
}
/**
* Gets the rowKey of the current row.
*/
@Override
public Object getRowKey()
{
final int sz = _path.size() - 1;
Object lastRowkey = _getRowKey();
if ((sz == 0) && (lastRowkey == null))
return null; // root collection
// have to clone the path here. otherwise, we have to say that
// this tree model cannot be mutated while accessing the path
// returned by this method.
List<Object> path = new ArrayList<Object>(sz+1);
if (sz > 0)
{
for(int i=0; i<sz; i++)
{
Node node = _getNode(i);
path.add(node.childModel.getRowKey());
}
}
path.add(lastRowkey);
return path;
}
/**
* Selects a new current row. The row that matches the given rowKey
* is made current.
* @param rowKey use null to access the root collection
*/
@SuppressWarnings("unchecked")
@Override
public void setRowKey(Object rowKey)
{
Node root = _getNode(0);
_path.clear();
_path.add(root);
List<Object> path = (List<Object>) rowKey;
if ((path == null) || (path.size() == 0))
{
setRowIndex(-1);
return;
}
int lastIndex = path.size() - 1;
for(int i=0; i<lastIndex; i++)
{
Object pathKey = path.get(i);
_setRowKey(pathKey);
enterContainer();
}
_setRowKey(path.get(lastIndex));
}
@SuppressWarnings("unchecked")
@Override
public Object getContainerRowKey(Object childKey)
{
List<Object> path = (List<Object>) childKey;
if ((path == null) || (path.size() <= 1))
return null;
// Make a copy of the sublist - subList does not return
// a serializable object
return new ArrayList<Object>(path.subList(0, path.size() - 1));
}
@Override
public int getRowCount()
{
return _getModel().getRowCount();
}
@Override
public Object getRowData()
{
return _getModel().getRowData();
}
@Override
public boolean isRowAvailable()
{
return _getModel().isRowAvailable();
}
@Override
public boolean isContainer()
{
Object rowData = getRowData();
Object value = getChildData(rowData);
if (value != null)
{
if (value instanceof Collection<?>)
{
return !((Collection<?>)value).isEmpty();
}
else if (value.getClass().isArray())
{
return Array.getLength(value) > 0;
}
else if (value instanceof DataModel)
{
return ((DataModel)value).getRowCount() > 0;
}
}
return value != null;
}
@Override
public void enterContainer()
{
Object rowData = getRowData();
if (rowData == null)
throw new IllegalStateException(_LOG.getMessage(
"NULL_ROWDATA"));
Node node = new Node(rowData);
_path.add(node);
}
@Override
public void exitContainer()
{
int sz = _path.size();
if (sz > 1)
_path.remove(sz - 1);
else
throw new IllegalStateException(_LOG.getMessage(
"CANNOT_EXIT_ROOT_CONTAINER"));
}
/**
* Gets the instance being wrapped by this TreeModel.
*/
@Override
public Object getWrappedData()
{
return _wrappedData;
}
/**
* Sets the instance being wrapped by this TreeModel.
* Calling this method sets the path to empty.
*/
@Override
public void setWrappedData(Object data)
{
Node root = _getNode(0);
root.childModel = ModelUtils.toCollectionModel(data);
setRowKey(null);
_wrappedData = data;
}
/**
* Gets the property name used to fetch the children.
*/
public final String getChildProperty()
{
return _childProperty;
}
/**
* Sets the property name used to fetch the children.
*/
public final void setChildProperty(String childProperty)
{
_childProperty = childProperty;
}
@Override
public int getRowIndex()
{
return _getModel().getRowIndex();
}
@Override
public void setRowIndex(int rowIndex)
{
_getModel().setRowIndex(rowIndex);
}
@Override
public boolean isSortable(String property)
{
return _getModel().isSortable(property);
}
@Override
public List<SortCriterion> getSortCriteria()
{
return _getModel().getSortCriteria();
}
@Override
public void setSortCriteria(List<SortCriterion> criteria)
{
_getModel().setSortCriteria(criteria);
}
/**
* Gets the child data for a node. This child data will be
* converted into a CollectionModel by calling
* {@link #createChildModel}.
* @param parentData the node to get the child data from
* @return the List or array that is the child data.
* must return null for a leaf node.
*/
protected Object getChildData(Object parentData)
{
String prop = getChildProperty();
if (prop == null)
return null;
return SortableModel.__resolveProperty(parentData, prop);
}
/**
* Converts childData into a CollectionModel.
* This method calls {@link ModelUtils#toCollectionModel}
* @param childData the data to convert. This can be a List or array.
*/
protected CollectionModel createChildModel(Object childData)
{
CollectionModel model = ModelUtils.toCollectionModel(childData);
model.setRowIndex(-1);
return model;
}
private Object _getRowKey()
{
return _getModel().getRowKey();
}
private void _setRowKey(Object key)
{
_getModel().setRowKey(key);
}
private Node _getCurrentNode()
{
return _getNode(_path.size() - 1);
}
private Node _getNode(int index)
{
return _path.get(index);
}
private CollectionModel _getModel()
{
Node node = _getCurrentNode();
CollectionModel model = node.childModel;
if (model == null)
{
Object value = getChildData(node.parentData);
model = createChildModel(value);
node.childModel = model;
}
return model;
}
| |
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/component/core/input/CoreInputListOfValues.java | 236 |
| org/apache/myfaces/trinidad/component/core/input/CoreSelectOneListbox.java | 252 |
setProperty(UNSELECTED_LABEL_KEY, (unselectedLabel));
}
/**
* Gets whether the element is read-only.
*
* @return the new readOnly value
*/
final public boolean isReadOnly()
{
return ComponentUtils.resolveBoolean(getProperty(READ_ONLY_KEY), false);
}
/**
* Sets whether the element is read-only.
*
* @param readOnly the new readOnly value
*/
final public void setReadOnly(boolean readOnly)
{
setProperty(READ_ONLY_KEY, readOnly ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is disabled.
*
* @return the new disabled value
*/
final public boolean isDisabled()
{
return ComponentUtils.resolveBoolean(getProperty(DISABLED_KEY), false);
}
/**
* Sets whether the element is disabled.
*
* @param disabled the new disabled value
*/
final public void setDisabled(boolean disabled)
{
setProperty(DISABLED_KEY, disabled ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets the label of the bean.
*
* @return the new label value
*/
final public String getLabel()
{
return ComponentUtils.resolveString(getProperty(LABEL_KEY));
}
/**
* Sets the label of the bean.
*
* @param label the new label value
*/
final public void setLabel(String label)
{
setProperty(LABEL_KEY, (label));
}
/**
* Gets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @return the new simple value
*/
final public boolean isSimple()
{
return ComponentUtils.resolveBoolean(getProperty(SIMPLE_KEY), false);
}
/**
* Sets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @param simple the new simple value
*/
final public void setSimple(boolean simple)
{
setProperty(SIMPLE_KEY, simple ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets event handler for when the value is changed.
*
* @return the new onchange value
*/
final public String getOnchange()
{
return ComponentUtils.resolveString(getProperty(ONCHANGE_KEY));
}
/**
* Sets event handler for when the value is changed.
*
* @param onchange the new onchange value
*/
final public void setOnchange(String onchange)
{
setProperty(ONCHANGE_KEY, (onchange));
}
/**
* Gets the CSS styles to use for this component.
*
* @return the new inlineStyle value
*/
final public String getInlineStyle()
{
return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
}
/**
* Sets the CSS styles to use for this component.
*
* @param inlineStyle the new inlineStyle value
*/
final public void setInlineStyle(String inlineStyle)
{
setProperty(INLINE_STYLE_KEY, (inlineStyle));
}
/**
* Gets a CSS style class to use for this component.
*
* @return the new styleClass value
*/
final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
}
/**
* Sets a CSS style class to use for this component.
*
* @param styleClass the new styleClass value
*/
final public void setStyleClass(String styleClass)
{
setProperty(STYLE_CLASS_KEY, (styleClass));
}
/**
* Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @return the new shortDesc value
*/
final public String getShortDesc()
{
return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
}
/**
* Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @param shortDesc the new shortDesc value
*/
final public void setShortDesc(String shortDesc)
{
setProperty(SHORT_DESC_KEY, (shortDesc));
}
/**
* Gets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @return the new partialTriggers value
*/
final public String[] getPartialTriggers()
{
return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
}
/**
* Sets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @param partialTriggers the new partialTriggers value
*/
final public void setPartialTriggers(String[] partialTriggers)
{
setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
}
/**
* Gets an onclick Javascript handler.
*
* @return the new onclick value
*/
final public String getOnclick()
{
return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
}
/**
* Sets an onclick Javascript handler.
*
* @param onclick the new onclick value
*/
final public void setOnclick(String onclick)
{
setProperty(ONCLICK_KEY, (onclick));
}
/**
* Gets an ondblclick Javascript handler.
*
* @return the new ondblclick value
*/
final public String getOndblclick()
{
return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
}
/**
* Sets an ondblclick Javascript handler.
*
* @param ondblclick the new ondblclick value
*/
final public void setOndblclick(String ondblclick)
{
setProperty(ONDBLCLICK_KEY, (ondblclick));
}
/**
* Gets an onmousedown Javascript handler.
*
* @return the new onmousedown value
*/
final public String getOnmousedown()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
}
/**
* Sets an onmousedown Javascript handler.
*
* @param onmousedown the new onmousedown value
*/
final public void setOnmousedown(String onmousedown)
{
setProperty(ONMOUSEDOWN_KEY, (onmousedown));
}
/**
* Gets an onmouseup Javascript handler.
*
* @return the new onmouseup value
*/
final public String getOnmouseup()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
}
/**
* Sets an onmouseup Javascript handler.
*
* @param onmouseup the new onmouseup value
*/
final public void setOnmouseup(String onmouseup)
{
setProperty(ONMOUSEUP_KEY, (onmouseup));
}
/**
* Gets an onmouseover Javascript handler.
*
* @return the new onmouseover value
*/
final public String getOnmouseover()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
}
/**
* Sets an onmouseover Javascript handler.
*
* @param onmouseover the new onmouseover value
*/
final public void setOnmouseover(String onmouseover)
{
setProperty(ONMOUSEOVER_KEY, (onmouseover));
}
/**
* Gets an onmousemove Javascript handler.
*
* @return the new onmousemove value
*/
final public String getOnmousemove()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
}
/**
* Sets an onmousemove Javascript handler.
*
* @param onmousemove the new onmousemove value
*/
final public void setOnmousemove(String onmousemove)
{
setProperty(ONMOUSEMOVE_KEY, (onmousemove));
}
/**
* Gets an onmouseout Javascript handler.
*
* @return the new onmouseout value
*/
final public String getOnmouseout()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
}
/**
* Sets an onmouseout Javascript handler.
*
* @param onmouseout the new onmouseout value
*/
final public void setOnmouseout(String onmouseout)
{
setProperty(ONMOUSEOUT_KEY, (onmouseout));
}
/**
* Gets an onkeypress Javascript handler.
*
* @return the new onkeypress value
*/
final public String getOnkeypress()
{
return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
}
/**
* Sets an onkeypress Javascript handler.
*
* @param onkeypress the new onkeypress value
*/
final public void setOnkeypress(String onkeypress)
{
setProperty(ONKEYPRESS_KEY, (onkeypress));
}
/**
* Gets an onkeydown Javascript handler.
*
* @return the new onkeydown value
*/
final public String getOnkeydown()
{
return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
}
/**
* Sets an onkeydown Javascript handler.
*
* @param onkeydown the new onkeydown value
*/
final public void setOnkeydown(String onkeydown)
{
setProperty(ONKEYDOWN_KEY, (onkeydown));
}
/**
* Gets an onkeyup Javascript handler.
*
* @return the new onkeyup value
*/
final public String getOnkeyup()
{
return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
}
/**
* Sets an onkeyup Javascript handler.
*
* @param onkeyup the new onkeyup value
*/
final public void setOnkeyup(String onkeyup)
{
setProperty(ONKEYUP_KEY, (onkeyup));
}
/**
* Gets the event handler for the component losing the focus.
*
* @return the new onblur value
*/
final public String getOnblur()
{
return ComponentUtils.resolveString(getProperty(ONBLUR_KEY));
}
/**
* Sets the event handler for the component losing the focus.
*
* @param onblur the new onblur value
*/
final public void setOnblur(String onblur)
{
setProperty(ONBLUR_KEY, (onblur));
}
/**
* Gets the event handler for the component gaining the focus.
*
* @return the new onfocus value
*/
final public String getOnfocus()
{
return ComponentUtils.resolveString(getProperty(ONFOCUS_KEY));
}
/**
* Sets the event handler for the component gaining the focus.
*
* @param onfocus the new onfocus value
*/
final public void setOnfocus(String onfocus)
{
setProperty(ONFOCUS_KEY, (onfocus));
}
/**
* Gets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @return the new showRequired value
*/
final public boolean isShowRequired()
{
return ComponentUtils.resolveBoolean(getProperty(SHOW_REQUIRED_KEY), false);
}
/**
* Sets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @param showRequired the new showRequired value
*/
final public void setShowRequired(boolean showRequired)
{
setProperty(SHOW_REQUIRED_KEY, showRequired ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @return the new accessKey value
*/
final public char getAccessKey()
{
return ComponentUtils.resolveCharacter((Character)getProperty(ACCESS_KEY_KEY));
}
/**
* Sets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @param accessKey the new accessKey value
*/
final public void setAccessKey(char accessKey)
{
setProperty(ACCESS_KEY_KEY, Character.valueOf(accessKey));
}
/**
* Gets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @return the new autoSubmit value
*/
final public boolean isAutoSubmit()
| |
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/component/core/input/CoreInputListOfValues.java | 236 |
| org/apache/myfaces/trinidad/component/core/input/CoreSelectManyListbox.java | 226 |
setProperty(VALUE_PASS_THRU_KEY, valuePassThru ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is read-only.
*
* @return the new readOnly value
*/
final public boolean isReadOnly()
{
return ComponentUtils.resolveBoolean(getProperty(READ_ONLY_KEY), false);
}
/**
* Sets whether the element is read-only.
*
* @param readOnly the new readOnly value
*/
final public void setReadOnly(boolean readOnly)
{
setProperty(READ_ONLY_KEY, readOnly ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets whether the element is disabled.
*
* @return the new disabled value
*/
final public boolean isDisabled()
{
return ComponentUtils.resolveBoolean(getProperty(DISABLED_KEY), false);
}
/**
* Sets whether the element is disabled.
*
* @param disabled the new disabled value
*/
final public void setDisabled(boolean disabled)
{
setProperty(DISABLED_KEY, disabled ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets the label of the bean.
*
* @return the new label value
*/
final public String getLabel()
{
return ComponentUtils.resolveString(getProperty(LABEL_KEY));
}
/**
* Sets the label of the bean.
*
* @param label the new label value
*/
final public void setLabel(String label)
{
setProperty(LABEL_KEY, (label));
}
/**
* Gets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @return the new simple value
*/
final public boolean isSimple()
{
return ComponentUtils.resolveBoolean(getProperty(SIMPLE_KEY), false);
}
/**
* Sets a boolean value that controls whether the component
* provides label and message support; when set to "true", the component will
* not display messaging support or the label (these attributes may be ignored: label,
* labelAndAccessKey, accessKey, showRequired,
* tip), and may use simpler layout primitives
*
* @param simple the new simple value
*/
final public void setSimple(boolean simple)
{
setProperty(SIMPLE_KEY, simple ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets event handler for when the value is changed.
*
* @return the new onchange value
*/
final public String getOnchange()
{
return ComponentUtils.resolveString(getProperty(ONCHANGE_KEY));
}
/**
* Sets event handler for when the value is changed.
*
* @param onchange the new onchange value
*/
final public void setOnchange(String onchange)
{
setProperty(ONCHANGE_KEY, (onchange));
}
/**
* Gets the CSS styles to use for this component.
*
* @return the new inlineStyle value
*/
final public String getInlineStyle()
{
return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
}
/**
* Sets the CSS styles to use for this component.
*
* @param inlineStyle the new inlineStyle value
*/
final public void setInlineStyle(String inlineStyle)
{
setProperty(INLINE_STYLE_KEY, (inlineStyle));
}
/**
* Gets a CSS style class to use for this component.
*
* @return the new styleClass value
*/
final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
}
/**
* Sets a CSS style class to use for this component.
*
* @param styleClass the new styleClass value
*/
final public void setStyleClass(String styleClass)
{
setProperty(STYLE_CLASS_KEY, (styleClass));
}
/**
* Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @return the new shortDesc value
*/
final public String getShortDesc()
{
return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
}
/**
* Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @param shortDesc the new shortDesc value
*/
final public void setShortDesc(String shortDesc)
{
setProperty(SHORT_DESC_KEY, (shortDesc));
}
/**
* Gets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @return the new partialTriggers value
*/
final public String[] getPartialTriggers()
{
return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
}
/**
* Sets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @param partialTriggers the new partialTriggers value
*/
final public void setPartialTriggers(String[] partialTriggers)
{
setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
}
/**
* Gets an onclick Javascript handler.
*
* @return the new onclick value
*/
final public String getOnclick()
{
return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
}
/**
* Sets an onclick Javascript handler.
*
* @param onclick the new onclick value
*/
final public void setOnclick(String onclick)
{
setProperty(ONCLICK_KEY, (onclick));
}
/**
* Gets an ondblclick Javascript handler.
*
* @return the new ondblclick value
*/
final public String getOndblclick()
{
return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
}
/**
* Sets an ondblclick Javascript handler.
*
* @param ondblclick the new ondblclick value
*/
final public void setOndblclick(String ondblclick)
{
setProperty(ONDBLCLICK_KEY, (ondblclick));
}
/**
* Gets an onmousedown Javascript handler.
*
* @return the new onmousedown value
*/
final public String getOnmousedown()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
}
/**
* Sets an onmousedown Javascript handler.
*
* @param onmousedown the new onmousedown value
*/
final public void setOnmousedown(String onmousedown)
{
setProperty(ONMOUSEDOWN_KEY, (onmousedown));
}
/**
* Gets an onmouseup Javascript handler.
*
* @return the new onmouseup value
*/
final public String getOnmouseup()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
}
/**
* Sets an onmouseup Javascript handler.
*
* @param onmouseup the new onmouseup value
*/
final public void setOnmouseup(String onmouseup)
{
setProperty(ONMOUSEUP_KEY, (onmouseup));
}
/**
* Gets an onmouseover Javascript handler.
*
* @return the new onmouseover value
*/
final public String getOnmouseover()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
}
/**
* Sets an onmouseover Javascript handler.
*
* @param onmouseover the new onmouseover value
*/
final public void setOnmouseover(String onmouseover)
{
setProperty(ONMOUSEOVER_KEY, (onmouseover));
}
/**
* Gets an onmousemove Javascript handler.
*
* @return the new onmousemove value
*/
final public String getOnmousemove()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
}
/**
* Sets an onmousemove Javascript handler.
*
* @param onmousemove the new onmousemove value
*/
final public void setOnmousemove(String onmousemove)
{
setProperty(ONMOUSEMOVE_KEY, (onmousemove));
}
/**
* Gets an onmouseout Javascript handler.
*
* @return the new onmouseout value
*/
final public String getOnmouseout()
{
return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
}
/**
* Sets an onmouseout Javascript handler.
*
* @param onmouseout the new onmouseout value
*/
final public void setOnmouseout(String onmouseout)
{
setProperty(ONMOUSEOUT_KEY, (onmouseout));
}
/**
* Gets an onkeypress Javascript handler.
*
* @return the new onkeypress value
*/
final public String getOnkeypress()
{
return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
}
/**
* Sets an onkeypress Javascript handler.
*
* @param onkeypress the new onkeypress value
*/
final public void setOnkeypress(String onkeypress)
{
setProperty(ONKEYPRESS_KEY, (onkeypress));
}
/**
* Gets an onkeydown Javascript handler.
*
* @return the new onkeydown value
*/
final public String getOnkeydown()
{
return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
}
/**
* Sets an onkeydown Javascript handler.
*
* @param onkeydown the new onkeydown value
*/
final public void setOnkeydown(String onkeydown)
{
setProperty(ONKEYDOWN_KEY, (onkeydown));
}
/**
* Gets an onkeyup Javascript handler.
*
* @return the new onkeyup value
*/
final public String getOnkeyup()
{
return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
}
/**
* Sets an onkeyup Javascript handler.
*
* @param onkeyup the new onkeyup value
*/
final public void setOnkeyup(String onkeyup)
{
setProperty(ONKEYUP_KEY, (onkeyup));
}
/**
* Gets the event handler for the component losing the focus.
*
* @return the new onblur value
*/
final public String getOnblur()
{
return ComponentUtils.resolveString(getProperty(ONBLUR_KEY));
}
/**
* Sets the event handler for the component losing the focus.
*
* @param onblur the new onblur value
*/
final public void setOnblur(String onblur)
{
setProperty(ONBLUR_KEY, (onblur));
}
/**
* Gets the event handler for the component gaining the focus.
*
* @return the new onfocus value
*/
final public String getOnfocus()
{
return ComponentUtils.resolveString(getProperty(ONFOCUS_KEY));
}
/**
* Sets the event handler for the component gaining the focus.
*
* @param onfocus the new onfocus value
*/
final public void setOnfocus(String onfocus)
{
setProperty(ONFOCUS_KEY, (onfocus));
}
/**
* Gets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @return the new showRequired value
*/
final public boolean isShowRequired()
{
return ComponentUtils.resolveBoolean(getProperty(SHOW_REQUIRED_KEY), false);
}
/**
* Sets whether the associated control displays a visual indication of required user input. If a "required" attribute is also present, both the "required" attribute and the
* "showRequired" attribute must be false for the visual indication not to be displayed.
*
* @param showRequired the new showRequired value
*/
final public void setShowRequired(boolean showRequired)
{
setProperty(SHOW_REQUIRED_KEY, showRequired ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @return the new accessKey value
*/
final public char getAccessKey()
{
return ComponentUtils.resolveCharacter((Character)getProperty(ACCESS_KEY_KEY));
}
/**
* Sets <html>
* Character used to gain quick access to
* the form element specified by the
* <code>for</code>, if set (or this component itself,
* if it is a "non-simple" form element).
* For accessibility reasons, this functionality is not supported
* in screen reader mode.
* If the same access key appears in multiple locations in the
* same page of output, the rendering user agent will cycle
* among the elements accessed by the similar keys.
* <p>
* This attribute is sometimes referred to as the "mnemonic".
* </p></html>
*
* @param accessKey the new accessKey value
*/
final public void setAccessKey(char accessKey)
{
setProperty(ACCESS_KEY_KEY, Character.valueOf(accessKey));
}
/**
* Gets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.).
*
* @return the new autoSubmit value
*/
final public boolean isAutoSubmit()
| |
| File | Line |
|---|---|
| org/apache/myfaces/trinidad/component/core/data/CoreTable.java | 359 |
| org/apache/myfaces/trinidad/component/core/data/CoreTreeTable.java | 225 |
getFacets().put(PATH_STAMP_FACET, pathStampFacet);
}
/**
* Gets if the horizontal grid lines will be drawn.
*
* @return the new horizontalGridVisible value
*/
final public boolean isHorizontalGridVisible()
{
return ComponentUtils.resolveBoolean(getProperty(HORIZONTAL_GRID_VISIBLE_KEY), true);
}
/**
* Sets if the horizontal grid lines will be drawn.
*
* @param horizontalGridVisible the new horizontalGridVisible value
*/
final public void setHorizontalGridVisible(boolean horizontalGridVisible)
{
setProperty(HORIZONTAL_GRID_VISIBLE_KEY, horizontalGridVisible ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets if the vertical grid lines will be drawn.
*
* @return the new verticalGridVisible value
*/
final public boolean isVerticalGridVisible()
{
return ComponentUtils.resolveBoolean(getProperty(VERTICAL_GRID_VISIBLE_KEY), true);
}
/**
* Sets if the vertical grid lines will be drawn.
*
* @param verticalGridVisible the new verticalGridVisible value
*/
final public void setVerticalGridVisible(boolean verticalGridVisible)
{
setProperty(VERTICAL_GRID_VISIBLE_KEY, verticalGridVisible ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets text displayed when a table is empty.
*
* @return the new emptyText value
*/
final public String getEmptyText()
{
return ComponentUtils.resolveString(getProperty(EMPTY_TEXT_KEY));
}
/**
* Sets text displayed when a table is empty.
*
* @param emptyText the new emptyText value
*/
final public void setEmptyText(String emptyText)
{
setProperty(EMPTY_TEXT_KEY, (emptyText));
}
/**
* Gets the interval between which the column banding alternates. For example, a columnBandingInterval of 1 would display alternately banded columns.
*
* @return the new columnBandingInterval value
*/
final public int getColumnBandingInterval()
{
return ComponentUtils.resolveInteger(getProperty(COLUMN_BANDING_INTERVAL_KEY), 0);
}
/**
* Sets the interval between which the column banding alternates. For example, a columnBandingInterval of 1 would display alternately banded columns.
*
* @param columnBandingInterval the new columnBandingInterval value
*/
final public void setColumnBandingInterval(int columnBandingInterval)
{
setProperty(COLUMN_BANDING_INTERVAL_KEY, Integer.valueOf(columnBandingInterval));
}
/**
* Gets the interval between which the row banding alternates. For example, rowBandingInterval=1 would displayalternately banded rows in the Grid.
*
* @return the new rowBandingInterval value
*/
final public int getRowBandingInterval()
{
return ComponentUtils.resolveInteger(getProperty(ROW_BANDING_INTERVAL_KEY), 0);
}
/**
* Sets the interval between which the row banding alternates. For example, rowBandingInterval=1 would displayalternately banded rows in the Grid.
*
* @param rowBandingInterval the new rowBandingInterval value
*/
final public void setRowBandingInterval(int rowBandingInterval)
{
setProperty(ROW_BANDING_INTERVAL_KEY, Integer.valueOf(rowBandingInterval));
}
/**
* Gets whether rows in this table selectable. Valid values are "none", "single", "multiple"
*
* @return the new rowSelection value
*/
final public String getRowSelection()
{
return ComponentUtils.resolveString(getProperty(ROW_SELECTION_KEY), "none");
}
/**
* Sets whether rows in this table selectable. Valid values are "none", "single", "multiple"
*
* @param rowSelection the new rowSelection value
*/
final public void setRowSelection(String rowSelection)
{
setProperty(ROW_SELECTION_KEY, (rowSelection));
}
/**
* Gets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.). This only takes effect if rowSelection attribute enabled.
*
* @return the new autoSubmit value
*/
final public boolean isAutoSubmit()
{
return ComponentUtils.resolveBoolean(getProperty(AUTO_SUBMIT_KEY), false);
}
/**
* Sets If set to TRUE on a form element, the component will automatically submit
* the enclosing form when an appropriate action takes place (a click, text
* change, etc.). This only takes effect if rowSelection attribute enabled.
*
* @param autoSubmit the new autoSubmit value
*/
final public void setAutoSubmit(boolean autoSubmit)
{
setProperty(AUTO_SUBMIT_KEY, autoSubmit ? Boolean.TRUE : Boolean.FALSE);
}
/**
* Gets the width of the table. The value must either be a number of pixels or a percentage - it is not a CSS width.
*
* @return the new width value
*/
final public String getWidth()
{
return ComponentUtils.resolveString(getProperty(WIDTH_KEY));
}
/**
* Sets the width of the table. The value must either be a number of pixels or a percentage - it is not a CSS width.
*
* @param width the new width value
*/
final public void setWidth(String width)
{
setProperty(WIDTH_KEY, (width));
}
/**
* Gets the summary of this table's purpose and structure
* for user agents rendering to non-visual media.
*
* @return the new summary value
*/
final public String getSummary()
{
return ComponentUtils.resolveString(getProperty(SUMMARY_KEY));
}
/**
* Sets the summary of this table's purpose and structure
* for user agents rendering to non-visual media.
*
* @param summary the new summary value
*/
final public void setSummary(String summary)
{
setProperty(SUMMARY_KEY, (summary));
}
/**
* Gets the CSS styles to use for this component.
*
* @return the new inlineStyle value
*/
final public String getInlineStyle()
{
return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
}
/**
* Sets the CSS styles to use for this component.
*
* @param inlineStyle the new inlineStyle value
*/
final public void setInlineStyle(String inlineStyle)
{
setProperty(INLINE_STYLE_KEY, (inlineStyle));
}
/**
* Gets a CSS style class to use for this component.
*
* @return the new styleClass value
*/
final public String getStyleClass()
{
return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
}
/**
* Sets a CSS style class to use for this component.
*
* @param styleClass the new styleClass value
*/
final public void setStyleClass(String styleClass)
{
setProperty(STYLE_CLASS_KEY, (styleClass));
}
/**
* Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @return the new shortDesc value
*/
final public String getShortDesc()
{
return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
}
/**
* Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
*
* @param shortDesc the new shortDesc value
*/
final public void setShortDesc(String shortDesc)
{
setProperty(SHORT_DESC_KEY, (shortDesc));
}
/**
* Gets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @return the new partialTriggers value
*/
final public String[] getPartialTriggers()
{
return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
}
/**
* Sets the IDs of the components that should trigger a partial update.
* <p>
* This component will listen on the trigger components. If one of the
* trigger components receives an event that will cause it to update
* in some way, this component will request to be updated too.</p>
* <p>
* Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
* </p>
* <p>
* Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
* or use multiple colons to move up through the NamingContainer. For example,
* "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
* ":::" will pop out of two naming containers, etc. The search for
* the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
* component with id = commandButton1 after popping out of two naming containers relative to this component.
* To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
*
* @param partialTriggers the new partialTriggers value
*/
final public void setPartialTriggers(String[] partialTriggers)
{
setProperty(PARTIAL_TRIGGERS_KEY, (parti | |