Ard Schrijvers pushed to branch master at cms-community / hippo-testsuite
Commits: 8b146dad by Woonsan Ko at 2018-02-22T15:49:14+01:00 HSTTWO-4220: Adding drop down list annotation in ChannelInfo example. - - - - - 2 changed files: - components/src/main/java/org/hippoecm/hst/demo/channel/DemoChannelInfo.java - components/src/main/resources/org/hippoecm/hst/demo/channel/DemoChannelInfo.properties Changes: ===================================== components/src/main/java/org/hippoecm/hst/demo/channel/DemoChannelInfo.java ===================================== --- a/components/src/main/java/org/hippoecm/hst/demo/channel/DemoChannelInfo.java +++ b/components/src/main/java/org/hippoecm/hst/demo/channel/DemoChannelInfo.java @@ -16,14 +16,16 @@ package org.hippoecm.hst.demo.channel; import org.hippoecm.hst.configuration.channel.ChannelInfo; +import org.hippoecm.hst.core.parameters.DropDownList; import org.hippoecm.hst.core.parameters.FieldGroup; import org.hippoecm.hst.core.parameters.FieldGroupList; import org.hippoecm.hst.core.parameters.Parameter; +import org.hippoecm.hst.demo.components.CssDisplayValueListProvider; @FieldGroupList({ @FieldGroup( titleKey = "fields.demochannel", - value = { "exampleValue" } + value = { "exampleValue", "theme", "defaultCssDisplay" } ) }) public interface DemoChannelInfo extends ChannelInfo { @@ -31,4 +33,12 @@ public interface DemoChannelInfo extends ChannelInfo { @Parameter(name = "exampleValue") String getExampleValue(); + @Parameter(name = "theme", defaultValue = "default") + @DropDownList({"default", "metal", "warm"}) + String getTheme(); + + @Parameter(name = "defaultCssDisplay") + @DropDownList(valueListProvider = CssDisplayValueListProvider.class) + String getDefaultCssDisplay(); + } ===================================== components/src/main/resources/org/hippoecm/hst/demo/channel/DemoChannelInfo.properties ===================================== --- a/components/src/main/resources/org/hippoecm/hst/demo/channel/DemoChannelInfo.properties +++ b/components/src/main/resources/org/hippoecm/hst/demo/channel/DemoChannelInfo.properties @@ -1,3 +1,7 @@ fields.demochannel=Channel properties exampleValue=Example Value exampleValue.help=Example string value shown on the home page +theme=Theme +theme.help=Select the theme of the site. +defaultCssDisplay=Default CSS Display +defaultCssDisplay.help=Select the default CSS display option. View it on GitLab: https://code.onehippo.org/cms-community/hippo-testsuite/commit/8b146dad43f8eb668c1a9ebda7f645643fc3751e --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-testsuite/commit/8b146dad43f8eb668c1a9ebda7f645643fc3751e You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn