Subversion Repositories SmartDukaan

Rev

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

Rev 2119 Rev 2208
Line 12... Line 12...
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 = "All Active Items";
-
 
17
    public static final String ALL_PHASED_OUT_ITEMS = "All Phased Out Items";
-
 
18
    public static final String ALL_PAUSED_ITEMS = "All Paused Items";
17
    public static final String BEST_DEALS = "Best Deals";
19
    public static final String BEST_DEALS = "Best Deals";
18
    public static final String BEST_SELLERS = "Best Sellers";
20
    public static final String BEST_SELLERS = "Best Sellers";
19
    public static final String LATEST_ARRIVALS = "Latest Arrivals";
21
    public static final String LATEST_ARRIVALS = "Latest Arrivals";
20
 
22
 
21
    private Tree tree;
23
    private Tree tree;
Line 30... Line 32...
30
        tree = new Tree();
32
        tree = new Tree();
31
        TreeItem root = new TreeItem("Catalog");
33
        TreeItem root = new TreeItem("Catalog");
32
        tree.addItem(root);
34
        tree.addItem(root);
33
 
35
 
34
        addItem(root, ALL_ITEMS);
36
        addItem(root, ALL_ITEMS);
-
 
37
        addItem(root, ALL_ACTIVE_ITEMS);
-
 
38
        addItem(root, ALL_PHASED_OUT_ITEMS);
-
 
39
        addItem(root, ALL_PAUSED_ITEMS);
35
        addItem(root, BEST_DEALS);
40
        addItem(root, BEST_DEALS);
36
        addItem(root, BEST_SELLERS);
41
        addItem(root, BEST_SELLERS);
37
        addItem(root, LATEST_ARRIVALS);
42
        addItem(root, LATEST_ARRIVALS);
38
        addItem(root, ALL_ACTIVE_ITEMS);
43
        
39
 
44
 
40
        root.setState(true);
45
        root.setState(true);
41
        initWidget(tree);
46
        initWidget(tree);
42
    }
47
    }
43
 
48