org.minimalj.frontend.impl.json.JsonSwitchContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minimalj Show documentation
Show all versions of minimalj Show documentation
A java framework aiming for a minimal programming style. Includes GUI and persistence layer.
package org.minimalj.frontend.impl.json;
import org.minimalj.frontend.Frontend.IContent;
import org.minimalj.frontend.Frontend.SwitchContent;
public class JsonSwitchContent extends JsonComponent implements SwitchContent {
private static final long serialVersionUID = 1L;
public JsonSwitchContent() {
super("Switch");
}
@Override
public void show(IContent content) {
JsonFrontend.getClientSession().clearContent(getId());
JsonFrontend.getClientSession().addContent(getId(), (JsonComponent) content);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy