org.nakedobjects.nos.client.dnd.basic.EmptyFieldTitleText Maven / Gradle / Ivy
package org.nakedobjects.nos.client.dnd.basic;
import org.nakedobjects.nos.client.dnd.Content;
import org.nakedobjects.nos.client.dnd.ObjectContent;
import org.nakedobjects.nos.client.dnd.Toolkit;
import org.nakedobjects.nos.client.dnd.View;
import org.nakedobjects.nos.client.dnd.drawing.Text;
import org.nakedobjects.nos.client.dnd.view.text.TitleText;
class EmptyFieldTitleText extends TitleText {
private Content content;
public EmptyFieldTitleText(final View view, final Text style) {
super(view, style, Toolkit.getColor("secondary2"));
content = view.getContent();
}
protected String title() {
return ((ObjectContent) content).getSpecification().getSingularName();
}
}
// Copyright (c) Naked Objects Group Ltd.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy