C - the generic type of the controllerCOMP - the generic type of the componentpublic abstract class AbstractGenericView<C,COMP extends Component> extends Object implements View<C,COMP>
| Constructor and Description |
|---|
AbstractGenericView(C controller)
Instantiates a new abstract generic view.
|
| Modifier and Type | Method and Description |
|---|---|
COMP |
getComponent()
Returns the field
component. |
C |
getController()
Returns the field
controller. |
View<C,COMP> |
getParent()
Gets the parent.
|
View<?,?> |
getRootParentView()
Gets the root parent view.
|
boolean |
hasParent()
Checks for parent.
|
protected abstract void |
initialize()
Initialize.
|
void |
setComponent(COMP component)
Sets the field
component. |
void |
setController(C controller)
Sets the field
controller. |
void |
setParent(View<C,COMP> parent)
Sets the parent.
|
public AbstractGenericView(C controller)
controller - the controllerpublic COMP getComponent()
component.getComponent in interface View<C,COMP extends Component>public C getController()
controller.getController in interface View<C,COMP extends Component>public View<?,?> getRootParentView()
public boolean hasParent()
protected abstract void initialize()
public void setComponent(COMP component)
component.setComponent in interface View<C,COMP extends Component>component - The component to set.public void setController(C controller)
controller.setController in interface View<C,COMP extends Component>controller - The controller to set.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.