Class ComponentWithContext
- java.lang.Object
-
- com.github.bordertech.wcomponents.ComponentWithContext
-
- All Implemented Interfaces:
Serializable
public class ComponentWithContext extends Object implements Serializable
Encapsulates a component along with a context. This is used to e.g. return lists of components which are being repeated.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentWithContext(WComponent component, UIContext context)
Creates a ComponentWithContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WComponent
getComponent()
UIContext
getContext()
void
setComponent(WComponent component)
void
setContext(UIContext context)
-
-
-
Constructor Detail
-
ComponentWithContext
public ComponentWithContext(WComponent component, UIContext context)
Creates a ComponentWithContext.- Parameters:
component
- the component.context
- the context the component is in.
-
-
Method Detail
-
getComponent
public WComponent getComponent()
- Returns:
- Returns the component.
-
setComponent
public void setComponent(WComponent component)
- Parameters:
component
- The component to set.
-
getContext
public UIContext getContext()
- Returns:
- Returns the context.
-
setContext
public void setContext(UIContext context)
- Parameters:
context
- The context to set.
-
-