-
Notifications
You must be signed in to change notification settings - Fork 164
BootstrapSettings
You have to override the Application.init()
method and call Bootstrap.install(this, settings)
where settings
is a new instance of BoostrapSettings
or your own implementation of IBootstrapSettings
.
/**
* @see org.apache.wicket.Application#init()
*/
@Override
public void init() {
super.init();
BootstrapSettings settings = new BootstrapSettings();
settings.minify(true); // use minimized version of all bootstrap references
Bootstrap.install(this, settings);
}
``java public interface IBootstrapSettings {
/**
* @return the base twitter bootstrap css resource reference
*/
ResourceReference getCssResourceReference();
/**
* @return the twitter bootstrap responsive css resource reference
*/
ResourceReference getResponsiveCssResourceReference();
/**
* @return the base twitter bootstrap javascript resource reference
*/
ResourceReference getJsResourceReference();
/**
* @return returns the jquery cdn url
*/
String getJqueryUrl();
void setJqueryUrl(final String url);
boolean isMinified();
void minify(final boolean minify);
boolean useModernizr();
void setUseModernizr(final boolean useModernizr);
boolean useResponsiveCss();
void setUseResponsiveCss(final boolean useResponsiveCss);
void setActiveThemeProvider(ActiveThemeProvider themeProvider);
ActiveThemeProvider getActiveThemeProvider();
ThemeProvider getThemeProvider();
void setThemeProvider(ThemeProvider themeProvider);
}
Copyright 2012 AgileCoders.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.