KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > selection > SelectionModel


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.selection;
14
15 import java.util.Collection JavaDoc;
16 import java.util.Set JavaDoc;
17
18 /**
19  * SelectionModel for Tree and Table components.
20  *
21  * @author av
22  */

23 public interface SelectionModel extends SingleSelectionModel {
24   /** no selection */
25   static final int NO_SELECTION = 0;
26   /** radio buttons */
27   static final int SINGLE_SELECTION = 1;
28   /** check boxes */
29   static final int MULTIPLE_SELECTION = 2;
30   /** hyperlinks */
31   static final int SINGLE_SELECTION_HREF = 3;
32   /** use image buttons that look like checkboxes */
33   static final int MULTIPLE_SELECTION_BUTTON = 4;
34   /** hyperlinks */
35   static final int MULTIPLE_SELECTION_HREF = 5;
36   /** use image buttons that look like checkboxes */
37   static final int SINGLE_SELECTION_BUTTON = 6;
38   
39   int getMode();
40   void setMode(int mode);
41   Set JavaDoc getSelection();
42   void add(Object JavaDoc obj);
43   void addAll(Collection JavaDoc c);
44   void remove(Object JavaDoc obj);
45   boolean contains(Object JavaDoc obj);
46 }
47
Popular Tags