01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08:
09: package com.gwtext.client.widgets.menu.event;
10:
11: import com.gwtext.client.widgets.menu.CheckItem;
12:
13: public interface CheckItemListener extends BaseItemListener {
14:
15: /**
16: * Fires before the checked value is set, providing an opportunity to cancel if needed.
17: *
18: * @param item this
19: * @param checked the new checked value that will be set
20: * @return false to cancel
21: */
22: boolean doBeforeCheckChange(CheckItem item, boolean checked);
23:
24: /**
25: * Fires after the checked value has been set.
26: *
27: * @param item this
28: * @param checked the checked value that was set
29: */
30: void onCheckChange(CheckItem item, boolean checked);
31: }
|