Package de.mhus.lib.form.definition
Class FmNumber
- java.lang.Object
-
- All Implemented Interfaces:
IDefDefinition,ILog,IProperties,IReadProperties,MNlsProvider,Nls,Serializable,Iterable<Map.Entry<String,Object>>,Map<String,Object>
public class FmNumber extends IFmElement
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFmNumber.FORMATstatic classFmNumber.TYPES
-
Field Summary
Fields Modifier and Type Field Description static StringALLOW_NEGATIVEstatic StringFORMATstatic StringMAXIMUMstatic StringMINIMUMstatic StringNUMBER_TYPEstatic StringTYPE_NUMBER-
Fields inherited from class de.mhus.lib.form.definition.IFmElement
ALLOW_NULL, DEFAULT, DESCRIPTION, ENABLED, FALSE, FULLWIDTH, HEIGHT, NAME, SOURCES, TITLE, TITLEINSIDE, TRUE, TYPE, WIZARD
-
Fields inherited from class de.mhus.lib.core.directory.WritableResourceNode
MOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UP
-
Fields inherited from class de.mhus.lib.core.directory.ResourceNode
compiledCache, compiler
-
-
Constructor Summary
Constructors Constructor Description FmNumber(de.mhus.lib.basics.consts.Identifier ident, FmNumber.TYPES type, String title, String description, IDefAttribute... definitions)FmNumber(String name, FmNumber.TYPES type, IDefAttribute... definitions)FmNumber(String name, FmNumber.TYPES type, String title, String description, IDefAttribute... definitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FmNumberallowNegative(boolean in)FmNumberallowNull(boolean in)FmNumberformat(FmNumber.FORMAT format)FmNumbermax(int max)FmNumbermin(int min)-
Methods inherited from class de.mhus.lib.core.definition.DefComponent
addAttribute, addDefinition, definitions, fillNls, inject
-
Methods inherited from class de.mhus.lib.core.config.HashConfig
clear, createConfig, getInputStream, getName, getNode, getNodeKeys, getNodes, getNodes, getParent, getProperty, getPropertyKeys, getUrl, isEditable, isProperty, keys, moveConfig, removeConfig, removeProperty, setConfig, setProperty, toString, unlink
-
Methods inherited from class de.mhus.lib.core.config.IConfig
getRenditionProperties, getRenditions, hasContent, isValid
-
Methods inherited from class de.mhus.lib.core.directory.WritableResourceNode
setString
-
Methods inherited from class de.mhus.lib.core.directory.ResourceNode
containsValue, dump, entrySet, getExtracted, getExtracted, getExtracted, getInputStream, getNodeByPath, getRenditionProperties, size, values
-
Methods inherited from class de.mhus.lib.core.AbstractProperties
containsKey, get, getBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getFormatted, getInt, getLong, getNumber, getString, getString, isEmpty, iterator, keySet, put, putAll, putReadProperties, remove, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumber, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
TYPE_NUMBER
public static final String TYPE_NUMBER
- See Also:
- Constant Field Values
-
ALLOW_NEGATIVE
public static final String ALLOW_NEGATIVE
- See Also:
- Constant Field Values
-
MINIMUM
public static final String MINIMUM
- See Also:
- Constant Field Values
-
MAXIMUM
public static final String MAXIMUM
- See Also:
- Constant Field Values
-
FORMAT
public static final String FORMAT
- See Also:
- Constant Field Values
-
NUMBER_TYPE
public static final String NUMBER_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FmNumber
public FmNumber(de.mhus.lib.basics.consts.Identifier ident, FmNumber.TYPES type, String title, String description, IDefAttribute... definitions)
-
FmNumber
public FmNumber(String name, FmNumber.TYPES type, String title, String description, IDefAttribute... definitions)
-
FmNumber
public FmNumber(String name, FmNumber.TYPES type, IDefAttribute... definitions)
-
-
Method Detail
-
allowNull
public FmNumber allowNull(boolean in) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
allowNegative
public FmNumber allowNegative(boolean in) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
min
public FmNumber min(int min) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
max
public FmNumber max(int max) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
format
public FmNumber format(FmNumber.FORMAT format) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
-