|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handler for localization support and synchronization of a .properties-file and presentation.
Entries in files with format:
is mapped to a Presentation with formID:. . =
PresentationDescription desc = findDescription(constraintID); desc.setAttribute(attributeKey, attributeValue)
Method Summary | |
void |
localize(Presentation presentation,
java.lang.Class targetClass)
Find a resourceBundle in the default locale and apply to all presentation attributes of the given presentation. |
void |
updateBundle(Presentation presentation,
java.net.URL bundle)
Merge the presentation attributes of the presentation into the properties found at the file location bundle. |
void |
updatePresentation(java.util.ResourceBundle bundle,
Presentation presentation)
Apply the resourceBundle to all presentation attributes of the presentation. |
Method Detail |
public void localize(Presentation presentation, java.lang.Class targetClass)
presentation
- targetClass
- public void updatePresentation(java.util.ResourceBundle bundle, Presentation presentation)
bundle
- presentation
- public void updateBundle(Presentation presentation, java.net.URL bundle)
If there the file does not yet exist, it will be created. If the file already exists it should be encoded like Properties (that is ISO 8859-1 with escaped unicode chars). A block representing the attributes should be written (replacing a possible existing block for this presentation), unrelated content is preserved as is.
presentation
- bundle
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |