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

org.valkyriercp.widget.SelectionWidget Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package org.valkyriercp.widget;

import org.valkyriercp.command.support.ActionCommand;

/**
 * Widget that can pass a selection of objects, i.e. a table in which a selection can be made
 *
 * @author jh
 */
public interface SelectionWidget extends Widget
{
    /**
     * Command called to set the selection for the widget. I.e. a double-click listener on the table
     * that selects the current selected row and closes the view to the table.sluiten
     *
     * @param command
     */
    void setSelectionCommand(ActionCommand command);

    void removeSelectionCommand();

    /**
     * @return The selected object(s)
     */
    Object getSelection();
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy