Subversion Repositories SmartDukaan

Rev

Rev 2208 | Rev 2427 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2208 Rev 2359
Line 11... Line 11...
11
 * A tree displaying a set of catalog folders.
11
 * A tree displaying a set of catalog folders.
12
 */
12
 */
13
public class CatalogTree extends Composite {
13
public class CatalogTree extends Composite {
14
    
14
    
15
    public static final String ALL_ITEMS = "All Items";
15
    public static final String ALL_ITEMS = "All Items";
16
    public static final String ALL_ACTIVE_ITEMS = "All Active Items";
16
    public static final String ALL_ACTIVE_ITEMS = "Active Items";
17
    public static final String ALL_PHASED_OUT_ITEMS = "All Phased Out Items";
17
    public static final String ALL_PHASED_OUT_ITEMS = "Phased Out Items";
18
    public static final String ALL_PAUSED_ITEMS = "All Paused Items";
18
    public static final String ALL_PAUSED_ITEMS = "Paused Items";
-
 
19
    public static final String IN_PROCESS_ITEMS = "In Process Items";
-
 
20
    public static final String CONTENT_COMPLETE_ITEMS = "Content Complete Items";
-
 
21
    
-
 
22
    public static final String RISKY_ITEMS = "Risky Items";
-
 
23
    
19
    public static final String BEST_DEALS = "Best Deals";
24
    public static final String BEST_DEALS = "Best Deals";
20
    public static final String BEST_SELLERS = "Best Sellers";
25
    public static final String BEST_SELLERS = "Best Sellers";
21
    public static final String LATEST_ARRIVALS = "Latest Arrivals";
26
    public static final String LATEST_ARRIVALS = "Latest Arrivals";
22
 
27
    
23
    private Tree tree;
28
    private Tree tree;
24
    
29
    
25
    interface TreeListener {
30
    interface TreeListener {
26
        void onTreeItemClicked(String itemTypes);
31
        void onTreeItemClicked(String itemTypes);
27
    }
32
    }
Line 35... Line 40...
35
 
40
 
36
        addItem(root, ALL_ITEMS);
41
        addItem(root, ALL_ITEMS);
37
        addItem(root, ALL_ACTIVE_ITEMS);
42
        addItem(root, ALL_ACTIVE_ITEMS);
38
        addItem(root, ALL_PHASED_OUT_ITEMS);
43
        addItem(root, ALL_PHASED_OUT_ITEMS);
39
        addItem(root, ALL_PAUSED_ITEMS);
44
        addItem(root, ALL_PAUSED_ITEMS);
-
 
45
        addItem(root, IN_PROCESS_ITEMS);
-
 
46
        addItem(root, CONTENT_COMPLETE_ITEMS);
-
 
47
        
-
 
48
        addItem(root, RISKY_ITEMS);
-
 
49
        
40
        addItem(root, BEST_DEALS);
50
        addItem(root, BEST_DEALS);
41
        addItem(root, BEST_SELLERS);
51
        addItem(root, BEST_SELLERS);
42
        addItem(root, LATEST_ARRIVALS);
52
        addItem(root, LATEST_ARRIVALS);
43
        
53
        
44
 
54