01: package net.sourceforge.squirrel_sql.fw.gui;
02:
03: import javax.swing.*;
04:
05: public interface IToggleAction extends Action {
06: /**
07: * The framework will call this getter and add toggleable components (JButton, JCheckedMenuItem, ... )
08: * to the holder. All the implementing action needs to do is to keep a member of type ToggleComponentHolder
09: * and return it here.
10: *
11: * Through ToggleComponentHolder.setSelected(boolean) the implementing action is able toggle selection
12: * of the toggleable components kept inside the holder.
13: */
14: ToggleComponentHolder getToggleComponentHolder();
15: }
|