public abstract class VirtualComponentAdapter extends VirtualPanelAdapter implements VirtualComponentListener
This adapter extends VirtualPanelAdapter
and has a generic event message structure.
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES| Constructor and Description |
|---|
VirtualComponentAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAction(VirtualPanel panel,
String controlID)
Push buttons and menu items (or pop-up menu items) generates this event when selected
and the original
onAction wasn't processed |
void |
onAction(VirtualPanel panel,
VirtualControl control,
String controlID)
Push buttons generates this event when selected.
|
void |
onAction(VirtualPanel panel,
VirtualMenuItem menuItem,
String controlID)
Menu items (or pop-up menu items) generates this event when selected.
|
void |
onCheckedChange(VirtualPanel panel,
VirtualControl control,
String controlID,
int state)
Check boxes and radio buttons generates this event when state is changed on the client side.
|
void |
onContentChanged(VirtualPanel panel,
VirtualControl control,
String controlID,
String text)
Entry fields and multiple line entry fields generates this message.
|
void |
onContentChanged(VirtualPanel panel,
VirtualControl control,
String controlID,
String text,
int line)
Combination boxes and spin buttons generates this message.
|
void |
onControlEvent(VirtualPanel panel,
VirtualControl control,
int event)
The general notification event for "normal" controls.
|
void |
onFocusGained(VirtualPanel panel,
VirtualControl control,
String controlID)
Controls that can receive input focus generates this event when they gain focus.
|
void |
onFocusLost(VirtualPanel panel,
VirtualControl control,
String controlID)
Controls that can receive input focus generates this event when they lose focus.
|
void |
onMenuAction(VirtualPanel panel,
VirtualMenuItem menuItem)
Menu items generates this event when selected.
|
void |
onPropertyChange(VirtualPanel panel,
VirtualControl control,
String controlID,
String propertyName,
Object property)
A control notifies the listener using this event when custom properties
needs to be handled.
|
void |
onSelectionChanged(VirtualPanel panel,
VirtualCListBox list,
String controlID,
int line,
int column)
List boxes generates this message.
|
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelClosing, onPanelCreate, onPanelDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonPageActivated, onPanelClose, onPanelClosing, onPanelCreate, onPanelDestroypublic void onFocusGained(VirtualPanel panel, VirtualControl control, String controlID)
onFocusGained in interface VirtualComponentListenerpublic void onFocusLost(VirtualPanel panel, VirtualControl control, String controlID)
onFocusLost in interface VirtualComponentListenerpublic void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text)
onContentChanged in interface VirtualComponentListenerpublic void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text, int line)
line
parameter is set to -1 if no line is selected.onContentChanged in interface VirtualComponentListenerpublic void onSelectionChanged(VirtualPanel panel, VirtualCListBox list, String controlID, int line, int column)
line and column
parameter are individually set to -1 if no line or column is selected respectively.onSelectionChanged in interface VirtualComponentListenerpublic void onAction(VirtualPanel panel, VirtualControl control, String controlID)
onAction(panel,controlID)
method is called.onAction in interface VirtualComponentListenerpublic void onAction(VirtualPanel panel, VirtualMenuItem menuItem, String controlID)
onAction(panel,controlID)
method is called.onAction in interface VirtualComponentListenerpublic void onAction(VirtualPanel panel, String controlID)
onAction wasn't processedpublic void onControlEvent(VirtualPanel panel, VirtualControl control, int event)
The event parameter is one of the events
as defined with the CE_* variables.
The event parameter can also be a user defined
value that starts with CE_USER_DEFINED. In this case,
the control parameter is a VirtualCUserWindow
instance.
onControlEvent in interface VirtualComponentListenerpublic void onMenuAction(VirtualPanel panel, VirtualMenuItem menuItem)
onMenuAction in interface VirtualComponentListenerpublic void onCheckedChange(VirtualPanel panel, VirtualControl control, String controlID, int state)
The state is 0=unchecked, 1=checked and 2=third state (only for check boxes, or PhantomCCheckBox.STATE_UNDETERMINED).
onCheckedChange in interface VirtualComponentListenerpublic void onPropertyChange(VirtualPanel panel, VirtualControl control, String controlID, String propertyName, Object property)
The object is in general dependant of the property change event string.
onPropertyChange in interface VirtualComponentListenerPhantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.