Skip to content

Commit c8d632a

Browse files
committed
Cleanup
1 parent ca62eb1 commit c8d632a

File tree

1 file changed

+3
-46
lines changed

1 file changed

+3
-46
lines changed

source/class/qxl/demobrowser/demo/virtual/SelectBox.js

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
6060
incrementalSearch.add(this.createBox9());
6161
incrementalSearch.add(this.createBox10());
6262

63-
6463
container.add(standard, {left : 20, top : 20});
6564
container.add(advanced, {left : 20, top : 200});
6665
container.add(incrementalSearch, {left : 20, top : 380});
@@ -285,49 +284,6 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
285284
},
286285

287286

288-
createBox8 : function()
289-
{
290-
var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(2));
291-
container.add(new qx.ui.basic.Label("Incremental Search"));
292-
293-
// Creates the model data
294-
var rawData = [
295-
'Elm street', 'Abbey road', 'Route 61', 'Central station', 'Central Park',
296-
'Park Avenue', 'Broadway', 'Hohle Gasse', 'Überlandstrasse'
297-
];
298-
var model = qx.data.marshal.Json.createModel(rawData);
299-
300-
// Creates the select box
301-
var selectBox = new qx.ui.form.VirtualSelectBox(model);
302-
selectBox.setIncrementalSearch(true);
303-
container.add(selectBox);
304-
305-
return container;
306-
},
307-
308-
309-
createBox9 : function()
310-
{
311-
var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(2));
312-
container.add(new qx.ui.basic.Label("Incremental Search, rich labels"));
313-
314-
// Creates the model data
315-
var rawData = [
316-
'Elm street', 'Abbey road', 'Route 61', 'Central station', 'Central Park',
317-
'Park Avenue', 'Broadway', 'Hohle Gasse', 'Überlandstrasse'
318-
];
319-
var model = qx.data.marshal.Json.createModel(rawData);
320-
321-
// Creates the select box
322-
var selectBox = new qx.ui.form.VirtualSelectBox(model);
323-
selectBox.setIncrementalSearch(true);
324-
// Set labels and highlighting rich (HTML formatting)
325-
if (selectBox.setRich) selectBox.setRich(true);
326-
container.add(selectBox);
327-
328-
return container;
329-
}
330-
331287
createBox8 : function()
332288
{
333289
var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(2));
@@ -350,10 +306,11 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
350306
return container;
351307
},
352308

309+
353310
createBox9 : function()
354311
{
355312
var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(2));
356-
container.add(new qx.ui.basic.Label("Incremental Search, rich highlighting"));
313+
container.add(new qx.ui.basic.Label("Incremental Search, html highlighting"));
357314

358315
// Creates the model data
359316
var rawData = [
@@ -365,7 +322,7 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
365322
// Creates the select box
366323
var selectBox = new qx.ui.form.VirtualSelectBox(model).set({
367324
incrementalSearch : true,
368-
highlightMode : 'plain'
325+
highlightMode : 'html'
369326
};
370327
container.add(selectBox);
371328

0 commit comments

Comments
 (0)