Subversion Repositories SmartDukaan

Rev

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

Rev 2126 Rev 2208
Line 37... Line 37...
37
    @UiField FlexTable header;
37
    @UiField FlexTable header;
38
    @UiField FlexTable itemDescriptionTable;
38
    @UiField FlexTable itemDescriptionTable;
39
    @UiField SelectionStyle selectionStyle;
39
    @UiField SelectionStyle selectionStyle;
40
    private int selectedRow = -1;
40
    private int selectedRow = -1;
41
    
41
    
42
    
42
    private HashMap map;
43
    private List<Item> items;
43
    private List<Item> items;
44
    
44
    
45
    private ItemDetails itemDetails;
45
    private ItemDetails itemDetails;
46
    
46
    
47
    public ItemList() {
47
    public ItemList() {
Line 166... Line 166...
166
                //setItems(result);
166
                //setItems(result);
167
            }
167
            }
168
        });
168
        });
169
    }
169
    }
170
    
170
    
-
 
171
    public void loadAllPhasedOutItems() {
-
 
172
        catalogService.getAllPhasedOutItems(new AsyncCallback<List<Item>>() {
-
 
173
            public void onFailure(Throwable caught) {
-
 
174
                caught.printStackTrace();
-
 
175
                Window.alert("Could not load phased out items...");
-
 
176
            }
-
 
177
            public void onSuccess(List<Item> result) {
-
 
178
                updateItemDescriptionTable(result);
-
 
179
            }
-
 
180
        });
-
 
181
    }
-
 
182
    
-
 
183
    public void loadAllPausedItems() {
-
 
184
        catalogService.getAllPausedItems(new AsyncCallback<List<Item>>() {
-
 
185
            public void onFailure(Throwable caught) {
-
 
186
                caught.printStackTrace();
-
 
187
                Window.alert("Could not load paused items...");
-
 
188
            }
-
 
189
            public void onSuccess(List<Item> result) {
-
 
190
                updateItemDescriptionTable(result);
-
 
191
            }
-
 
192
        });
-
 
193
    }
-
 
194
    
171
    public void loadBestDeals() {
195
    public void loadBestDeals() {
172
        catalogService.getBestDeals(new AsyncCallback<List<Item>>() {
196
        catalogService.getBestDeals(new AsyncCallback<List<Item>>() {
173
            public void onFailure(Throwable caught) {
197
            public void onFailure(Throwable caught) {
174
                caught.printStackTrace();
198
                caught.printStackTrace();
175
                Window.alert("Could not load best deals.");
199
                Window.alert("Could not load best deals.");