org.kde.koala

Class KEditListBox

public class KEditListBox extends QGroupBox

An editable listbox This class provides a editable listbox ;-), this means a listbox which is accompanied by a line edit to enter new items into the listbox and pushbuttons to add and remove items from the listbox and two buttons to move items up and down. \image html keditlistbox.png "KDE Edit List Box Widget" See KEditListBoxSignals for signals emitted by KEditListBox

UNKNOWN: An editable listbox

Field Summary
static intAdd
Enumeration of the buttons, the listbox offers.
static intAll
static intRemove
static intUpDown
Constructor Summary
protected KEditListBox(Class dummy)
KEditListBox(QWidget parent, String name, boolean checkAtEntering, int buttons)
Create an editable listbox.
KEditListBox(QWidget parent, String name, boolean checkAtEntering)
KEditListBox(QWidget parent, String name)
KEditListBox(QWidget parent)
KEditListBox()
KEditListBox(String title, QWidget parent, String name, boolean checkAtEntering, int buttons)
Create an editable listbox.
KEditListBox(String title, QWidget parent, String name, boolean checkAtEntering)
KEditListBox(String title, QWidget parent, String name)
KEditListBox(String title, QWidget parent)
KEditListBox(String title)
Method Summary
QPushButtonaddButton()
Return a pointer to the Add button
protected voidaddItem()
intbuttons()
Returns which buttons are visible
StringclassName()
voidclear()
Clears both the listbox and the line edit.
intcount()
See QListBox.count()
intcurrentItem()
See QListBox.currentItem()
StringcurrentText()
See QListBox.currentText()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
QPushButtondownButton()
Return a pointer to the Down button
protected voidenableMoveButtons(int index)
protected voidfinalize()
Deletes the wrapped C++ instance
voidinsertItem(String text, int index)
See QListBox.insertItem()
voidinsertItem(String text)
voidinsertStringList(String[] list, int index)
See QListBox.insertStringList()
voidinsertStringList(String[] list)
voidinsertStrList(String[] list, int index)
See QListBox.insertStringList()
voidinsertStrList(String[] list)
voidinsertStrList(String[] list, int numStrings, int index)
See QListBox.insertStrList()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
ArrayListitems()
KLineEditlineEdit()
Return a pointer to the embedded QLineEdit.
QListBoxlistBox()
Return a pointer to the embedded QListBox.
QMetaObjectmetaObject()
protected voidmoveItemDown()
protected voidmoveItemUp()
QPushButtonremoveButton()
Return a pointer to the Remove button
protected voidremoveItem()
voidsetButtons(int buttons)
Specifies which buttons should be visible
voidsetItems(String[] items)
Clears the listbox and sets the contents to items
Stringtext(int index)
See QListBox.text()
protected voidtypedSomething(String text)
QPushButtonupButton()
Return a pointer to the Up button

Field Detail

Add

public static final int Add
Enumeration of the buttons, the listbox offers. Specify them in the constructor in the buttons parameter, or in setButtons.

UNKNOWN: Enumeration of the buttons, the listbox offers.

All

public static final int All

Remove

public static final int Remove

UpDown

public static final int UpDown

Constructor Detail

KEditListBox

protected KEditListBox(Class dummy)

KEditListBox

public KEditListBox(QWidget parent, String name, boolean checkAtEntering, int buttons)
Create an editable listbox. If checkAtEntering is true, after every character you type in the line edit KEditListBox will enable or disable the Add-button, depending whether the current content of the line edit is already in the listbox. Maybe this can become a performance hit with large lists on slow machines. If checkAtEntering is false, it will be checked if you press the Add-button. It is not possible to enter items twice into the listbox.

UNKNOWN: Create an editable listbox.

KEditListBox

public KEditListBox(QWidget parent, String name, boolean checkAtEntering)

KEditListBox

public KEditListBox(QWidget parent, String name)

KEditListBox

public KEditListBox(QWidget parent)

KEditListBox

public KEditListBox()

KEditListBox

public KEditListBox(String title, QWidget parent, String name, boolean checkAtEntering, int buttons)
Create an editable listbox. The same as the other constructor, additionally it takes title, which will be the title of the frame around the listbox.

UNKNOWN: Create an editable listbox.

KEditListBox

public KEditListBox(String title, QWidget parent, String name, boolean checkAtEntering)

KEditListBox

public KEditListBox(String title, QWidget parent, String name)

KEditListBox

public KEditListBox(String title, QWidget parent)

KEditListBox

public KEditListBox(String title)

Method Detail

addButton

public QPushButton addButton()
Return a pointer to the Add button

UNKNOWN: Return a pointer to the Add button

addItem

protected void addItem()

buttons

public int buttons()
Returns which buttons are visible

UNKNOWN: Returns which buttons are visible

className

public String className()

clear

public void clear()
Clears both the listbox and the line edit.

UNKNOWN: Clears both the listbox and the line edit.

count

public int count()
See QListBox.count()

UNKNOWN: See QListBox.count()

currentItem

public int currentItem()
See QListBox.currentItem()

UNKNOWN: See QListBox.currentItem()

currentText

public String currentText()
See QListBox.currentText()

UNKNOWN: See QListBox.currentText()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

downButton

public QPushButton downButton()
Return a pointer to the Down button

UNKNOWN: Return a pointer to the Down button

enableMoveButtons

protected void enableMoveButtons(int index)

finalize

protected void finalize()
Deletes the wrapped C++ instance

insertItem

public void insertItem(String text, int index)
See QListBox.insertItem()

UNKNOWN: See QListBox.insertItem()

insertItem

public void insertItem(String text)

insertStringList

public void insertStringList(String[] list, int index)
See QListBox.insertStringList()

UNKNOWN: See QListBox.insertStringList()

insertStringList

public void insertStringList(String[] list)

insertStrList

public void insertStrList(String[] list, int index)
See QListBox.insertStringList()

UNKNOWN: See QListBox.insertStringList()

insertStrList

public void insertStrList(String[] list)

insertStrList

public void insertStrList(String[] list, int numStrings, int index)
See QListBox.insertStrList()

UNKNOWN: See QListBox.insertStrList()

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

items

public ArrayList items()

Returns: a stringlist of all items in the listbox

UNKNOWN:

lineEdit

public KLineEdit lineEdit()
Return a pointer to the embedded QLineEdit.

UNKNOWN: Return a pointer to the embedded QLineEdit.

listBox

public QListBox listBox()
Return a pointer to the embedded QListBox.

UNKNOWN: Return a pointer to the embedded QListBox.

metaObject

public QMetaObject metaObject()

moveItemDown

protected void moveItemDown()

moveItemUp

protected void moveItemUp()

removeButton

public QPushButton removeButton()
Return a pointer to the Remove button

UNKNOWN: Return a pointer to the Remove button

removeItem

protected void removeItem()

setButtons

public void setButtons(int buttons)
Specifies which buttons should be visible

UNKNOWN: Specifies which buttons should be visible

setItems

public void setItems(String[] items)
Clears the listbox and sets the contents to items

UNKNOWN: Clears the listbox and sets the contents to items

text

public String text(int index)
See QListBox.text()

UNKNOWN: See QListBox.text()

typedSomething

protected void typedSomething(String text)

upButton

public QPushButton upButton()
Return a pointer to the Up button

UNKNOWN: Return a pointer to the Up button