|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.style.StyleSheetCollectionHelper
An abstract helper implementation to make handling the complex registration and unregistration of the StyleSheetCollection easier.
If the stylesheet collection is not registered/unregistered properly, it may cause horrible effects like OutOfMemoryExceptions or uncontrollable missbehaviour.
StyleSheetCollection
,
ElementStyleSheet
,
Serialized FormConstructor Summary | |
StyleSheetCollectionHelper()
DefaultConstructor. |
Method Summary | |
StyleSheetCollection |
getStyleSheetCollection()
Returns the stylesheet collection assigned with this StyleSheetCollectioHelper, or null, if no collection is registered. |
protected abstract void |
handleRegisterStyleSheetCollection()
Handles the stylesheet collection registration. |
protected abstract void |
handleUnregisterStyleSheetCollection()
Handles the stylesheet collection removal. |
void |
registerStyleSheetCollection(StyleSheetCollection styleSheetCollection)
Registers the given StyleSheet collection with this helper. |
void |
unregisterStyleSheetCollection(StyleSheetCollection styleSheetCollection)
Unregisters the given stylesheet collection from this helper. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StyleSheetCollectionHelper()
Method Detail |
public StyleSheetCollection getStyleSheetCollection()
public void unregisterStyleSheetCollection(StyleSheetCollection styleSheetCollection) throws InvalidStyleSheetCollectionException
InvalidStyleSheetCollectionException
styleSheetCollection
- the stylesheet collection that should be unregistered.
InvalidStyleSheetCollectionException
- when an other stylesheet was already
registered with this helper
java.lang.NullPointerException
- if the given stylesheet collection is null.public void registerStyleSheetCollection(StyleSheetCollection styleSheetCollection) throws InvalidStyleSheetCollectionException
InvalidStyleSheetCollectionException
.
styleSheetCollection
- the stylesheet collection that should be registered.
InvalidStyleSheetCollectionException
- if there is already an other
stylesheet registered.
java.lang.NullPointerException
- if the given stylesheet collection is null.protected abstract void handleRegisterStyleSheetCollection()
protected abstract void handleUnregisterStyleSheetCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |