Interface BeanAware
-
- All Known Subinterfaces:
BeanBound,BeanProviderBound,BeanTableDataModel,Input,WTable.BeanBoundTableModel
- All Known Implementing Classes:
AbstractBeanBoundTableModel,AbstractBeanTableDataModel,AbstractInput,AbstractWMultiSelectList,AbstractWSelectList,AbstractWSingleSelectList,RadioButtonGroup,SimpleBeanBoundTableDataModel,SimpleBeanBoundTableModel,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 BeanAwareThe super-interface for "bean-aware" components. Components should normally not implement this interface, but eitherBeanBoundorBeanProviderBound, as those interfaces provide methods of supplying the bean.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetBean()Retrieves the bean for the given context.StringgetBeanProperty()ObjectgetBeanValue()Retrieves the value this component is interested in from the bean.voidsetBeanProperty(String propertyName)Sets the bean property that this component is interested in.
-
-
-
Method Detail
-
setBeanProperty
void setBeanProperty(String propertyName)
Sets the bean property that this component is interested in.- Parameters:
propertyName- the bean property name
-
getBeanProperty
String getBeanProperty()
- Returns:
- the bean property name this component is interested in
-
getBean
Object getBean()
Retrieves the bean for the given context.- Returns:
- the bean for the given context.
-
getBeanValue
Object getBeanValue()
Retrieves the value this component is interested in from the bean. This is derived from thegetBeanProperty()andgetBean().- Returns:
- the bean value, or null if no bean value is available.
-
-