|
||||||||||
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.ComboBox<T>
public class ComboBox<T>
A combo-box for qooxdoo.
The major additional feature compared to typical select fields is that it allows it to be editable. Also images are supported inside the popup list.
Features:
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
ComboBox()
|
Method Summary | ||
---|---|---|
void |
_applyEditable(java.lang.Object value,
java.lang.Object old)
|
|
void |
_applySelected(java.lang.Object value,
java.lang.Object old)
|
|
void |
_applyValue(java.lang.Object value,
java.lang.Object old)
|
|
void |
_closePopup()
Hides the popup and disables the event capturing. |
|
void |
_onbeforedisappear(Event e)
Listener method for the “disappear” event of the combo box. |
|
void |
_onclick(MouseEvent e)
Listener method of the “click” event of the combo box. |
|
void |
_oninput(DataEvent e)
Listener method for the “input” event of the text field widget |
|
void |
_onkeydown(KeyEvent e)
Listener method for “keyDown” event of the combo box. |
|
void |
_onkeyinput(KeyEvent e)
Listener method for the “keyInput” event of combo box. |
|
void |
_onkeypress(KeyEvent e)
Listener method for the “keyPress” event of the combo box. |
|
void |
_onlocalechange(ChangeEvent e)
Listener method for the “changeLocale” event of the locale manager |
|
void |
_onmousedown(MouseEvent e)
Listener method of the “mousedown” event of the combo box. |
|
void |
_onmouseover(MouseEvent e)
Listener method for the “mouseOver” event of the combo box. |
|
void |
_onmouseup(MouseEvent e)
Listener method for the mouseUp event of the combo box. |
|
void |
_onmousewheel(MouseEvent e)
Listener method for the “mouseWheel” event of the combo box. |
|
void |
_onpopupappear(Event e)
Listener method for the “appear” event of the popup widget |
|
void |
_openPopup()
Sets the position and width of the popup. |
|
void |
_testClosePopup()
Closes the popup widget if it is seeable. |
|
void |
_togglePopup()
Toggle opening/closing of the popup widget. |
|
void |
_visualizeBlur()
Invokes the blur method directly at the DOM elements and removes the “focused” state. |
|
void |
_visualizeFocus()
Invokes the focus method directly at the DOM elements and adds the “focused” state. |
|
void |
addString(java.lang.String text,
T value)
|
|
void |
addValue(T value)
|
|
java.util.List<Widget> |
children()
|
|
void |
children(java.util.List<? extends Widget> result)
|
|
static
|
createE(E[] values)
|
|
static
|
createList(java.util.List<T> values)
|
|
static
|
createT(T[] values)
|
|
Atom |
getButton()
Accessor method for the button widget |
|
boolean |
getEditable()
Returns the (computed) value of the property editable . |
|
TextField |
getField()
Accessor method for the text field widget |
|
List |
getList()
Accessor method for the list widget |
|
SelectionManager |
getManager()
Accessor method for the selection manager |
|
java.lang.Integer |
getPagingInterval()
Returns the (computed) value of the property pagingInterval . |
|
Popup |
getPopup()
Accessor method for the popup widget |
|
ListItem |
getSelected()
Returns the (computed) value of the property selected . |
|
T |
getSelectedValue()
TODO: difference to getValue/setValue |
|
java.lang.String |
getValue()
Returns the (computed) value of the property value . |
|
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 |
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 |
initSelected(ListItem arg)
Calls the apply method and dispatches the change event of the property selected
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 |
isEditable()
Check whether the (computed) value of the boolean property editable equals true . |
|
ListItem<T> |
lookup(T value)
|
|
void |
resetEditable()
Resets the user value of the property editable . |
|
void |
resetPagingInterval()
Resets the user value of the property pagingInterval . |
|
void |
resetSelected()
Resets the user value of the property selected . |
|
void |
resetValue()
Resets the user value of the property value . |
|
void |
setEditable(boolean arg)
Sets the user value of the property editable . |
|
void |
setPagingInterval(java.lang.Integer arg)
Sets the user value of the property pagingInterval . |
|
void |
setSelected(ListItem arg)
Sets the user value of the property selected . |
|
void |
setSelectedValue(T value)
|
|
void |
setValue(java.lang.String arg)
Sets the user value of the property value . |
|
boolean |
toggleEditable()
Toggles the (computed) value of the boolean property editable . |
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 ComboBox()
Method Detail |
---|
public void _applyEditable(java.lang.Object value, java.lang.Object old)
public void _applySelected(java.lang.Object value, java.lang.Object old)
public void _applyValue(java.lang.Object value, java.lang.Object old)
public void _closePopup()
Hides the popup and disables the event capturing.
public void _onbeforedisappear(Event e)
Listener method for the “disappear” event of the combo box. Only tests if the popup widget is closed.
public void _onclick(MouseEvent e)
Listener method of the “click” event of the combo box.
Opens the popup or delegates the event to the list widget if the user clicked on the list. Hides the popup and release the event capturing if the user is clicking outside the combo box.
public void _oninput(DataEvent e)
Listener method for the “input” event of the text field widget
public void _onkeydown(KeyEvent e)
Listener method for “keyDown” event of the combo box.
Handles hitting “Enter”, “Escape” and “Alt+Down”.
public void _onkeyinput(KeyEvent e)
Listener method for the “keyInput” event of combo box.
public void _onkeypress(KeyEvent e)
Listener method for the “keyPress” event of the combo box.
Handles especially hitting “PageUp” and “PageDown”. If the user hits other keys a match is searched and (if found) selected.
public void _onlocalechange(ChangeEvent e)
Listener method for the “changeLocale” event of the locale manager
public void _onmousedown(MouseEvent e)
Listener method of the “mousedown” event of the combo box.
public void _onmouseover(MouseEvent e)
Listener method for the “mouseOver” event of the combo box.
Delegates the control the selection manager if target is a listitem widget.
public void _onmouseup(MouseEvent e)
Listener method for the mouseUp event of the combo box.
public void _onmousewheel(MouseEvent e)
Listener method for the “mouseWheel” event of the combo box.
Only works if the popup is not seeable.
public void _onpopupappear(Event e)
Listener method for the “appear” event of the popup widget
public void _openPopup()
Sets the position and width of the popup. Additionally dispatches an event if the popup is opened the first time. Enables the event capturing.
public void _testClosePopup()
Closes the popup widget if it is seeable. Used e.g. as listener method for the “windowblur” event.
public void _togglePopup()
Toggle opening/closing of the popup widget.
public void _visualizeBlur()
Invokes the blur method directly at the DOM elements and removes the “focused” state.
_visualizeBlur
in class Widget
public void _visualizeFocus()
Invokes the focus method directly at the DOM elements and adds the “focused” state.
_visualizeFocus
in class Widget
public Atom getButton()
Accessor method for the button widget
public boolean getEditable()
Returns the (computed) value of the property editable
.
For further details take a look at the property definition: editable
.
public TextField getField()
Accessor method for the text field widget
public List getList()
Accessor method for the list widget
public SelectionManager getManager()
Accessor method for the selection manager
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 Popup getPopup()
Accessor method for the popup widget
public ListItem getSelected()
Returns the (computed) value of the property selected
.
For further details take a look at the property definition: selected
.
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 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 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 initSelected(ListItem arg)
Calls the apply method and dispatches the change event of the property selected
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: selected
.
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 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 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 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 resetSelected()
Resets the user value of the property selected
.
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: selected
.
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 setEditable(boolean arg)
Sets the user value of the property editable
.
For further details take a look at the property definition: editable
.
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 setSelected(ListItem arg)
Sets the user value of the property selected
.
For further details take a look at the property definition: selected
.
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 boolean toggleEditable()
Toggles the (computed) value of the boolean property editable
.
For further details take a look at the property definition: editable
.
public static <E extends java.lang.Enum> ComboBox<E> createE(E[] values)
public static <T> ComboBox<T> createT(T[] values)
public static <T> ComboBox<T> createList(java.util.List<T> values)
public java.util.List<Widget> children()
public void children(java.util.List<? extends Widget> result)
public T getSelectedValue()
public void setSelectedValue(T value)
public ListItem<T> lookup(T value)
public void addValue(T value)
public void addString(java.lang.String text, T value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |