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

ch.randelshofer.quaqua.BrowserCellRenderer Maven / Gradle / Ivy

Go to download

A Mavenisation of the Quaqua Mac OSX Swing Look and Feel (Java library) Quaqua Look and Feel (C) 2003-2010, Werner Randelshofer. Mavenisation by Matt Gumbley, DevZendo.org - for problems with Mavenisation, see Matt; for issues with Quaqua, see the Quaqua home page. For full license details, see http://randelshofer.ch/quaqua/license.html

The newest version!
/**
 * @(#)BrowserCellRenderer.java
 *
 * Copyright (c) 2008-2010 Werner Randelshofer, Immensee, Switzerland.
 * All rights reserved.
 *
 * You may not use, copy or modify this file, except in compliance with the
 * license agreement you entered into with Werner Randelshofer.
 * For details see accompanying license terms.
 */

package ch.randelshofer.quaqua;

import java.awt.*;

/**
 * Defines the requirements for an object that displays a tree node in a JBrowser.
 *
 * @author Werner Randelshofer
 * @version $Id: BrowserCellRenderer.java 361 2010-11-21 11:19:20Z wrandelshofer $
 */
public interface BrowserCellRenderer {

    /**
     * Sets the value of the current tree cell to value.
     * If selected is true, the cell will be drawn as if
     * selected. If expanded is true the node is currently
     * expanded and if leaf is true the node represets a
     * leaf and if hasFocus is true the node currently has
     * focus. tree is the JTree the receiver is being
     * configured for.  Returns the Component that the renderer
     * uses to draw the value.
     *
     * @return	the Component that the renderer uses to draw the value
     */
    Component getBrowserCellRendererComponent(JBrowser browser, Object value,
				   boolean selected, boolean expanded,
				   boolean leaf, int row, boolean hasFocus);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy