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)
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.
|
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelClosing, onPanelCreate, onPanelDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelClosing, onPanelCreate, onPanelDestroy
public void onFocusGained(VirtualPanel panel, VirtualControl control, String controlID)
onFocusGained
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.public void onFocusLost(VirtualPanel panel, VirtualControl control, String controlID)
onFocusLost
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.public void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text)
onContentChanged
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.text
- The control text contents.public void onContentChanged(VirtualPanel panel, VirtualControl control, String controlID, String text, int line)
line
parameter is set to -1 if no line is selected.
The default implementation in this adapter calls onContentChanged(panel,control,controlID,text)
.
onContentChanged
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.text
- The control text contents.line
- The selected line, or -1 for none.public 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 VirtualComponentListener
panel
- The panel issuing the event, parent of the control.list
- The list box control issuing the event.controlID
- The control ID issuing the event.line
- The selected line, or -1 for none.column
- The selected column, or -1 for none.public void onAction(VirtualPanel panel, VirtualControl control, String controlID)
The default implementation in this adapter calls onAction(panel,controlID)
.
onAction
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.public void onAction(VirtualPanel panel, VirtualMenuItem menuItem, String controlID)
The default implementation in this adapter calls onAction(panel,controlID)
.
onAction
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.menuItem
- The menu item issuing the event.controlID
- The control ID issuing the event.public void onAction(VirtualPanel panel, String controlID)
onAction
wasn't processed.panel
- The panel issuing the event, parent of the control.controlID
- The control ID issuing the event.public 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.
This method is currently unused and reserved for future use.
onControlEvent
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.event
- Event value.public 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 VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.state
- State (0=unchecked, 1=checked and 2=third state [only for check boxes]).public void onPropertyChange(VirtualPanel panel, VirtualControl control, String controlID, String propertyName, Object property)
The object is in general dependent of the property change event string.
onPropertyChange
in interface VirtualComponentListener
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.propertyName
- The property name.property
- Property value depending on the property name.@Deprecated public void onMenuAction(VirtualPanel panel, VirtualMenuItem menuItem)
onAction(VirtualPanel panel,VirtualMenuItem menuItem,String controlID)
.onMenuAction
in interface VirtualComponentListener
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.