net.sourceforge.squirrel_sql.fw.gui.IToggleAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fw Show documentation
Show all versions of fw Show documentation
The framework library contains utility classes that are generic and useful for building applications
that introspect a database via JDBC. These are not intended to be SQuirreLSQL-specific and could be
used by other projects JDBC front-end applications. This project is guaranteed to have no code
dependencies on other SQuirreLSQL projects and could therefore be used when building a different
JDBC front-end application.
package net.sourceforge.squirrel_sql.fw.gui;
import javax.swing.*;
public interface IToggleAction extends Action
{
/**
* The framework will call this getter and add toggleable components (JButton, JCheckedMenuItem, ... )
* to the holder. All the implementing action needs to do is to keep a member of type ToggleComponentHolder
* and return it here.
*
* Through ToggleComponentHolder.setSelected(boolean) the implementing action is able toggle selection
* of the toggleable components kept inside the holder.
*/
ToggleComponentHolder getToggleComponentHolder();
}