public interface CVComponentConfig
This is a simple bean used to contain the configuration of a CVComponent. To manage the configuration of your component, you have to extend this class. Your class must have a public constructor with no parameter.
To define a property of configuration, you have to add a setter method and a getter method to your inherited class.
Setters are public methods, taking exactly one argument and returning no argument. Setters names begins with "set" (in lowercase), followed by the property name. Getters names begins with "get" (in lowercase), have no argument, and should return the same argument as their setter equivalent.
Example:
public void setSize(int size) this.size = size;
public int getSize() return this.size;
public void setSubConfig(MyConfig config) this.config = config;
public MyConfig getSubConfig() return this.config;
The parameter (setters or getters) can be of the following types:
In addition, setters (only setters) methods can be annotated using com.exalead.config.bean annotation classes:
An optional getDefaultForcedMeta() can be defined in classes embedding
setters to order configuration fields (the default configuration will
have their fields ordered using this method):
{@code public static exa.bee.KeyValue[] getDefaultForcedMeta();}
Copyright © 2013 Dassault Systèmes, All Rights Reserved.