Search in sources :

Example 6 with DefaultButtonImageResource

use of org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource in project wicket by apache.

the class TestApp2 method init.

@Override
protected void init() {
    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
    setPageManagerProvider(new DefaultPageManagerProvider(this) {

        @Override
        public IPageManager get(IPageManagerContext pageManagerContext) {
            IDataStore dataStore = new HttpSessionDataStore(pageManagerContext, new PageNumberEvictionStrategy(100));
            IPageStore pageStore = new DefaultPageStore(new JavaSerializer(getApplicationKey()), dataStore, getStoreSettings().getInmemoryCacheSize());
            return new PageStoreManager(getName(), pageStore, pageManagerContext);
        }
    });
}
Also used : IPageStore(org.apache.wicket.pageStore.IPageStore) IPageManager(org.apache.wicket.page.IPageManager) PageStoreManager(org.apache.wicket.page.PageStoreManager) DefaultButtonImageResource(org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource) HttpSessionDataStore(org.apache.wicket.pageStore.memory.HttpSessionDataStore) PageNumberEvictionStrategy(org.apache.wicket.pageStore.memory.PageNumberEvictionStrategy) JavaSerializer(org.apache.wicket.serialize.java.JavaSerializer) IPageManagerContext(org.apache.wicket.page.IPageManagerContext) DefaultPageManagerProvider(org.apache.wicket.DefaultPageManagerProvider) IDataStore(org.apache.wicket.pageStore.IDataStore) DefaultPageStore(org.apache.wicket.pageStore.DefaultPageStore)

Aggregations

DefaultButtonImageResource (org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource)6 DefaultPageManagerProvider (org.apache.wicket.DefaultPageManagerProvider)2 IPageManager (org.apache.wicket.page.IPageManager)2 IPageManagerContext (org.apache.wicket.page.IPageManagerContext)2 PageStoreManager (org.apache.wicket.page.PageStoreManager)2 DefaultPageStore (org.apache.wicket.pageStore.DefaultPageStore)2 IDataStore (org.apache.wicket.pageStore.IDataStore)2 IPageStore (org.apache.wicket.pageStore.IPageStore)2 HttpSessionDataStore (org.apache.wicket.pageStore.memory.HttpSessionDataStore)2 PageNumberEvictionStrategy (org.apache.wicket.pageStore.memory.PageNumberEvictionStrategy)2 JavaSerializer (org.apache.wicket.serialize.java.JavaSerializer)2 Font (java.awt.Font)1 BufferedImage (java.awt.image.BufferedImage)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1 Locale (java.util.Locale)1 SharedResources (org.apache.wicket.SharedResources)1 ServerHostNameAndTimeFilter (org.apache.wicket.examples.ServerHostNameAndTimeFilter)1 Test (org.junit.Test)1