
org.nakedobjects.plugins.htmlviewer.About Maven / Gradle / Ivy
The newest version!
package org.nakedobjects.plugins.htmlviewer;
import org.nakedobjects.metamodel.commons.about.AboutNakedObjects;
import org.nakedobjects.plugins.htmlviewer.component.Page;
import org.nakedobjects.plugins.htmlviewer.component.ViewPane;
import org.nakedobjects.plugins.htmlviewer.request.Action;
import org.nakedobjects.plugins.htmlviewer.request.Context;
import org.nakedobjects.plugins.htmlviewer.request.Request;
class About implements Action {
public void execute(final Request request, final Context context, final Page page) {
final ViewPane content = page.getViewPane();
content.setTitle("About", null);
content.add(context.getComponentFactory().createInlineBlock("about", AboutNakedObjects.getApplicationName(), null));
content.add(context.getComponentFactory().createInlineBlock("about", AboutNakedObjects.getApplicationVersion(), null));
content.add(context.getComponentFactory().createInlineBlock("about", AboutNakedObjects.getApplicationCopyrightNotice(),
null));
content.add(context.getComponentFactory().createInlineBlock("about", AboutNakedObjects.getFrameworkName(), null));
content.add(context.getComponentFactory().createInlineBlock("about", AboutNakedObjects.getFrameworkVersion(), null));
content.add(context.getComponentFactory().createInlineBlock("about", AboutNakedObjects.getFrameworkCopyrightNotice(),
null));
}
public String name() {
return "about";
}
}
// Copyright (c) Naked Objects Group Ltd.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy