net.contextfw.web.commons.i18n.LocaleMessageImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-commons Show documentation
Show all versions of web-commons Show documentation
Context Web Application Framework
The newest version!
package net.contextfw.web.commons.i18n;
import net.contextfw.web.application.component.Buildable;
import net.contextfw.web.application.component.CustomBuild;
import net.contextfw.web.application.component.DOMBuilder;
@Buildable(wrap=false)
class LocaleMessageImpl implements LocaleMessage {
private final LocaleServiceImpl service;
private final String name;
LocaleMessageImpl(LocaleServiceImpl service, String name) {
this.service = service;
this.name = name;
}
@CustomBuild(wrap = false)
public void build(DOMBuilder b) {
b.text(toString());
}
public String toString() {
return service.getText(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy