public interface VirtualComponentListener extends VirtualPanelListener
This interface is extends the VirtualPanelListener
interface and has a generic event message structure. The
VirtualComponentAdapter
is a convenience abstract class
to ease creation of (anonymous) inner classes.
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
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
Replaced with
onAction(VirtualPanel panel,VirtualMenuItem menuItem,String controlID) . |
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.
|
onPageActivated, onPanelClose, onPanelClosing, onPanelCreate, onPanelDestroy
void onFocusGained(VirtualPanel panel, VirtualControl control, String controlID)
void onFocusLost(VirtualPanel panel, VirtualControl control, String controlID)
void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text)
void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text, int line)
line
parameter is set to -1 if no line is selected.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.void onAction(VirtualPanel panel, VirtualControl control, String controlID)
void onAction(VirtualPanel panel, VirtualMenuItem menuItem, String controlID)
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.
@Deprecated void onMenuAction(VirtualPanel panel, VirtualMenuItem menuItem)
onAction(VirtualPanel panel,VirtualMenuItem menuItem,String controlID)
.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).
void onPropertyChange(VirtualPanel panel, VirtualControl control, String controlID, String propertyName, Object property)
The object is in general dependent of the property change event string.
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.