Interface BeanBound
-
- All Superinterfaces:
BeanAware
- All Known Subinterfaces:
Input
- All Known Implementing Classes:
AbstractInput
,AbstractWMultiSelectList
,AbstractWSelectList
,AbstractWSingleSelectList
,RadioButtonGroup
,UicProfileButton
,WAbbrText
,WAjaxPollingRegion
,WBeanComponent
,WBeanContainer
,WButton
,WCancelButton
,WCheckBox
,WCheckBoxSelect
,WConfirmationButton
,WContainer
,WDataRenderer
,WDataTable
,WDataTableRowRenderer
,WDateField
,WDropdown
,WEditableImage
,WEmailField
,WFileWidget
,WFilterText
,WHeading
,WHiddenComment
,WImage
,WLink
,WList
,WMessages
,WMultiDropdown
,WMultiFileWidget
,WMultiSelect
,WMultiSelectPair
,WMultiTextField
,WNamingContext
,WNumberField
,WPanel
,WPartialDateField
,WPasswordField
,WPhoneNumberField
,WPrintButton
,WProgressBar
,WRadioButton
,WRadioButtonSelect
,WRepeater
,WRepeater.WRepeatRoot
,WShuffler
,WSingleSelect
,WStyledText
,WTable
,WTable.TableRepeater
,WTableRepeater
,WTableRowRenderer
,WTemplate
,WText
,WTextArea
,WTextField
,WToggleButton
,WTree
public interface BeanBound extends BeanAware
Components implementing this interface are directly bound to a bean. Storage of the bean is implementation dependent, but will most likely be in the user session.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
- See Also:
BeanProviderBound
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSearchAncestors()
Flag to indicate if a bean should be searched for up the component tree.void
setBean(Object bean)
Sets the bean for the given context.-
Methods inherited from interface com.github.bordertech.wcomponents.BeanAware
getBean, getBeanProperty, getBeanValue, setBeanProperty
-
-
-
-
Method Detail
-
setBean
void setBean(Object bean)
Sets the bean for the given context.- Parameters:
bean
- the bean to set
-
isSearchAncestors
boolean isSearchAncestors()
Flag to indicate if a bean should be searched for up the component tree. If set true and the current component does not have a bean, then ask the next bean aware ancestor for its bean. If false and the component does not have a bean, then do not search the tree for a bean and return null.Setting this to false at the correct bean container level can stop a bean component going up the whole component tree looking for its bean and being given the wrong bean.
- Returns:
- true if search ancestors for a bean, otherwise false to not search
-
-