

package org.kie.workbench.common.stunner.core.client.components.toolbox;

/**
 * A toolbox is just a client side component that groups a set of shapes
 * or buttons which provide some information or actions to perform
 * for a certain element.
 */
public interface Toolbox<T extends Toolbox> {

    /**
     * Shows the toolbox.
     */
    T show();

    /**
     * Hides the toolbox.
     */
    T hide();

    /**
     * Destroys the toolbox.
     */
    void destroy();

    /**
     * Hide the toolbox and then destroy it.
     */
    void hideAndDestroy();
}
