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

ilex.gui.CheckableItem Maven / Gradle / Ivy

Go to download

A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.

The newest version!
package ilex.gui;

/**
* Used by CheckBoxList to display objects that may be selected.
*/
public abstract class CheckableItem
{
    private boolean selected;

    protected CheckableItem()
    {
        selected = false;
    }

    /**
     * @return true if item is currently selected.
     */
    public boolean isSelected() { return selected; }

    /**
     * Selects or de-selects this item.
     * @param selected true if item is selected.
     */
    public void setSelected(boolean selected) { this.selected = selected; }

    /**
     * Subclass must provide method to return displayable string.
     * @return displayable string
     */
    public abstract String getDisplayString();
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy