public class ListAndColor extends VirtualComponentAdapter
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 |
---|
ListAndColor(String[] descriptions,
Color[] defaultColors,
Color[] colors,
VirtualControl list,
VirtualControl color,
VirtualControl defaultButton,
Component repaint)
Creates and initializes the panel with the specified colors.
|
Modifier and Type | Method and Description |
---|---|
void |
onAction(VirtualPanel panel,
VirtualControl control,
String controlID)
Push buttons generates this event when selected.
|
void |
onPropertyChange(VirtualPanel vp,
VirtualControl control,
String controlID,
String propertyName,
Object property)
A control notifies the listener using this event when custom properties
needs to be handled.
|
onAction, onAction, onCheckedChange, onContentChanged, onContentChanged, onControlEvent, onFocusGained, onFocusLost, onMenuAction, onSelectionChanged
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelClosing, onPanelCreate, onPanelDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelClosing, onPanelCreate, onPanelDestroy
public ListAndColor(String[] descriptions, Color[] defaultColors, Color[] colors, VirtualControl list, VirtualControl color, VirtualControl defaultButton, Component repaint)
public void onPropertyChange(VirtualPanel vp, VirtualControl control, String controlID, String propertyName, Object property)
The object is in general dependent of the property change event string.
onPropertyChange
in interface VirtualComponentListener
onPropertyChange
in class VirtualComponentAdapter
vp
- 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.public void onAction(VirtualPanel panel, VirtualControl control, String controlID)
onAction(panel,controlID)
method is called.onAction
in interface VirtualComponentListener
onAction
in class VirtualComponentAdapter
panel
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2023. All rights reserved.