103104105106107108109110111112113
* been changed by <code>setTextLimit()</code>, it will be the constant <code>Combo.LIMIT</code>. * * @return the text limit */ public int textLimit() { return syncExec(new IntResult() { public int run() { return getCCombo().getTextLimit(); } }); }
131132133134135136137138139140141
* * @param text The text to use. */ private void _setSelection(final String text) { checkEnabled(); final int indexOf = syncExec(new IntResult() { public int run() { String[] items = getCCombo().getItems(); return Arrays.asList(items).indexOf(text); } });
177178179180181182183184185186187
* Gets the current selection index. * * @return the zero based index of the current selection. */ public int selectionIndex() { return syncExec(new IntResult() { public int run() { return getCCombo().getSelectionIndex(); } }); }
208209210211212213214215216217218
* Gets the number of items in the combo box. * * @return the number of items in the combo box. */ public int itemCount() { return syncExec(new IntResult() { public int run() { return getCCombo().getItemCount(); } }); }
7172737475767778798081
* Gets the number of rows in the tree. * * @return the number of rows in the tree */ public int rowCount() { return syncExec(new IntResult() { public int run() { return getControl().getItems().length; } }); }
93949596979899100101102103
* Gets the column count of this tree. * * @return the number of columns in the tree */ public int columnCount() { return syncExec(new IntResult() { public int run() { return getControl().getColumnCount(); } }); }
162163164165166167168169170171172
* Gets the current selection count. * * @return the number of selected items. */ public int selectionCount() { return syncExec(new IntResult() { public int run() { return getControl().getSelectionCount(); } }); }
351352353354355356357358359360361
* Gets the visible row count. * * @return the number of visible rows */ public int visibleRowCount() { return syncExec(new IntResult() { public int run() { TreeItem[] items = getControl().getItems(); return getVisibleChildrenCount(items); }
6768697071727374757677
* Gets the row count. * * @return the number of rows in the table */ public int rowCount() { return syncExec(new IntResult() { public int run() { return getControl().getItemCount(); } }); }
8990919293949596979899
* Gets the column count. * * @return the number of columns in the table */ public int columnCount() { return syncExec(new IntResult() { public int run() { return getControl().getColumnCount(); } }); }