Class AbstractComponent
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
- Direct Known Subclasses:
AbstractCompositeComponent
,DescriptionImpl
,DisplayImpl
,FieldImpl
,SearchFilterImpl
,SubTableImpl
,TermsComponentImpl
Base class for components that contains properties shared by all components.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
Component.Configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
protected @Nullable String
getDefaultFormLabel
(Form form, TextResources textResources, String path, boolean forceEvaluation) Text resources are searched in the following order: LIST forms: Form: User_list Path: firstname - forms.User_list.table.firstname Other forms: Form: Address_detail Path: relExtranet_user (Parent hierarchy: box1.box1.box1.master_data.relExtranet_user) 1) 'forms.Address_detail.master_data.relExtranet_user' 2) 'forms.Address_detail.relExtranet_user'getId()
Optional id of the component.getLabel()
Returns the label of a component.@Nullable String
Returns the position of the component within the parent ("top", "bottom", "after:...", or "before: ...").void
void
void
void
setPosition
(@Nullable String position)
-
Constructor Details
-
AbstractComponent
public AbstractComponent()
-
-
Method Details
-
getId
Description copied from interface:Component
Optional id of the component. Can be useful if a component should be referenced. -
setId
-
getLabel
Description copied from interface:Component
Returns the label of a component. -
setLabel
-
getParent
-
setParent
-
getPosition
Description copied from interface:Component
Returns the position of the component within the parent ("top", "bottom", "after:...", or "before: ...").- Specified by:
getPosition
in interfaceComponent
-
setPosition
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getDefaultFormLabel
@Nullable protected @Nullable String getDefaultFormLabel(Form form, TextResources textResources, String path, boolean forceEvaluation) Text resources are searched in the following order: LIST forms: Form: User_list Path: firstname - forms.User_list.table.firstname Other forms: Form: Address_detail Path: relExtranet_user (Parent hierarchy: box1.box1.box1.master_data.relExtranet_user) 1) 'forms.Address_detail.master_data.relExtranet_user' 2) 'forms.Address_detail.relExtranet_user'
-