|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.SharedResources
Class which holds shared resources. Resources can be shared by name. An optional scope can be given to prevent naming conflicts and a locale and/or style can be given as well.
Constructor Summary | |
(package private) |
SharedResources(Application application)
|
Method Summary | |
void |
add(java.lang.Class scope,
java.lang.String name,
java.util.Locale locale,
java.lang.String style,
Resource resource)
|
void |
add(java.lang.String name,
java.util.Locale locale,
Resource resource)
|
void |
add(java.lang.String name,
Resource resource)
|
Resource |
get(java.lang.Class scope,
java.lang.String name,
java.util.Locale locale,
java.lang.String style,
boolean exact)
|
Resource |
get(java.lang.String key)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
void |
onResourceRequested(java.lang.String key)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
static java.lang.String |
path(Application application,
java.lang.Class scope,
java.lang.String path,
java.util.Locale locale,
java.lang.String style)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
static java.lang.String |
path(java.lang.String path,
java.util.Locale locale,
java.lang.String style)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
void |
remove(java.lang.String key)
Removes a shared resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
SharedResources(Application application)
Method Detail |
public static java.lang.String path(java.lang.String path, java.util.Locale locale, java.lang.String style)
path
- The resource pathlocale
- The localestyle
- The style (see Session
)
public static java.lang.String path(Application application, java.lang.Class scope, java.lang.String path, java.util.Locale locale, java.lang.String style)
application
- The application objectscope
- The scope of the resourcepath
- The resource pathlocale
- The localestyle
- The style (see Session
)
public final void add(java.lang.Class scope, java.lang.String name, java.util.Locale locale, java.lang.String style, Resource resource)
scope
- Scope of resourcename
- Logical name of resourcelocale
- The locale of the resourcestyle
- The resource style (see Session
)resource
- Resource to storepublic final void add(java.lang.String name, java.util.Locale locale, Resource resource)
name
- Logical name of resourcelocale
- The locale of the resourceresource
- Resource to storepublic final void add(java.lang.String name, Resource resource)
name
- Logical name of resourceresource
- Resource to storepublic final Resource get(java.lang.Class scope, java.lang.String name, java.util.Locale locale, java.lang.String style, boolean exact)
scope
- The resource's scopename
- Name of resource to getlocale
- The locale of the resourcestyle
- The resource style (see Session
)exact
- If true then only return the resource that is registerd for the given locale and style.
public final Resource get(java.lang.String key)
key
- Shared resource key
public final void remove(java.lang.String key)
key
- Shared resource keypublic final void onResourceRequested(java.lang.String key)
key
- Shared resource key
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |