Package org.ametys.cms.form
Class ExternalizableField
- java.lang.Object
-
- org.ametys.cms.form.AbstractField
-
- org.ametys.cms.form.ExternalizableField
-
public class ExternalizableField extends AbstractField
A field for managing externalizable metadata. This field wraps a field for local value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.form.AbstractField
AbstractField.MODE
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractField
_extField
private AbstractField
_localField
private ExternalizableMetadataProvider.ExternalizableMetadataStatus
_status
-
Constructor Summary
Constructors Constructor Description ExternalizableField(AbstractField localField, AbstractField extField, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Creates aExternalizableField
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractField
getExternalField()
Get the field holding the external valueAbstractField
getLocalField()
Get the field holding the local valueExternalizableMetadataProvider.ExternalizableMetadataStatus
getStatus()
Get the status (local or external)-
Methods inherited from class org.ametys.cms.form.AbstractField
getMode, setMode, setMode
-
-
-
-
Field Detail
-
_localField
private AbstractField _localField
-
_extField
private AbstractField _extField
-
_status
private ExternalizableMetadataProvider.ExternalizableMetadataStatus _status
-
-
Constructor Detail
-
ExternalizableField
public ExternalizableField(AbstractField localField, AbstractField extField, ExternalizableMetadataProvider.ExternalizableMetadataStatus status)
Creates aExternalizableField
- Parameters:
localField
- The field for local valueextField
- The field for external valuestatus
- The status
-
-
Method Detail
-
getLocalField
public AbstractField getLocalField()
Get the field holding the local value- Returns:
- the local field
-
getExternalField
public AbstractField getExternalField()
Get the field holding the external value- Returns:
- the external field
-
getStatus
public ExternalizableMetadataProvider.ExternalizableMetadataStatus getStatus()
Get the status (local or external)- Returns:
- the status
-
-