SpringGUI

introduction    download    reference    examples    faq


Reference

Name

isListMultipleMode(), setListMultipleMode()

Examples

// assuming two Radiobuttons named "mult" and "noMult", this will set the multiple
// selection mode of a List named "myList" depending on which is selected.
String selected = gui.getSelectedRadiobutton("myGroup");
if ( selected.equals("mult") ) {
  gui.setListMultipleMode("myList", true);
} else if ( selected.equals("noMult") ) {
  gui.setListMultipleMode("myList", false);
}

Description

isListMultipleMode() queries whether a List element is in multiple selection mode. setListMultipleMode() sets this attribute.
When a List is not in multiple selection mode, only one item in it can be selected at a time. This is the default mode.

Syntax

boolean result = gui.isListMultipleMode(name);
gui.setListMultipleMode(name, value);

Parameters

String name The name of the element.
boolean value The new state of the element.

Returns

isListMultipleMode():
true if the List can be found and is in multiple selection mode.
setListMultipleMode():
true if the List can be found.

Related

getSelectedItem() / getSelectedItems()
selectItem()
addItem()
removeItem()
hasItem()
getItemCount()
getItemByIndex()
addList()
table of events


back to the top of the page


tinkering with codetools and docsscrapbookabout