|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.core.Widget
qx.ui.core.Parent
qx.ui.layout.BoxLayout
qx.ui.layout.HorizontalBoxLayout
qx.ui.form.ComboBoxEx
public class ComboBoxEx
An enhanced combo-box for qooxdoo.
Features:
Pending features:
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
ComboBoxEx()
|
Method Summary | |
---|---|
void |
_applyEditable(java.lang.Object value)
Post-processing after property editable changes. |
void |
_applyIdColumnVisible(java.lang.Object propVal)
|
void |
_applyIdDescriptionSeparator(java.lang.Object propVal)
|
void |
_applyShowColumnHeaders(java.lang.Object propVal)
Post-processing after property showColumnHeaders changes. |
void |
_applyShowOnTextField(java.lang.Object propVal,
java.lang.Object old)
Applies changes of the property value of the property showOnTextField . |
void |
_applyValue(java.lang.Object value)
|
void |
_calculateDimensions()
Calculates the needed dimensions for the text field and list components. |
boolean |
_checkIdDescriptionSeparator(java.lang.Object propVal)
|
void |
_closePopup()
Hide the popup list. |
void |
_createList()
Creates the list component. |
void |
_createPopup()
Creates the popup if necessary with its list. |
void |
_getPopupHeight(java.lang.Object rows)
|
java.lang.Integer |
_getTextWidth(java.lang.Object text)
Calculates the width of the given text. |
void |
_invalidateDimensions()
Invalidate the calculated of dimensions |
void |
_onChangeSelection(java.lang.Object e)
Event handler from changing the selected index. |
void |
_onContextMenu(java.lang.Object ev)
|
void |
_oninput(Event e)
|
void |
_onkeydown(Event e)
|
void |
_onkeypress(Event e)
|
void |
_onmousedown(Event e)
|
void |
_onmouseup(Event e)
|
void |
_onmousewheel(Event e)
|
void |
_onpopupappear(Event e)
|
void |
_openPopup()
Opens the popup (and creates it if necessary). |
void |
_recreateList()
Forces the list to be recreated next time. |
void |
_search(int startIndex,
java.lang.String txt,
boolean caseSens)
Searches the given text. |
void |
_togglePopup()
Toggle the visibility of the popup list. |
void |
_visualizeBlur()
|
void |
_visualizeFocus()
|
boolean |
getAllowSearch()
Returns the (computed) value of the property allowSearch . |
java.lang.Object |
getButton()
|
java.lang.Object |
getColumnHeaders()
Returns the (computed) value of the property columnHeaders . |
boolean |
getEditable()
Returns the (computed) value of the property editable . |
boolean |
getEnsureSomethingSelected()
Returns the (computed) value of the property ensureSomethingSelected . |
Widget |
getField()
Returns a reference to the field. |
boolean |
getIdColumnVisible()
Returns the (computed) value of the property idColumnVisible . |
java.lang.String |
getIdDescriptionSeparator()
Returns the (computed) value of the property idDescriptionSeparator . |
Table |
getList()
Returns a reference to the popup list. |
java.lang.Integer |
getMaxVisibleRows()
Returns the (computed) value of the property maxVisibleRows . |
java.lang.Integer |
getPagingInterval()
Returns the (computed) value of the property pagingInterval . |
java.lang.Object |
getPopup()
Returns a reference to the popup component. |
int |
getSelectedIndex()
Getter for setSelectedIndex(int) . |
java.lang.Object |
getSelectedRow()
Gets the current selected row of the selection. |
java.lang.Object |
getSelection()
Getter for setSelection(java.lang.Object, java.lang.String) . |
java.lang.Object |
getShowColumnHeaders()
Returns the (computed) value of the property showColumnHeaders . |
java.lang.Object |
getShowOnTextField()
Returns the (computed) value of the property showOnTextField . |
java.lang.String |
getValue()
Returns the (computed) value of the property value . |
void |
initAllowSearch(boolean arg)
Calls the apply method and dispatches the change event of the property allowSearch
with the default value defined by the class developer. |
void |
initColumnHeaders(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property columnHeaders
with the default value defined by the class developer. |
void |
initEditable(boolean arg)
Calls the apply method and dispatches the change event of the property editable
with the default value defined by the class developer. |
void |
initEnsureSomethingSelected(boolean arg)
Calls the apply method and dispatches the change event of the property ensureSomethingSelected
with the default value defined by the class developer. |
void |
initIdColumnVisible(boolean arg)
Calls the apply method and dispatches the change event of the property idColumnVisible
with the default value defined by the class developer. |
void |
initIdDescriptionSeparator(java.lang.String arg)
Calls the apply method and dispatches the change event of the property idDescriptionSeparator
with the default value defined by the class developer. |
void |
initMaxVisibleRows(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxVisibleRows
with the default value defined by the class developer. |
void |
initPagingInterval(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property pagingInterval
with the default value defined by the class developer. |
void |
initShowColumnHeaders(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property showColumnHeaders
with the default value defined by the class developer. |
void |
initShowOnTextField(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property showOnTextField
with the default value defined by the class developer. |
void |
initValue(java.lang.String arg)
Calls the apply method and dispatches the change event of the property value
with the default value defined by the class developer. |
boolean |
isAllowSearch()
Check whether the (computed) value of the boolean property allowSearch equals true . |
boolean |
isEditable()
Check whether the (computed) value of the boolean property editable equals true . |
boolean |
isEnsureSomethingSelected()
Check whether the (computed) value of the boolean property ensureSomethingSelected equals true . |
boolean |
isIdColumnVisible()
Check whether the (computed) value of the boolean property idColumnVisible equals true . |
boolean |
isSearchInProgress()
Does this combo have the searched dialog open? |
void |
openSearchDialog()
Opens a popup search dialog, useful when the combo has a lot of items. |
void |
resetAllowSearch()
Resets the user value of the property allowSearch . |
void |
resetColumnHeaders()
Resets the user value of the property columnHeaders . |
void |
resetEditable()
Resets the user value of the property editable . |
void |
resetEnsureSomethingSelected()
Resets the user value of the property ensureSomethingSelected . |
void |
resetIdColumnVisible()
Resets the user value of the property idColumnVisible . |
void |
resetIdDescriptionSeparator()
Resets the user value of the property idDescriptionSeparator . |
void |
resetMaxVisibleRows()
Resets the user value of the property maxVisibleRows . |
void |
resetPagingInterval()
Resets the user value of the property pagingInterval . |
void |
resetShowColumnHeaders()
Resets the user value of the property showColumnHeaders . |
void |
resetShowOnTextField()
Resets the user value of the property showOnTextField . |
void |
resetValue()
Resets the user value of the property value . |
void |
setAllowSearch(boolean arg)
Sets the user value of the property allowSearch . |
void |
setColumnHeaders(java.lang.Object arg)
Sets the user value of the property columnHeaders . |
void |
setEditable(boolean arg)
Sets the user value of the property editable . |
void |
setEnsureSomethingSelected(boolean arg)
Sets the user value of the property ensureSomethingSelected . |
void |
setIdColumnVisible(boolean arg)
Sets the user value of the property idColumnVisible . |
void |
setIdDescriptionSeparator(java.lang.String arg)
Sets the user value of the property idDescriptionSeparator . |
void |
setMaxVisibleRows(java.lang.Integer arg)
Sets the user value of the property maxVisibleRows . |
void |
setPagingInterval(java.lang.Integer arg)
Sets the user value of the property pagingInterval . |
void |
setSelectedIndex(int index)
Sets the index of the currently selected item in the list. |
void |
setSelection(java.lang.Object data,
java.lang.String newValue)
Sets the list of selectable items. |
void |
setShowColumnHeaders(java.lang.Object arg)
Sets the user value of the property showColumnHeaders . |
void |
setShowOnTextField(java.lang.Object arg)
Sets the user value of the property showOnTextField . |
void |
setValue(java.lang.String arg)
Sets the user value of the property value . |
void |
sizeTextFieldToContent()
Sizes the width of the text field component to the needed value to show any selection item. |
boolean |
toggleAllowSearch()
Toggles the (computed) value of the boolean property allowSearch . |
boolean |
toggleEditable()
Toggles the (computed) value of the boolean property editable . |
boolean |
toggleEnsureSomethingSelected()
Toggles the (computed) value of the boolean property ensureSomethingSelected . |
boolean |
toggleIdColumnVisible()
Toggles the (computed) value of the boolean property idColumnVisible . |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComboBoxEx()
Method Detail |
---|
public void _applyEditable(java.lang.Object value)
Post-processing after property editable changes.
public void _applyIdColumnVisible(java.lang.Object propVal)
public void _applyIdDescriptionSeparator(java.lang.Object propVal)
public void _applyShowColumnHeaders(java.lang.Object propVal)
Post-processing after property showColumnHeaders changes.
public void _applyShowOnTextField(java.lang.Object propVal, java.lang.Object old)
Applies changes of the property value of the property showOnTextField
.
For further details take a look at the property definition: _applyShowOnTextField(java.lang.Object, java.lang.Object)
.
public void _applyValue(java.lang.Object value)
public void _calculateDimensions()
Calculates the needed dimensions for the text field and list components. PRECONDITION: the _list must be created.
public boolean _checkIdDescriptionSeparator(java.lang.Object propVal)
public void _closePopup()
Hide the popup list.
public void _createList()
Creates the list component.
public void _createPopup()
Creates the popup if necessary with its list.
public void _getPopupHeight(java.lang.Object rows)
public java.lang.Integer _getTextWidth(java.lang.Object text)
Calculates the width of the given text. The default font is used.
public void _invalidateDimensions()
Invalidate the calculated of dimensions
public void _onChangeSelection(java.lang.Object e)
Event handler from changing the selected index.
public void _onContextMenu(java.lang.Object ev)
public void _oninput(Event e)
public void _onkeydown(Event e)
public void _onkeypress(Event e)
public void _onmousedown(Event e)
public void _onmouseup(Event e)
public void _onmousewheel(Event e)
public void _onpopupappear(Event e)
public void _openPopup()
Opens the popup (and creates it if necessary).
public void _recreateList()
Forces the list to be recreated next time.
public void _search(int startIndex, java.lang.String txt, boolean caseSens)
Searches the given text. Called from the search dialog.
public void _togglePopup()
Toggle the visibility of the popup list.
public void _visualizeBlur()
_visualizeBlur
in class Widget
public void _visualizeFocus()
_visualizeFocus
in class Widget
public boolean getAllowSearch()
Returns the (computed) value of the property allowSearch
.
For further details take a look at the property definition: allowSearch
.
public java.lang.Object getButton()
public java.lang.Object getColumnHeaders()
Returns the (computed) value of the property columnHeaders
.
For further details take a look at the property definition: columnHeaders
.
public boolean getEditable()
Returns the (computed) value of the property editable
.
For further details take a look at the property definition: editable
.
public boolean getEnsureSomethingSelected()
Returns the (computed) value of the property ensureSomethingSelected
.
For further details take a look at the property definition: ensureSomethingSelected
.
public Widget getField()
Returns a reference to the field.
public boolean getIdColumnVisible()
Returns the (computed) value of the property idColumnVisible
.
For further details take a look at the property definition: idColumnVisible
.
public java.lang.String getIdDescriptionSeparator()
Returns the (computed) value of the property idDescriptionSeparator
.
For further details take a look at the property definition: idDescriptionSeparator
.
public Table getList()
Returns a reference to the popup list.
public java.lang.Integer getMaxVisibleRows()
Returns the (computed) value of the property maxVisibleRows
.
For further details take a look at the property definition: maxVisibleRows
.
public java.lang.Integer getPagingInterval()
Returns the (computed) value of the property pagingInterval
.
For further details take a look at the property definition: pagingInterval
.
public java.lang.Object getPopup()
Returns a reference to the popup component.
public int getSelectedIndex()
Getter for setSelectedIndex(int)
.
public java.lang.Object getSelectedRow()
Gets the current selected row of the selection.
public java.lang.Object getSelection()
Getter for setSelection(java.lang.Object, java.lang.String)
.
public java.lang.Object getShowColumnHeaders()
Returns the (computed) value of the property showColumnHeaders
.
For further details take a look at the property definition: showColumnHeaders
.
public java.lang.Object getShowOnTextField()
Returns the (computed) value of the property showOnTextField
.
For further details take a look at the property definition: showOnTextField
.
public java.lang.String getValue()
Returns the (computed) value of the property value
.
For further details take a look at the property definition: value
.
public void initAllowSearch(boolean arg)
Calls the apply method and dispatches the change event of the property allowSearch
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: allowSearch
.
public void initColumnHeaders(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property columnHeaders
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: columnHeaders
.
public void initEditable(boolean arg)
Calls the apply method and dispatches the change event of the property editable
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: editable
.
public void initEnsureSomethingSelected(boolean arg)
Calls the apply method and dispatches the change event of the property ensureSomethingSelected
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: ensureSomethingSelected
.
public void initIdColumnVisible(boolean arg)
Calls the apply method and dispatches the change event of the property idColumnVisible
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: idColumnVisible
.
public void initIdDescriptionSeparator(java.lang.String arg)
Calls the apply method and dispatches the change event of the property idDescriptionSeparator
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: idDescriptionSeparator
.
public void initMaxVisibleRows(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxVisibleRows
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: maxVisibleRows
.
public void initPagingInterval(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property pagingInterval
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: pagingInterval
.
public void initShowColumnHeaders(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property showColumnHeaders
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: showColumnHeaders
.
public void initShowOnTextField(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property showOnTextField
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: showOnTextField
.
public void initValue(java.lang.String arg)
Calls the apply method and dispatches the change event of the property value
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: value
.
public boolean isAllowSearch()
Check whether the (computed) value of the boolean property allowSearch
equals true
.
For further details take a look at the property definition: allowSearch
.
public boolean isEditable()
Check whether the (computed) value of the boolean property editable
equals true
.
For further details take a look at the property definition: editable
.
public boolean isEnsureSomethingSelected()
Check whether the (computed) value of the boolean property ensureSomethingSelected
equals true
.
For further details take a look at the property definition: ensureSomethingSelected
.
public boolean isIdColumnVisible()
Check whether the (computed) value of the boolean property idColumnVisible
equals true
.
For further details take a look at the property definition: idColumnVisible
.
public boolean isSearchInProgress()
Does this combo have the searched dialog open?
public void openSearchDialog()
Opens a popup search dialog, useful when the combo has a lot of items. This dialog is triggered by double clicking the combo, pressing F3 or Ctrl+F.
public void resetAllowSearch()
Resets the user value of the property allowSearch
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: allowSearch
.
public void resetColumnHeaders()
Resets the user value of the property columnHeaders
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: columnHeaders
.
public void resetEditable()
Resets the user value of the property editable
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: editable
.
public void resetEnsureSomethingSelected()
Resets the user value of the property ensureSomethingSelected
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: ensureSomethingSelected
.
public void resetIdColumnVisible()
Resets the user value of the property idColumnVisible
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: idColumnVisible
.
public void resetIdDescriptionSeparator()
Resets the user value of the property idDescriptionSeparator
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: idDescriptionSeparator
.
public void resetMaxVisibleRows()
Resets the user value of the property maxVisibleRows
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: maxVisibleRows
.
public void resetPagingInterval()
Resets the user value of the property pagingInterval
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: pagingInterval
.
public void resetShowColumnHeaders()
Resets the user value of the property showColumnHeaders
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: showColumnHeaders
.
public void resetShowOnTextField()
Resets the user value of the property showOnTextField
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: showOnTextField
.
public void resetValue()
Resets the user value of the property value
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: value
.
public void setAllowSearch(boolean arg)
Sets the user value of the property allowSearch
.
For further details take a look at the property definition: allowSearch
.
public void setColumnHeaders(java.lang.Object arg)
Sets the user value of the property columnHeaders
.
For further details take a look at the property definition: columnHeaders
.
public void setEditable(boolean arg)
Sets the user value of the property editable
.
For further details take a look at the property definition: editable
.
public void setEnsureSomethingSelected(boolean arg)
Sets the user value of the property ensureSomethingSelected
.
For further details take a look at the property definition: ensureSomethingSelected
.
public void setIdColumnVisible(boolean arg)
Sets the user value of the property idColumnVisible
.
For further details take a look at the property definition: idColumnVisible
.
public void setIdDescriptionSeparator(java.lang.String arg)
Sets the user value of the property idDescriptionSeparator
.
For further details take a look at the property definition: idDescriptionSeparator
.
public void setMaxVisibleRows(java.lang.Integer arg)
Sets the user value of the property maxVisibleRows
.
For further details take a look at the property definition: maxVisibleRows
.
public void setPagingInterval(java.lang.Integer arg)
Sets the user value of the property pagingInterval
.
For further details take a look at the property definition: pagingInterval
.
public void setSelectedIndex(int index)
Sets the index of the currently selected item in the list.
public void setSelection(java.lang.Object data, java.lang.String newValue)
Sets the list of selectable items.
public void setShowColumnHeaders(java.lang.Object arg)
Sets the user value of the property showColumnHeaders
.
For further details take a look at the property definition: showColumnHeaders
.
public void setShowOnTextField(java.lang.Object arg)
Sets the user value of the property showOnTextField
.
For further details take a look at the property definition: showOnTextField
.
public void setValue(java.lang.String arg)
Sets the user value of the property value
.
For further details take a look at the property definition: value
.
public void sizeTextFieldToContent()
Sizes the width of the text field component to the needed value to show any selection item.
public boolean toggleAllowSearch()
Toggles the (computed) value of the boolean property allowSearch
.
For further details take a look at the property definition: allowSearch
.
public boolean toggleEditable()
Toggles the (computed) value of the boolean property editable
.
For further details take a look at the property definition: editable
.
public boolean toggleEnsureSomethingSelected()
Toggles the (computed) value of the boolean property ensureSomethingSelected
.
For further details take a look at the property definition: ensureSomethingSelected
.
public boolean toggleIdColumnVisible()
Toggles the (computed) value of the boolean property idColumnVisible
.
For further details take a look at the property definition: idColumnVisible
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |