| |
|
| de.jwic.controls.HTMLElement de.jwic.controls.ListControl de.jwic.controls.ListBoxControl
ListBoxControl | public class ListBoxControl extends ListControl (Code) | | This control renders a listbox using the HTML select tag.
author: Florian Lippisch version: $Revision: 1.3 $ |
CLICK_SELECTION | final public static int CLICK_SELECTION(Code) | | |
DBLCLICK_SELECTION | final public static int DBLCLICK_SELECTION(Code) | | |
NO_SELECTION | final public static int NO_SELECTION(Code) | | |
selectionMode | protected int selectionMode(Code) | | |
actionSelected | public void actionSelected()(Code) | | The action method that handles if the user selects the control, depending on
how the selectionMode is set.
|
addSelectionListener | public void addSelectionListener(SelectionListener listener)(Code) | | Register a listener that will be notified when the listbox has been
selected (i.e. doubleClick). The event is only triggered if the
selectionMode property is not NO_SELECTION.
Parameters: listener - |
getConfirmMsg | public String getConfirmMsg()(Code) | | Returns the confirmMsg. |
getSelectionMode | public int getSelectionMode()(Code) | | Returns the selectionMode. |
getSize | public int getSize()(Code) | | Returns the size. |
isMultiple | public boolean isMultiple()(Code) | | Returns the multiple. |
removeSelectionListener | public void removeSelectionListener(SelectionListener listener)(Code) | | Removes the specified listener.
Parameters: listener - |
sendSelectionEvent | protected void sendSelectionEvent()(Code) | | Send the element selected event to the registerd listeners.
|
setChangeNotification | public void setChangeNotification(boolean changeNotification)(Code) | | |
setConfirmMsg | public void setConfirmMsg(String confirmMsg)(Code) | | If the confirm message is not an empty string, the user will be prompted with a
message box and the specified message. He may then answer 'ok' or 'cancel'. If the
user presses ok, the change will be done. Otherwise the old value is restored
and no event happens.
Parameters: confirmMsg - The confirmMsg to set. |
setMultiple | public void setMultiple(boolean multiple)(Code) | | Parameters: multiple - The multiple to set. |
setSelectionMode | public void setSelectionMode(int selectionMode)(Code) | | Parameters: selectionMode - The selectionMode to set. |
setSize | public void setSize(int size)(Code) | | Set the size of the control. A value of 1 will display a combo-box, other
values display a list.
Parameters: size - The size to set. |
|
|
|