Subversion Repositories SmartDukaan

Rev

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

Rev 2027 Rev 2119
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 BEST_DEALS = "Best Deals";
17
    public static final String BEST_DEALS = "Best Deals";
17
    public static final String BEST_SELLERS = "Best Sellers";
18
    public static final String BEST_SELLERS = "Best Sellers";
18
    public static final String LATEST_ARRIVALS = "Latest Arrivals";
19
    public static final String LATEST_ARRIVALS = "Latest Arrivals";
19
 
20
 
20
    private Tree tree;
21
    private Tree tree;
Line 32... Line 33...
32
 
33
 
33
        addItem(root, ALL_ITEMS);
34
        addItem(root, ALL_ITEMS);
34
        addItem(root, BEST_DEALS);
35
        addItem(root, BEST_DEALS);
35
        addItem(root, BEST_SELLERS);
36
        addItem(root, BEST_SELLERS);
36
        addItem(root, LATEST_ARRIVALS);
37
        addItem(root, LATEST_ARRIVALS);
-
 
38
        addItem(root, ALL_ACTIVE_ITEMS);
37
 
39
 
38
        root.setState(true);
40
        root.setState(true);
39
        initWidget(tree);
41
        initWidget(tree);
40
    }
42
    }
41
 
43