Subversion Repositories SmartDukaan

Rev

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

Rev 3884 Rev 3921
Line 160... Line 160...
160
    void generateMasterSheet(ClickEvent event)  {
160
    void generateMasterSheet(ClickEvent event)  {
161
        createDialog();
161
        createDialog();
162
    }
162
    }
163
 
163
 
164
    /**
164
    /**
165
     * Creates and pops up  dialog box containing two options. 
165
     * Creates and pops up  dialog box containing following options. 
166
     * 1) Handsets 2) Accessories
166
     * Categories: 1) Handsets 2) Accessories
-
 
167
     * Vendors: 1) Hotspot 2) Tulip 3) Sarvottam
167
     * Also creates submit and cancel buttons and add click event listeners to them.
168
     * Also creates submit and cancel buttons and add click event listeners to them.
168
     * On submit button click, request is sent to <code>in.shop2020.catalog.dashboard.server.FileDownloadServlet<code>
169
     * On submit button click, request is sent to <code>in.shop2020.catalog.dashboard.server.FileDownloadServlet<code>
169
     */
170
     */
170
    private void createDialog() {
171
    private void createDialog() {
171
        VerticalPanel vp = new VerticalPanel();
172
        VerticalPanel vp = new VerticalPanel();
Line 185... Line 186...
185
        vp.add(hpRB);
186
        vp.add(hpRB);
186
        
187
        
187
        final Label vendorLabel = new Label("Vendor");
188
        final Label vendorLabel = new Label("Vendor");
188
        vp.add(vendorLabel);
189
        vp.add(vendorLabel);
189
        
190
        
-
 
191
        //TODO: Get the list of all vendors from the database and populate the choices accordingly
190
        final RadioButton hotspotRB = new RadioButton("vendor", "Hotspot");
192
        final RadioButton hotspotRB = new RadioButton("vendor", "Hotspot");
191
        final RadioButton sarvottamRB = new RadioButton("vendor", "Sarvottam");
193
        final RadioButton sarvottamRB = new RadioButton("vendor", "Sarvottam");
192
        final RadioButton tulipRB = new RadioButton("vendor", "Tulip");
194
        final RadioButton tulipRB = new RadioButton("vendor", "Tulip");
193
        hotspotRB.setValue(true);
195
        hotspotRB.setValue(true);
194
        
196