Package com.jidesoft.swing
Interface TabEditingValidator
-
public interface TabEditingValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
alertIfInvalid(int tabIndex, java.lang.String tabText)
This is called before editStop.boolean
isValid(int tabIndex, java.lang.String tabText)
This should validate that the following value would pass is canStopEdit is called.boolean
shouldStartEdit(int tabIndex, java.awt.event.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, java.awt.event.MouseEvent event)
This is called to determine if the follow mouse event should start editing for the give tabIndex.
-
isValid
boolean isValid(int tabIndex, java.lang.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, java.lang.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.
-
-