Interface TabEditingValidator


public interface TabEditingValidator
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    alertIfInvalid(int tabIndex, String tabText)
    This is called before editStop.
    boolean
    isValid(int tabIndex, String tabText)
    This should validate that the following value would pass is canStopEdit is called.
    boolean
    shouldStartEdit(int tabIndex, MouseEvent event)
    This is called to determine if the follow mouse event should start editing for the give tabIndex.
  • Method Details

    • shouldStartEdit

      boolean shouldStartEdit(int tabIndex, MouseEvent event)
      This is called to determine if the follow mouse event should start editing for the give tabIndex.
    • isValid

      boolean isValid(int tabIndex, String tabText)
      This should validate that the following value would pass is canStopEdit is called. No feedback should be given for this call. This is used when destroying a tab it will either call commitedit or cancel
    • alertIfInvalid

      boolean alertIfInvalid(int tabIndex, String tabText)
      This is called before editStop. If this returns false then the editing will continue. It is the responsibility of the implementation to give any feedback.