T
- the type of the model objectC
- the type of the componentpublic interface IGenericComponent<T,C extends IGenericComponent<? super T,?>>
components
with type-safe accessors and mutators
for the model and its object.
Usage:
public class MyComponent<T> extends AnotherComponent implements IGenericComponent<T, MyComponent<T>> { ... }
Modifier and Type | Method and Description |
---|---|
IModel<?> |
getDefaultModel() |
Object |
getDefaultModelObject() |
default IModel<T> |
getModel()
Typesafe getter for the model
|
default T |
getModelObject()
Typesafe getter for the model's object
|
Component |
setDefaultModel(IModel<?> model) |
Component |
setDefaultModelObject(Object object) |
default C |
setModel(IModel<T> model)
Typesafe setter for the model
|
default C |
setModelObject(T object)
Typesafe setter for the model object
|
default C setModel(IModel<T> model)
model
- the new modeldefault T getModelObject()
default C setModelObject(T object)
object
- the new model objectIModel<?> getDefaultModel()
Object getDefaultModelObject()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.