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

com.vaadin.flow.component.spreadsheet.rpc.SpreadsheetServerRpc Maven / Gradle / Ivy

package com.vaadin.flow.component.spreadsheet.rpc;

/*
 * #%L
 * Vaadin Spreadsheet
 * %%
 * Copyright (C) 2013 - 2022 Vaadin Ltd
 * %%
 * This program is available under Commercial Vaadin Developer License
 * 4.0 (CVDLv4).
 *
 * For the full License, see .
 * #L%
 */

import com.vaadin.flow.component.spreadsheet.client.SpreadsheetHandler;

public interface SpreadsheetServerRpc extends SpreadsheetHandler {

    /**
     * Called when the client side connector has been initialized.
     *
     * This is for making sure that the non-state related stuff is cleared from
     * server side when needed, because non state stuff is not resent to client
     * when the component is attached again. Thus this marks that cached should
     * be cleared etc.
     */
    void onConnectorInit();

    /**
     * Context menu should be created for the appropriate selection.
     * 

* Selection can change if the cell at the given indexes isn't included in * the previous selection. * * @param row * 1-based * @param column * 1-based */ void contextMenuOpenOnSelection(int row, int column); /** * The action was selected from context menu for the current selection. * * @param actionKey */ void actionOnCurrentSelection(String actionKey); /** * Context menu should be created for the row. * * @param rowIndex * 1-based */ void rowHeaderContextMenuOpen(int rowIndex); /** * The action was selected from context menu for the row header. * * @param actionKey */ void actionOnRowHeader(String actionKey); /** * Context menu should be created for the column. * * @param columnIndex * 1-based */ void columnHeaderContextMenuOpen(int columnIndex); /** * The action was selected from context menu for the column header. * * @param actionKey */ void actionOnColumnHeader(String actionKey); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy