Package com.github.weisj.swingdsl.laf
Class DefaultWrappedComponent<T extends JComponent,K extends JComponent>
java.lang.Object
com.github.weisj.swingdsl.laf.DefaultWrappedComponent<T,K>
- All Implemented Interfaces:
WrappedComponent<T>
- Direct Known Subclasses:
SelfWrappedComponent
public class DefaultWrappedComponent<T extends JComponent,K extends JComponent> extends Object implements WrappedComponent<T>
-
Constructor Summary
Constructors Constructor Description DefaultWrappedComponent(T component, K container) -
Method Summary
Modifier and Type Method Description TgetComponent()Get the wrapped component.@NotNull JComponentgetContainer()Get the container which holds the component.
-
Constructor Details
-
DefaultWrappedComponent
-
-
Method Details
-
getComponent
Description copied from interface:WrappedComponentGet the wrapped component.- Specified by:
getComponentin interfaceWrappedComponent<T extends JComponent>- Returns:
- the component.
-
getContainer
Description copied from interface:WrappedComponentGet the container which holds the component.- Specified by:
getContainerin interfaceWrappedComponent<T extends JComponent>- Returns:
- the container.
-