Package de.alpharogroup.generic.mvc.view
Interface View<C,COMP extends java.awt.Component>
-
- Type Parameters:
C- the generic type of the controllerCOMP- the generic type of the component
- All Known Implementing Classes:
AbstractGenericView,KeypadView,LoginView
public interface View<C,COMP extends java.awt.Component>The Interface View.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description COMPgetComponent()Gets the component.CgetController()Gets the controller.View<?,?>getParent()Gets the parent.booleanhasParent()Checks for parent.voidsetComponent(COMP component)Sets the component.voidsetController(C controller)Sets the controller.
-
-
-
Method Detail
-
getComponent
COMP getComponent()
Gets the component.- Returns:
- the component
-
getController
C getController()
Gets the controller.- Returns:
- the controller
-
getParent
View<?,?> getParent()
Gets the parent.- Returns:
- the parent
-
hasParent
boolean hasParent()
Checks for parent.- Returns:
- true, if successful
-
setComponent
void setComponent(COMP component)
Sets the component.- Parameters:
component- the new component
-
setController
void setController(C controller)
Sets the controller.- Parameters:
controller- the new controller
-
-