com.jidesoft.swing.TabEditingValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jide-oss Show documentation
Show all versions of jide-oss Show documentation
JIDE Common Layer (Professional Swing Components)
package com.jidesoft.swing;
import java.awt.event.MouseEvent;
public interface TabEditingValidator {
/**
* This is called to determine if the follow mouse event should start editing for the give tabIndex.
*/
public boolean shouldStartEdit(int tabIndex, MouseEvent event);
/**
* 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
*
*/
public boolean isValid(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.
*/
public boolean alertIfInvalid(int tabIndex, String tabText);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy