git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
StringUtils: new justifyTexts(..)
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
utils
/
resources
/
Meta.java
diff --git
a/src/be/nikiroo/utils/resources/Meta.java
b/src/be/nikiroo/utils/resources/Meta.java
index d377dcc5c10c1c08ed0c7e98a4ae6a3f7be5bbd8..f316df4f63b0a4fa53292fae879834da95ad6eeb 100644
(file)
--- a/
src/be/nikiroo/utils/resources/Meta.java
+++ b/
src/be/nikiroo/utils/resources/Meta.java
@@
-46,11
+46,12
@@
public @interface Meta {
* custom String value (basically, a {@link Format#FIXED_LIST} with an
* option to enter a not accounted for value).
*/
* custom String value (basically, a {@link Format#FIXED_LIST} with an
* option to enter a not accounted for value).
*/
- COMBO_LIST
+ COMBO_LIST
,
}
/**
}
/**
- * A description of this item.
+ * A description of this item (what it is or does, how to explain that item
+ * to the user).
*
* @return what it is
*/
*
* @return what it is
*/
@@
-63,7
+64,7
@@
public @interface Meta {
* use the value in the program, and LANGUAGE_CODE_FR, LANGUAGE_CODE_EN
* inside for which the value must be set.
*
* use the value in the program, and LANGUAGE_CODE_FR, LANGUAGE_CODE_EN
* inside for which the value must be set.
*
- * @return
the
group
+ * @return
TRUE if it is a
group
*/
boolean group() default false;
*/
boolean group() default false;
@@
-89,8
+90,20
@@
public @interface Meta {
*/
boolean nullable() default true;
*/
boolean nullable() default true;
+ /**
+ * The default value of this item.
+ *
+ * @return the value
+ */
+ String def() default "";
+
/**
* This item is a comma-separated list of values instead of a single value.
/**
* This item is a comma-separated list of values instead of a single value.
+ * <p>
+ * The list items are separated by a comma, each surrounded by
+ * double-quotes, with backslashes and double-quotes escaped by a backslash.
+ * <p>
+ * Example: <tt>"un", "deux"</tt>
*
* @return TRUE if it is
*/
*
* @return TRUE if it is
*/