|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.markup.MarkupCache
public class MarkupCache
Load markup and cache it for fast retrieval. If markup file changes, it'll be removed and subsequently reloaded when needed.
| Constructor Summary | |
|---|---|
MarkupCache(Application application)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear markup cache and force reload of all markup data |
MarkupStream |
getMarkupStream(MarkupContainer container)
Gets a fresh markup stream that contains the (immutable) markup resource for this class. |
MarkupStream |
getMarkupStream(MarkupContainer container,
boolean throwException)
Gets a fresh markup stream that contains the (immutable) markup resource for this class. |
boolean |
hasAssociatedMarkup(MarkupContainer container)
Check if container has associated markup |
void |
removeMarkup(MarkupResourceStream markupResourceStream)
Remove the markup from the cache and trigger all associated listeners |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarkupCache(Application application)
application - | Method Detail |
|---|
public final MarkupStream getMarkupStream(MarkupContainer container)
container - The container the markup should be associated with
public final MarkupStream getMarkupStream(MarkupContainer container,
boolean throwException)
container - The container the markup should be associated withthrowException - If true, throw an exception, if markup could not be found
public final boolean hasAssociatedMarkup(MarkupContainer container)
container - The container the markup should be associated with
public void removeMarkup(MarkupResourceStream markupResourceStream)
markupResourceStream - The resource streampublic void clear()
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||