Search in sources :

Example 6 with IBootstrapSettings

use of de.agilecoders.wicket.core.settings.IBootstrapSettings in project oc-explorer by devgateway.

the class FormsWebApplication method configureBootstrap.

/**
 * configures wicket-bootstrap and installs the settings.
 */
private void configureBootstrap() {
    WicketWebjars.install(this);
    final IBootstrapSettings settings = new BootstrapSettings();
    // specify an empty bootstrap css resource so that we can have more
    // control when do we load the bootstrap styles.
    // By default all pages will load bootstrap.css file and there are
    // situations (like print page) when we don't need this styles.
    // The boostrap.css file is loaded as dependency in MainCss Instance
    // settings.setCssResourceReference(EmptyCss.INSTANCE);
    settings.useCdnResources(false);
    // use the default bootstrap theme
    Bootstrap.install(this, settings);
    BootstrapLess.install(this);
}
Also used : IBootstrapSettings(de.agilecoders.wicket.core.settings.IBootstrapSettings) BootstrapSettings(de.agilecoders.wicket.core.settings.BootstrapSettings) IBootstrapSettings(de.agilecoders.wicket.core.settings.IBootstrapSettings)

Example 7 with IBootstrapSettings

use of de.agilecoders.wicket.core.settings.IBootstrapSettings in project webanno by webanno.

the class BootstrapAwareJQueryUIJavaScriptResourceReference method getDependencies.

@Override
public List<HeaderItem> getDependencies() {
    IBootstrapSettings settings = Bootstrap.getSettings();
    final JavaScriptReferenceHeaderItem jsReference = JavaScriptHeaderItem.forReference(settings.getJsResourceReference(), new PageParameters(), "bootstrap-js", settings.deferJavascript());
    return Dependencies.combine(super.getDependencies(), jsReference);
}
Also used : IBootstrapSettings(de.agilecoders.wicket.core.settings.IBootstrapSettings) JavaScriptReferenceHeaderItem(org.apache.wicket.markup.head.JavaScriptReferenceHeaderItem) PageParameters(org.apache.wicket.request.mapper.parameter.PageParameters)

Example 8 with IBootstrapSettings

use of de.agilecoders.wicket.core.settings.IBootstrapSettings in project ocvn by devgateway.

the class FormsWebApplication method configureBootstrap.

/**
 * configures wicket-bootstrap and installs the settings.
 */
private void configureBootstrap() {
    WicketWebjars.install(this);
    final IBootstrapSettings settings = new BootstrapSettings();
    // specify an empty bootstrap css resource so that we can have more
    // control when do we load the bootstrap styles.
    // By default all pages will load bootstrap.css file and there are
    // situations (like print page) when we don't need this styles.
    // The boostrap.css file is loaded as dependency in MainCss Instance
    // settings.setCssResourceReference(EmptyCss.INSTANCE);
    settings.useCdnResources(false);
    // use the default bootstrap theme
    Bootstrap.install(this, settings);
    BootstrapLess.install(this);
}
Also used : IBootstrapSettings(de.agilecoders.wicket.core.settings.IBootstrapSettings) BootstrapSettings(de.agilecoders.wicket.core.settings.BootstrapSettings) IBootstrapSettings(de.agilecoders.wicket.core.settings.IBootstrapSettings)

Aggregations

IBootstrapSettings (de.agilecoders.wicket.core.settings.IBootstrapSettings)8 BootstrapSettings (de.agilecoders.wicket.core.settings.BootstrapSettings)3 BootswatchThemeProvider (de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchThemeProvider)2 Configuration (com.github.sommeri.less4j.LessCompiler.Configuration)1 SingleThemeProvider (de.agilecoders.wicket.core.settings.SingleThemeProvider)1 LessCompilerConfigurationFactory (de.agilecoders.wicket.less.LessCompilerConfigurationFactory)1 Properties (java.util.Properties)1 ClassPathScanImplementationLookup (org.apache.syncope.client.console.init.ClassPathScanImplementationLookup)1 FilesystemResource (org.apache.syncope.client.console.resources.FilesystemResource)1 WorkflowDefGETResource (org.apache.syncope.client.console.resources.WorkflowDefGETResource)1 WorkflowDefPUTResource (org.apache.syncope.client.console.resources.WorkflowDefPUTResource)1 AdminLTE (org.apache.syncope.client.console.themes.AdminLTE)1 MetaDataRoleAuthorizationStrategy (org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy)1 JavaScriptReferenceHeaderItem (org.apache.wicket.markup.head.JavaScriptReferenceHeaderItem)1 CsrfPreventionRequestCycleListener (org.apache.wicket.protocol.http.CsrfPreventionRequestCycleListener)1 PageParameters (org.apache.wicket.request.mapper.parameter.PageParameters)1 IResource (org.apache.wicket.request.resource.IResource)1 ResourceReference (org.apache.wicket.request.resource.ResourceReference)1 DynamicJQueryResourceReference (org.apache.wicket.resource.DynamicJQueryResourceReference)1 StringValue (org.apache.wicket.util.string.StringValue)1