Class AbstractComponentFacade<T extends Component>
java.lang.Object
ch.tocco.nice2.netui.api.bind.form.facades.AbstractComponentFacade<T>
- All Implemented Interfaces:
ActionHolderFacade
,ComponentFacade<T>
,Serializable
- Direct Known Subclasses:
AbstractDataComponentFacade
,ActionFacade
,ActionSeparatorFacade
,ColumnFacade
,ConstantFieldFacade
,DescriptionFieldFacade
,GenericComponentFacade
,LocationFieldFacade
public abstract class AbstractComponentFacade<T extends Component>
extends Object
implements ComponentFacade<T>, ActionHolderFacade
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected List
<AbstractComponentFacade> protected List
<ComponentFacade> protected Component
protected String
protected FacadeHandlerContext
protected Component.DisplayType
protected String
This map is intended to only pass extjs-specific settings to the client, while keeping 'generic' ui attributes as real java-bean.protected String
protected String
protected TypeManager
protected LabeledComponent.UseLabel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAction
(AbstractComponentFacade actionFacade) void
addChild
(ComponentFacade facade) Default implementation of addChild method.protected void
figureOutLabel
(LabeledComponent labeledComponent) Get all children of this facadeGet ext-properties if existinggetLabel()
getName()
Get the component's nameDon't rename to 'get', don't make it marshallable!void
setComponent
(Component component) void
setComponentType
(String componentType) void
setDisplayType
(Component.DisplayType displayType) void
setEventHandler
(String eventHandler) void
void
setTypeManager
(TypeManager typeManager) To override by concrete implementations to set up the facadevoid
setUseLabel
(LabeledComponent.UseLabel useLabel)
-
Field Details
-
typeManager
-
component
-
children
-
actions
-
extProps
This map is intended to only pass extjs-specific settings to the client, while keeping 'generic' ui attributes as real java-bean. This helps to not clutter classes with dozens of exotic extjs attributes. It may be that the map contains things that should really be java-bean attributes atm. -
displayType
-
name
-
componentType
-
label
-
useLabel
-
ctx
-
eventHandler
-
-
Constructor Details
-
AbstractComponentFacade
protected AbstractComponentFacade()
-
-
Method Details
-
addChild
Default implementation of addChild method. Can be overridden.- Specified by:
addChild
in interfaceComponentFacade<T extends Component>
- Parameters:
facade
- the child facade
-
setTypeManager
- Specified by:
setTypeManager
in interfaceComponentFacade<T extends Component>
-
getChildren
Get all children of this facade- Returns:
- the children facades as array for better usage in client
-
setLabel
-
getLabel
-
setUseLabel
-
getUseLabel
-
figureOutLabel
-
setComponentType
-
getComponentType
- Specified by:
getComponentType
in interfaceComponentFacade<T extends Component>
-
setEventHandler
-
getEventHandler
-
setUp
To override by concrete implementations to set up the facade- Specified by:
setUp
in interfaceComponentFacade<T extends Component>
- Parameters:
ctx
- the context
-
getName
Get the component's name- Returns:
- the name
-
getExtProps
Get ext-properties if existing- Returns:
- all ext-properties defined in component
-
getDisplayType
-
setDisplayType
-
addAction
- Specified by:
addAction
in interfaceActionHolderFacade
-
setComponent
- Specified by:
setComponent
in interfaceComponentFacade<T extends Component>
-
readUnderlyingComponent
Description copied from interface:ComponentFacade
Don't rename to 'get', don't make it marshallable!- Specified by:
readUnderlyingComponent
in interfaceComponentFacade<T extends Component>
- Returns:
- The component this facade wraps.
-