org.kde.koala
public class KCompletionBox extends KListBox
UNKNOWN: A helper widget for "completion-widgets" (KLineEdit, KComboBox)).
Constructor Summary | |
---|---|
protected | KCompletionBox(Class dummy) |
KCompletionBox(QWidget parent, String name)
Constructs a KCompletionBox.
| |
KCompletionBox(QWidget parent) |
Method Summary | |
---|---|
boolean | activateOnSelect() |
protected QRect | calculateGeometry()
This calculates the size of the dropdown and the relative position of the top
left corner with respect to the parent widget. |
String | cancelledText() |
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
void | down()
Moves the selection one line down or select the first item if nothing is selected yet. |
void | end()
Moves the selection down to the last item. |
boolean | eventFilter(QObject arg1, QEvent arg2)
Reimplemented from KListBox to get events from the viewport (to hide
this widget on mouse-click, Escape-presses, etc. |
protected void | finalize() Deletes the wrapped C++ instance |
void | hide()
Re-implemented for internal reasons. |
void | home()
Moves the selection up to the first item. |
void | insertItems(String[] items, int index)
Inserts items into the box. |
void | insertItems(String[] items) |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isTabHandling()
Default is false. |
ArrayList | items()
Returns a list of all items currently in the box. |
QMetaObject | metaObject() |
void | pageDown()
Moves the selection one page down. |
void | pageUp()
Moves the selection one page up. |
void | popup()
Adjusts the size of the box to fit the width of the parent given in the
constructor and pops it up at the most appropriate place, relative to
the parent.
|
void | setActivateOnSelect(boolean state)
Set whether or not the selected signal should be emitted when an
item is selected. |
void | setCancelledText(String txt)
Sets the text to be emitted if the user chooses not to
pick from the available matches.
|
void | setItems(String[] items)
Clears the box and inserts items. |
void | setTabHandling(boolean enable)
Makes this widget (when visible) capture Tab-key events to traverse the
items in the dropdown list.
|
void | show()
Re-implemented for internal reasons. |
protected void | sizeAndPosition()
This properly sizes and positions the listbox. |
QSize | sizeHint() |
protected void | slotActivated(QListBoxItem arg1)
Called when an item was activated. |
void | up()
Moves the selection one line up or select the first item if nothing is selected yet. |
UNKNOWN: Constructs a KCompletionBox.
Returns: true if selecting an item results in the emition of the selected signal.
UNKNOWN:
UNKNOWN: This calculates the size of the dropdown and the relative position of the top left corner with respect to the parent widget.
Returns: the text set via setCancelledText() or null.
UNKNOWN:
UNKNOWN: Moves the selection one line down or select the first item if nothing is selected yet.
UNKNOWN: Moves the selection down to the last item.
UNKNOWN: Reimplemented from KListBox to get events from the viewport (to hide this widget on mouse-click, Escape-presses, etc.
UNKNOWN: Re-implemented for internal reasons.
UNKNOWN: Moves the selection up to the first item.
items
into the box. Does not clear the items before.
index
determines at which position items
will be inserted.
(defaults to appending them at the end)UNKNOWN: Inserts items
into the box.
Returns: true if this widget is handling Tab-key events to traverse the items in the dropdown list, otherwise false.
See Also: KCompletionBox
UNKNOWN:
UNKNOWN: Returns a list of all items currently in the box.
UNKNOWN: Moves the selection one page down.
UNKNOWN: Moves the selection one page up.
UNKNOWN: Adjusts the size of the box to fit the width of the parent given in the constructor and pops it up at the most appropriate place, relative to the parent.
Parameters: state false if the signal should not be emitted.
UNKNOWN: Set whether or not the selected signal should be emitted when an item is selected.
Parameters: txt the text to be emitted if the user cancels this box
See Also: (
KCompletionBox
UNKNOWN: Sets the text to be emitted if the user chooses not to pick from the available matches.
items.
UNKNOWN: Clears the box and inserts items.
See Also: KCompletionBox
UNKNOWN: Makes this widget (when visible) capture Tab-key events to traverse the items in the dropdown list.
UNKNOWN: Re-implemented for internal reasons.
UNKNOWN: This properly sizes and positions the listbox.
UNKNOWN: Called when an item was activated.
UNKNOWN: Moves the selection one line up or select the first item if nothing is selected yet.