JIDE 3.5.15

com.jidesoft.swing
Interface TabEditingValidator


public interface TabEditingValidator


Method Summary
 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 Detail

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.


JIDE 3.5.15