Class BasicTextAreaSettingSpecifier
java.lang.Object
net.solarnetwork.settings.support.BaseSettingSpecifier
net.solarnetwork.settings.support.BaseKeyedSettingSpecifier<String>
net.solarnetwork.settings.support.BasicTextAreaSettingSpecifier
- All Implemented Interfaces:
KeyedSettingSpecifier<String>,MappableSpecifier,SettingSpecifier,TextAreaSettingSpecifier
public class BasicTextAreaSettingSpecifier
extends BaseKeyedSettingSpecifier<String>
implements TextAreaSettingSpecifier
Basic implementation of
TextAreaSettingSpecifier.- Since:
- 2.0
- Version:
- 1.1
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.settings.MappableSpecifier
MappableSpecifier.Mapper -
Constructor Summary
ConstructorsConstructorDescriptionBasicTextAreaSettingSpecifier(String key, String defaultValue) Constructor.BasicTextAreaSettingSpecifier(String key, String defaultValue, boolean direct) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDirect()Flag indicating the text area content should be handled directly like a text field.Return a setting specifier mapped to a new path, using aMappableSpecifier.Mapper.mappedWithPlaceholer(String template) Return a setting specifier mapped to a new path, using a format template.voidsetDirect(boolean direct) Set the direct mode toggle.Methods inherited from class net.solarnetwork.settings.support.BaseKeyedSettingSpecifier
getDefaultValue, getDescriptionArguments, getKey, isTransient, mappedTo, setDefaultValue, setDescriptionArguments, setKey, setTransient, toStringMethods inherited from class net.solarnetwork.settings.support.BaseSettingSpecifier
getTitle, getType, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.solarnetwork.settings.KeyedSettingSpecifier
getDefaultValue, getDescriptionArguments, getKey, isTransientMethods inherited from interface net.solarnetwork.settings.MappableSpecifier
mappedToMethods inherited from interface net.solarnetwork.settings.SettingSpecifier
getTitle, getType
-
Constructor Details
-
BasicTextAreaSettingSpecifier
Constructor.- Parameters:
key- the keydefaultValue- the default value
-
BasicTextAreaSettingSpecifier
Constructor.- Parameters:
key- the keydefaultValue- the default valuedirect- the direct mode- Since:
- 1.1
-
-
Method Details
-
mappedWithPlaceholer
Description copied from interface:MappableSpecifierReturn a setting specifier mapped to a new path, using a format template.- Specified by:
mappedWithPlaceholerin interfaceMappableSpecifier- Parameters:
template- the format template- Returns:
- the new instance
-
mappedWithMapper
Description copied from interface:MappableSpecifierReturn a setting specifier mapped to a new path, using aMappableSpecifier.Mapper.- Specified by:
mappedWithMapperin interfaceMappableSpecifier- Parameters:
mapper- the mapper- Returns:
- the new instance
-
isDirect
public boolean isDirect()Description copied from interface:TextAreaSettingSpecifierFlag indicating the text area content should be handled directly like a text field.- Specified by:
isDirectin interfaceTextAreaSettingSpecifier- Returns:
- true to treat the text area content directly like a text field, false to treat like an external resource to upload indirectly
-
setDirect
public void setDirect(boolean direct) Set the direct mode toggle.- Parameters:
direct- the mode to set
-