ResourceBundleKey.builder().key("sem.main.feedback.deregistration.user.label") .defaultValue("Please confirm the deregistration") .parameters(ListExtensions.toObjectArray(getDomainName())).build(), this); final IModel<String> placeholderModel = ResourceModelFactory.newResourceModel(
ResourceBundleKey.builder().key("sem.main.feedback.deregistration.user.label") .defaultValue("Please confirm the deregistration") .parameters(ListExtensions.toObjectArray(getDomainName())).build(), this); final IModel<String> placeholderModel = ResourceModelFactory.newResourceModel(
/** * Creates an external link from the given parameters. * * @param linkId * the link id * @param url * the external url * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters for the resource key * @param defaultValue * a default value * @param component * the component * @return the external link */ public static ExternalLink newExternalLink(final String linkId, final String url, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newExternalLink( linkId, url, labelId, ResourceBundleKey.builder().key(resourceModelKey).parameters(parameters) .defaultValue(defaultValue).build(), component); }
/** * Creates the bookmarkable page link. * * @param linkId * the link id * @param pageClass * the page class * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters * @param defaultValue * the default value * @param component * the component * @return the bookmarkable page link */ public static BookmarkablePageLink<String> newBookmarkablePageLink(final String linkId, final Class<? extends Page> pageClass, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newBookmarkablePageLink( linkId, pageClass, labelId, ResourceBundleKey.builder().key(resourceModelKey).parameters(parameters) .defaultValue(defaultValue).build(), component); }
/** * Factory method for create a new {@link ExternalLink}. * * @param linkId * the link id * @param url * the external url * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters for the resource key * @param defaultValue * a default value * @param component * the component * @return the external link */ public static ExternalLink newExternalLink(final String linkId, final String url, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newExternalLink( linkId, url, labelId, ResourceBundleKey.builder().key(resourceModelKey).parameters(parameters) .defaultValue(defaultValue).build(), component); }
/** * Factory method for create a new {@link BookmarkablePageLink}. * * @param linkId * the link id * @param pageClass * the page class * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters * @param defaultValue * the default value * @param component * the component * @return the bookmarkable page link */ public static BookmarkablePageLink<String> newBookmarkablePageLink(final String linkId, final Class<? extends Page> pageClass, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newBookmarkablePageLink( linkId, pageClass, labelId, ResourceBundleKey.builder().key(resourceModelKey).parameters(parameters) .defaultValue(defaultValue).build(), component); }
/** * Factory method for create a new {@link ExternalLink}. * * @param linkId * the link id * @param url * the external url * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters for the resource key * @param defaultValue * a default value * @param component * the component * @return the external link */ public static ExternalLink newExternalLink(final String linkId, final String url, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newExternalLink(linkId, url, labelId, ResourceBundleKey.builder() .key(resourceModelKey).parameters(parameters).defaultValue(defaultValue).build(), component); }
/** * Factory method for create a new {@link BookmarkablePageLink}. * * @param linkId * the link id * @param pageClass * the page class * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters * @param defaultValue * the default value * @param component * the component * @return the bookmarkable page link */ public static BookmarkablePageLink<String> newBookmarkablePageLink(final String linkId, final Class<? extends Page> pageClass, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newBookmarkablePageLink(linkId, pageClass, labelId, ResourceBundleKey.builder() .key(resourceModelKey).parameters(parameters).defaultValue(defaultValue).build(), component); }
/** * Creates an external link from the given parameters. * * @param linkId * the link id * @param url * the external url * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters for the resource key * @param defaultValue * a default value * @param component * the component * @return the external link */ public static ExternalLink newExternalLink(final String linkId, final String url, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newExternalLink(linkId, url, labelId, ResourceBundleKey.builder() .key(resourceModelKey).parameters(parameters).defaultValue(defaultValue).build(), component); }
/** * Creates the bookmarkable page link. * * @param linkId * the link id * @param pageClass * the page class * @param labelId * the label id * @param resourceModelKey * the resource model key * @param parameters * the parameters * @param defaultValue * the default value * @param component * the component * @return the bookmarkable page link */ public static BookmarkablePageLink<String> newBookmarkablePageLink(final String linkId, final Class<? extends Page> pageClass, final String labelId, final String resourceModelKey, final Object[] parameters, final String defaultValue, final Component component) { return newBookmarkablePageLink(linkId, pageClass, labelId, ResourceBundleKey.builder() .key(resourceModelKey).parameters(parameters).defaultValue(defaultValue).build(), component); }
/** * Factory method for creating the new {@link Component} of the content. This method is invoked * in the constructor from the derived classes and can be overridden so users can provide their * own version of a new {@link Component} of the content. * * @param id * the id * @return the new {@link Component} of the content */ protected Component newContentPanel(final String id) { final ContentPanel contentPanel = new ContentPanel("contentPanel", Model .of(ContentModelBean.builder() .headerResourceKey(ResourceBundleKey.builder() .key("sem.main.info.frame.deregistration.user.label") .parameters(ListExtensions.toObjectArray(getDomainName())).build()) .contentResourceKey(ResourceBundleKey.builder() .key("sem.main.info.frame.deregistration.user.label") .parameters(ListExtensions.toObjectArray(getDomainName())).build()) .build())); contentPanel.getHeader().add(new JQueryJsAppenderBehavior("wrap", "<h1></h1>")); contentPanel.getContent() .add(new JQueryJsAppenderBehavior("wrap", "<p class=\"lead\"></p>")); return contentPanel; }
/** * Factory method for creating the new {@link Component} of the content. This method is invoked * in the constructor from the derived classes and can be overridden so users can provide their * own version of a new {@link Component} of the content. * * @param id * the id * @return the new {@link Component} of the content */ protected Component newContentPanel(final String id) { final ContentPanel contentPanel = new ContentPanel("contentPanel", Model .of(ContentModelBean.builder() .headerResourceKey(ResourceBundleKey.builder() .key("sem.main.info.frame.deregistration.user.label") .parameters(ListExtensions.toObjectArray(getDomainName())).build()) .contentResourceKey( ResourceBundleKey.builder().key("sem.main.info.frame.deregistration.user.label") .parameters(ListExtensions.toObjectArray(getDomainName())).build()) .build())); contentPanel.getHeader().add(new JQueryJsAppenderBehavior("wrap", "<h1></h1>")); contentPanel.getContent() .add(new JQueryJsAppenderBehavior("wrap", "<p class=\"lead\"></p>")); return contentPanel; }
/** * Factory method to create a new {@link IModel} for the 'slogan'. This method is invoked in the * constructor from this class and can be overridden so users can provide their own version of a * new {@link IModel} for the 'slogan'. * * @param domainNameParams * the domain name params * @return the new {@link IModel} for the 'slogan'. */ protected IModel<String> newSloganModel(final Object[] domainNameParams) { return ResourceModelFactory.newResourceModel( ResourceBundleKey.builder().key("main.global.company.url.and.slogan.label") .parameters(domainNameParams).defaultValue("").build(), this); }
/** * Factory method to create a new {@link IModel} for the MailtoViewModel. This method is invoked * in the constructor from this class and can be overridden so users can provide their own * version of a new {@link IModel} for the MailtoViewModel. * * @param params * the params * @return the new {@link IModel} for the MailtoViewModel. */ protected IModel<String> newMailToViewModel(final Object[] params) { return ResourceModelFactory.newResourceModel( ResourceBundleKey.builder().key("global.compamy.mailto.view").parameters(params) .build(), this); }
/** * Factory method to create a new {@link IModel} for the MailtoAddressModel. This method is * invoked in the constructor from this class and can be overridden so users can provide their * own version of a new {@link IModel} for the MailtoAddressModel. * * @param params * the params * @return the new {@link IModel} for the MailtoAddressModel. */ protected IModel<String> newMailToAddressModel(final Object[] params) { return ResourceModelFactory.newResourceModel( ResourceBundleKey.builder().key("global.mailto.address").parameters(params).build(), this); }
/** * Factory method to create a new {@link IModel} for the MailtoAddressModel. This method is * invoked in the constructor from this class and can be overridden so users can provide their * own version of a new {@link IModel} for the MailtoAddressModel. * * @param params * the params * @return the new {@link IModel} for the MailtoAddressModel. */ protected IModel<String> newMailToAddressModel(final Object[] params) { return ResourceModelFactory.newResourceModel( ResourceBundleKey.builder().key("global.mailto.address").parameters(params).build(), this); }
/** * Factory method to create a new {@link IModel} for the 'slogan'. This method is invoked in the * constructor from this class and can be overridden so users can provide their own version of a * new {@link IModel} for the 'slogan'. * * @param domainNameParams * the domain name params * @return the new {@link IModel} for the 'slogan'. */ protected IModel<String> newSloganModel(final Object[] domainNameParams) { return ResourceModelFactory.newResourceModel( ResourceBundleKey.builder().key("main.global.company.url.and.slogan.label") .parameters(domainNameParams).defaultValue("").build(), this); }
/** * Factory method to create a new {@link IModel} for the MailtoViewModel. This method is invoked * in the constructor from this class and can be overridden so users can provide their own * version of a new {@link IModel} for the MailtoViewModel. * * @param params * the params * @return the new {@link IModel} for the MailtoViewModel. */ protected IModel<String> newMailToViewModel(final Object[] params) { return ResourceModelFactory.newResourceModel(ResourceBundleKey.builder() .key("global.compamy.mailto.view").parameters(params).build(), this); }