Class CustomEditorEventListener

java.lang.Object
com.vaadin.addon.spreadsheet.client.CustomEditorEventListener
All Implemented Interfaces:
com.google.gwt.user.client.EventListener

public class CustomEditorEventListener extends Object implements com.google.gwt.user.client.EventListener
Custom editor event listener for handling keyboard events and focus changes in a custom editor slot within a spreadsheet. This class listens for keydown events to handle tab and escape keys, focus events to update the selected cell. The focus/blur events is also used to store the focused state of the assigned element in the slot. It is designed to work with a Slot that represents a custom editor and a SpreadsheetWidget that provides the context of the spreadsheet.
  • Constructor Details

    • CustomEditorEventListener

      public CustomEditorEventListener()
  • Method Details

    • init

      public void init(Slot slot, String cellAddress)
    • setCellAddress

      public void setCellAddress(String cellAddress)
    • getCellAddress

      public String getCellAddress()
    • onBrowserEvent

      public void onBrowserEvent(com.google.gwt.user.client.Event event)
      Specified by:
      onBrowserEvent in interface com.google.gwt.user.client.EventListener
    • setSpreadsheetWidget

      public void setSpreadsheetWidget(SpreadsheetWidget widget)