CRecordNotifyDialogOpened
The NY_DialogMonitor, which registers open Swing dialogs.
The message belongs to the plugin NY_
{
"id": "588d17f7-1065-40a3-ab7a-2729b320a361",
"name": "NOTIFY_DIALOG_OPENED ",
"isService": "true",
"namespaces": "SYSTEM",
"description": "Notification that a Remote Skin dialog has been created.",
"slots": [
{
"key": "1",
"name": "ID ",
"direction": "REQUEST",
"mandatory": "true",
"type": "UUID",
"description": "The instance ID of the dialog."
},
{
"key": "2",
"name": "CLIENT_CONTEXT_ID ",
"direction": "REQUEST",
"mandatory": "true",
"type": "ID",
"description": "The name of the client context ID."
},
{
"key": "3",
"name": "CLIENT_CONTEXT_ADDRESS ",
"direction": "REQUEST",
"mandatory": "true",
"type": "TARGET_ADDRESS",
"description": "The name of the client context target address."
},
{
"key": "4",
"name": "PLATFORM_TYPE ",
"direction": "REQUEST",
"mandatory": "true",
"type": "STRING",
"description": "The platform type."
},
{
"key": "5",
"name": "PARENT_WIDGET_ID ",
"direction": "REQUEST",
"mandatory": "true",
"type": "WIDGET_ID",
"description": "The parent widget ID."
},
{
"key": "6",
"name": "DIALOG_TYPE ",
"direction": "REQUEST",
"mandatory": "true",
"type": "STRING",
"description": "The type of the dialog."
}
]
}
Arguments
ID : The ID of the dialog.CLIENT_CONTEXT_ID : TheRemote Skin client context ID.CLIENT_CONTEXT_ADDRESS : TheRemote Skin client address.PLATFORM_TYPE : The platform type, typically "SWING".PARENT_WIDGET_ID : The ID of the parent widget of the dialog.DIALOG_TYPE : The dialog type.
Usage
Sending the message
private void registerDialog(@NotNull final UUIDaDialogInstanceId , @NotNull final IIdaClientContextId , @NotNull final CTargetAddressaClientContextAddress , @NotNull final StringaParentWidgetId ) throws CException { final IId microServiceId = CIdFactory.fromObject("NY_DialogMonitor"); final CEnvelope env = CEnvelope.forMicroService(microServiceId); final CRecord record =CRecordNotifyDialogOpened .create();CRecordNotifyDialogOpened .setId(record,aDialogInstanceId );CRecordNotifyDialogOpened .setDialogType(record,"DialogMonitor" );CRecordNotifyDialogOpened .setClientContextAddress(record,aClientContextAddress );CRecordNotifyDialogOpened .setClientContextId(record,aClientContextId );CRecordNotifyDialogOpened .setPlatformType(record,EPlatformType.SWING.name() );CRecordNotifyDialogOpened .setParentWidgetId(record,aParentWidgetId ); sendNotification(env, record); }