org.nakedobjects.plugins.htmlviewer.html.LogonFormPage Maven / Gradle / Ivy
package org.nakedobjects.plugins.htmlviewer.html;
import java.io.PrintWriter;
import org.nakedobjects.plugins.htmlviewer.component.Block;
import org.nakedobjects.plugins.htmlviewer.component.Component;
import org.nakedobjects.plugins.htmlviewer.component.DebugPane;
import org.nakedobjects.plugins.htmlviewer.component.ViewPane;
public class LogonFormPage extends AbstractHtmlPage {
private final String user;
private final String password;
public LogonFormPage(
final String styleSheet,
final String header,
final String footer,
final String user,
final String password) {
super(styleSheet, header, footer);
this.user = user;
this.password = password;
}
@Override
protected void writeContent(final PrintWriter writer) {
writer.println("");
writer.println("");
if (user.equals("")) {
writer.println("Please enter a user name and password.");
} else {
writer.println("Please enter a valid user name and password.");
}
writer.println("");
writer.println("");
writer.println("");
}
public Block getNavigation() {
return null;
}
public ViewPane getViewPane() {
return null;
}
public void setCrumbs(final Component component) {}
public void setDebug(final DebugPane debugPane) {}
}
// Copyright (c) Naked Objects Group Ltd.