All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jidesoft.swing.TabEditingValidator Maven / Gradle / Ivy

There is a newer version: 3.6.18
Show newest version
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