Package com.jalios.jcms.taglib.settings
Interface ControlSettings<T extends ControlSettings<T>>
-
- Type Parameters:
T- Type ofControlSettings
- All Superinterfaces:
java.lang.Cloneable
- All Known Implementing Classes:
AbstractAreaSettings,AbstractCategorySettings,AbstractChooserSettings,AbstractDataSettings,AbstractTextChooserSettings,AbstractTextSettings,AclSettings,BasicSettings,BooleanSettings,CategorySettings,CategoryTreeSettings,ColorSettings,CountrySettings,DateSettings,DbRecordSettings,DefaultSettings,DurationSettings,EmailSettings,EnumerateSettings,FileSettings,GroupSettings,HiddenSettings,IconSettings,ImagePathSettings,LanguageSettings,MediaPathSettings,MediaSettings,MemberSettings,NumberSettings,PasswordSettings,PublicationSettings,QuerySettings,RichTextAreaSettings,SearchSettings,SelectorSettings,SelectSettings,SqlQuerySettings,SwitchSettings,TelephoneSettings,TextAreaSettings,TextFieldSettings,TimeZoneSettings,TypeSettings,UrlSettings,WikiAreaSettings,WorkspaceSettings,WysiwygSettings
public interface ControlSettings<T extends ControlSettings<T>> extends java.lang.CloneableInterface to provide the settings of a <jalios:control>.
The <jalios:control> tag provides thesettingsattribute that accepts an instance ofControlSettings.
AControlSettingshas options. An option is the combination of a name represented by aStringand a value represented by anObject.- Author:
- ndossantos
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaddOption(java.lang.String optionName, java.lang.Object optionValues)Adds new option with the specified value(s).Tclone()Clone the current ControlSettings.<V> VgetOption(java.lang.String optionName)Returns the value of the specified option.java.util.Collection<java.lang.String>getOptionNames()Returns the names of defined options for the current ControlSettings.ControlTypegetType()Returns theControlTyperelated to the currentControlSettingsimplementation.voidmerge(ControlSettings<?> settings)Merge the current ControlSettings options with the options of specified ControlSettings.TremoveOption(java.lang.String optionName)Removes the specified option.voidresolveOptions(TypeFieldEntry tfe)Set options from the specifiedTypeFieldEntry.
-
-
-
Method Detail
-
getType
ControlType getType()
Returns theControlTyperelated to the currentControlSettingsimplementation.- Returns:
ControlType
-
addOption
T addOption(java.lang.String optionName, java.lang.Object optionValues)
Adds new option with the specified value(s). If the given value isnull, the option is removed.- Parameters:
optionName- Option nameoptionValues- Option value(s)- Returns:
- a reference to this object - used to chain calls
-
getOption
<V> V getOption(java.lang.String optionName)
Returns the value of the specified option.- Parameters:
optionName- Option name- Returns:
- Option value
-
removeOption
T removeOption(java.lang.String optionName)
Removes the specified option.- Parameters:
optionName- Option name- Returns:
- a reference to this object - used to chain calls
-
getOptionNames
java.util.Collection<java.lang.String> getOptionNames()
Returns the names of defined options for the current ControlSettings.- Returns:
Collectionof String representing the option names
-
resolveOptions
void resolveOptions(TypeFieldEntry tfe)
Set options from the specifiedTypeFieldEntry.- Parameters:
tfe-TypeFieldEntry
-
merge
void merge(ControlSettings<?> settings)
Merge the current ControlSettings options with the options of specified ControlSettings.- Parameters:
settings- ControlSettings to be merged with the current ControlSettings
-
clone
T clone() throws java.lang.CloneNotSupportedException
Clone the current ControlSettings.- Returns:
- the new cloned ControlSettings
- Throws:
java.lang.CloneNotSupportedException
-
-