Package org.apache.wicket
Interface IGenericComponent<T,C extends IGenericComponent<? super T,?>>
-
- Type Parameters:
T
- the type of the model objectC
- the type of the component
- All Known Implementing Classes:
AbstractChoice
,AbstractOptions
,AbstractSingleSelectChoice
,AbstractTextComponent
,AbstractTree
,AjaxButton
,AjaxCheckBox
,AjaxEditableChoiceLabel
,AjaxEditableLabel
,AjaxEditableMultiLineLabel
,AjaxFallbackButton
,AjaxFallbackLink
,AjaxLink
,AjaxOrderByLink
,AjaxPagingNavigationIncrementLink
,AjaxPagingNavigationLink
,AutoCompleteTextField
,AutoLinkResolver.AutolinkBookmarkablePageLink
,BookmarkablePageLink
,BranchItem
,BreadCrumbLink
,BreadCrumbPanelLink
,BrowserInfoForm
,Button
,CancelButton
,Check
,CheckBox
,CheckBoxMultipleChoice
,CheckGroup
,Choices
,DateTextField
,DefaultCssAutoCompleteTextField
,DefaultNestedTree
,DefaultTableTree
,DownloadLink
,DropDownChoice
,DummyHomePage.TestLink
,EmailTextField
,EnhancedPageView
,EnumLabel
,FileUploadField
,FilterForm
,FinishButton
,Form
,FormComponent
,FormComponentPanel
,GenericPanel
,GenericWebMarkupContainer
,GenericWebPage
,GroupedDropDownChoice
,HiddenField
,ImageButton
,Include
,IndicatingAjaxButton
,IndicatingAjaxFallbackLink
,IndicatingAjaxLink
,Item
,LastButton
,Link
,ListChoice
,ListItem
,ListMultipleChoice
,LocalDateTextField
,LocalDateTimeField
,LocalDateTimeTextField
,LocalTimeTextField
,MultiFileUploadField
,NestedTree
,NextButton
,NumberTextField
,OddEvenItem
,OddEvenListItem
,OrderByLink
,PagingNavigationIncrementLink
,PagingNavigationLink
,Palette
,PasswordTextField
,PersistedPanel
,PopupCloseLink
,PreviousButton
,Radio
,RadioChoice
,RadioGroup
,RangeTextField
,Recorder
,RequiredTextField
,ResourceLink
,Select
,Selection
,SelectOption
,SignInPanel.SignInForm
,StatelessForm
,StatelessLink
,TableTree
,TextArea
,TextField
,TimeField
,UrlTextField
,WizardButton
,ZonedDateTimeField
public interface IGenericComponent<T,C extends IGenericComponent<? super T,?>>
An interface for allcomponents
with type-safe accessors and mutators for the model and its object.Usage:
public class MyComponent<T> extends AnotherComponent implements IGenericComponent<T, MyComponent<T>> { ... }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IModel<?>
getDefaultModel()
Object
getDefaultModelObject()
default IModel<T>
getModel()
Typesafe getter for the modeldefault T
getModelObject()
Typesafe getter for the model's objectComponent
setDefaultModel(IModel<?> model)
Component
setDefaultModelObject(Object object)
default C
setModel(IModel<T> model)
Typesafe setter for the modeldefault C
setModelObject(T object)
Typesafe setter for the model object
-
-
-
Method Detail
-
setModel
default C setModel(IModel<T> model)
Typesafe setter for the model- Parameters:
model
- the new model
-
getModelObject
default T getModelObject()
Typesafe getter for the model's object- Returns:
- the model object
-
setModelObject
default C setModelObject(T object)
Typesafe setter for the model object- Parameters:
object
- the new model object
-
getDefaultModel
IModel<?> getDefaultModel()
-
setDefaultModel
Component setDefaultModel(IModel<?> model)
-
setDefaultModelObject
Component setDefaultModelObject(Object object)
-
getDefaultModelObject
Object getDefaultModelObject()
-
-