All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.plugins.htmlviewer.component.ImageProvider Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.plugins.htmlviewer.component;

import org.nakedobjects.metamodel.adapter.NakedObject;
import org.nakedobjects.metamodel.commons.debug.DebugString;
import org.nakedobjects.metamodel.spec.NakedObjectSpecification;

/**
 * Factors out the {@link ImageLookup} responsibilities into an interface, with a
 * view to moving towards alternative mechanisms.
 */
public interface ImageProvider {

    public void debug(final DebugString debug);
    
    /**
     * For an object, the icon name from the object is return if it is not null, otherwise the specification
     * is used to look up a suitable image name.
     * 
     * @see NakedObject#getIconName()
     * @see #image(NakedObjectSpecification)
     */
    public String image(final NakedObject object);

    public String image(final NakedObjectSpecification specification);

    public String image(final String name);

}


// Copyright (c) Naked Objects Group Ltd.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy