Class TableViewRowEditor

    • Constructor Detail

      • TableViewRowEditor

        public TableViewRowEditor()
    • Method Detail

      • getTableView

        public TableView getTableView()
      • getRowIndex

        public int getRowIndex()
      • getCellEditors

        public Dictionary<java.lang.String,​Component> getCellEditors()
        Gets this row editor's cell editor dictionary. The caller may specify explicit editor components and place them in this dictionary by their table view column names. Any column that does not have an entry in this dictionary will have a TextInput implicitly associated with it during editing.

        This row editor uses data binding to populate the cell editor components and to get the data back out of those components, so it is the caller's responsibility to set up the data binding keys in each component they specify in this dictionary. The data binding key should equal the column name that the cell editor serves.

        Returns:
        The cell editor dictionary.
      • beginEdit

        public void beginEdit​(TableView tableViewArgument,
                              int rowIndexArgument,
                              int columnIndexArgument)
        Description copied from interface: TableView.RowEditor
        Called to begin editing a table row.
        Specified by:
        beginEdit in interface TableView.RowEditor
        Parameters:
        tableViewArgument - The table view being edited.
        rowIndexArgument - Index of the row to edit.
        columnIndexArgument - Index of the column to edit.
      • endEdit

        public void endEdit​(boolean result)
        Description copied from interface: TableView.RowEditor
        Terminates an edit operation.
        Specified by:
        endEdit in interface TableView.RowEditor
        Parameters:
        result - true to perform the edit; false to cancel it.
      • isEditing

        public boolean isEditing()
        Specified by:
        isEditing in interface TableView.RowEditor
        Returns:
        Whether an edit is currently in progress.
      • getEditEffect

        public CardPaneSkin.SelectionChangeEffect getEditEffect()
        Returns the effect that is applied when the editor opens or closes.
        Returns:
        The edit effect, or null for no effect.
      • setEditEffect

        public void setEditEffect​(CardPaneSkin.SelectionChangeEffect editEffect)
        Sets the effect that is applied when the editor opens or closes.
        Parameters:
        editEffect - The edit effect, or null for no effect.
      • getEditEffectDuration

        public int getEditEffectDuration()
        Returns the edit effect duration.
        Returns:
        The effect duration in milliseconds.
      • setEditEffectDuration

        public void setEditEffectDuration​(int effectDuration)
        Sets the edit effect duration.
        Parameters:
        effectDuration - The effect duration in milliseconds.
      • getEditEffectRate

        public int getEditEffectRate()
        Returns the edit effect rate.
        Returns:
        The effect rate.
      • setEditEffectRate

        public void setEditEffectRate​(int effectRate)
        Sets the edit effect rate.
        Parameters:
        effectRate - The effect rate.
      • open

        public void open​(Display display,
                         Window owner)
        Description copied from class: Window
        Opens the window.

        Note that this method is not a synchronous call, it schedules an event to open the window.

        Overrides:
        open in class Window
        Parameters:
        display - The display on which the window will be opened.
        owner - The window's owner, or null if the window has no owner.
      • close

        public void close()
        Description copied from class: Window
        Closes the window and all of its owned windows. If any owned window fails to close, this window will also fail to close.
        Overrides:
        close in class Window