Professional Documents
Culture Documents
Table of Contents
TABLE OF CONTENTS......................................................................................................................................................................................................................1
ObBuildSocketStream...................................................................................................................................................................................................................52
ObBuildStatus...............................................................................................................................................................................................................................53
ObBuildStatusInfo.........................................................................................................................................................................................................................54
ObCompileJava............................................................................................................................................................................................................................56
ObCompileRequest.......................................................................................................................................................................................................................57
ObCompileSource.........................................................................................................................................................................................................................58
ObParseGeneratedSQL................................................................................................................................................................................................................59
ObRetrieveLstFile.........................................................................................................................................................................................................................61
ObRmtBuildRequest......................................................................................................................................................................................................................62
ObSourceFile................................................................................................................................................................................................................................63
ObSQLBuildOption.......................................................................................................................................................................................................................64
OBFUNCTION.....................................................................................................................................................................................................................................65
ObServerApp.................................................................................................................................................................................................................................65
ObVariable...................................................................................................................................................................................................................................66
OBRUN..............................................................................................................................................................................................................................................67
ObComms.....................................................................................................................................................................................................................................67
ObAS400Conversation.................................................................................................................................................................................................................................... 67
ObAS400SocketStream................................................................................................................................................................................................................................... 69
ObAS400SocketStream$AS400DataReading.................................................................................................................................................................................................. 73
ObAS400SocketStream$AS400ErrorHandling............................................................................................................................................................................................... 74
ObAS400SocketStream$ObAS400CallInfo.................................................................................................................................................................................................... 75
ObClientConnect............................................................................................................................................................................................................................................. 76
ObClientListen................................................................................................................................................................................................................................................ 78
ObClientType.................................................................................................................................................................................................................................................. 79
ObConversation............................................................................................................................................................................................................................................... 80
ObDataSocketStream...................................................................................................................................................................................................................................... 81
ObDispatchSocketStream................................................................................................................................................................................................................................ 82
ObNotifyConnect............................................................................................................................................................................................................................................ 83
ObNotifyEvent................................................................................................................................................................................................................................................ 84
ObObjectConversation.................................................................................................................................................................................................................................... 85
ObObjectSocketStream................................................................................................................................................................................................................................... 86
ObRemoteException....................................................................................................................................................................................................................................... 87
ObService........................................................................................................................................................................................................................................................ 88
ObSocketListen............................................................................................................................................................................................................................................... 89
ObSocketService............................................................................................................................................................................................................................................. 90
ObDatabase..................................................................................................................................................................................................................................92
ObDatabaseConnection................................................................................................................................................................................................................................... 92
ObDatabaseMgr.............................................................................................................................................................................................................................................. 93
ObSocketStream.............................................................................................................................................................................................................................................. 95
ObSQLDataTypes........................................................................................................................................................................................................................................... 96
ObSQLTypeConversion.................................................................................................................................................................................................................................. 97
ObValidSQLType........................................................................................................................................................................................................................................... 98
ObEnvironment.............................................................................................................................................................................................................................99
ObException.................................................................................................................................................................................................................................................... 99
ObJavaApi..................................................................................................................................................................................................................................................... 100
ObLog........................................................................................................................................................................................................................................................... 101
ObODBCOptionValues................................................................................................................................................................................................................................. 102
ObOptionsElement........................................................................................................................................................................................................................................ 103
ObOptionsList............................................................................................................................................................................................................................................... 104
ObRunOptions............................................................................................................................................................................................................................................... 105
ObStringResource......................................................................................................................................................................................................................................... 106
ObView......................................................................................................................................................................................................................................................... 107
ObFunction.................................................................................................................................................................................................................................108
ObApplication............................................................................................................................................................................................................................................... 108
ObCall........................................................................................................................................................................................................................................................... 111
ObCallInfo..................................................................................................................................................................................................................................................... 112
ObCallMgr.................................................................................................................................................................................................................................................... 113
ObClientApp................................................................................................................................................................................................................................................. 114
ObFncParameter............................................................................................................................................................................................................................................ 115
ObFunction.................................................................................................................................................................................................................................................... 117
ObFunctionHandler....................................................................................................................................................................................................................................... 119
ObLocalJavaCall........................................................................................................................................................................................................................................... 120
ObMessageLog.............................................................................................................................................................................................................................................. 121
ObMessageLog$ObMenuListener................................................................................................................................................................................................................. 123
ObPanel......................................................................................................................................................................................................................................................... 124
ObRemoteJavaCall........................................................................................................................................................................................................................................ 126
ObRemoteRPGCall....................................................................................................................................................................................................................................... 127
ObServerApp................................................................................................................................................................................................................................................. 128
ObValidElement............................................................................................................................................................................................................................................ 129
ObVariable.................................................................................................................................................................................................................................................... 130
ObVariableGroup.......................................................................................................................................................................................................................................... 131
ObPanel......................................................................................................................................................................................................................................133
ObCtrlData.................................................................................................................................................................................................................................................... 133
ObBeanData.............................................................................................................................................................................................................................................. 133
ObCheckboxData...................................................................................................................................................................................................................................... 134
ObColumnHeadingData............................................................................................................................................................................................................................ 135
ObComboData.......................................................................................................................................................................................................................................... 136
ObControlState......................................................................................................................................................................................................................................... 137
ObCtrlData................................................................................................................................................................................................................................................ 138
ObDialogData........................................................................................................................................................................................................................................... 141
ObEditData............................................................................................................................................................................................................................................... 142
ObEventMap............................................................................................................................................................................................................................................. 143
ObGridData............................................................................................................................................................................................................................................... 144
ObKeyStrokeMap..................................................................................................................................................................................................................................... 145
ObKeyStrokeMap$ObKeyDetails............................................................................................................................................................................................................. 146
ObLabelData............................................................................................................................................................................................................................................. 147
ObListData................................................................................................................................................................................................................................................ 148
ObLogicalEvents....................................................................................................................................................................................................................................... 149
ObMenubarData........................................................................................................................................................................................................................................ 150
ObMenuData............................................................................................................................................................................................................................................. 151
ObMenuitemData...................................................................................................................................................................................................................................... 152
ObMultilineEditData................................................................................................................................................................................................................................. 153
ObPasswordData....................................................................................................................................................................................................................................... 154
ObPictureData........................................................................................................................................................................................................................................... 155
ObPushbuttonData.................................................................................................................................................................................................................................... 156
ObRadiobuttonData.................................................................................................................................................................................................................................. 157
ObSeparatorData....................................................................................................................................................................................................................................... 158
ObSpinData............................................................................................................................................................................................................................................... 159
ObStaticData............................................................................................................................................................................................................................................. 160
ObStatusbarData....................................................................................................................................................................................................................................... 161
ObToolbarbuttonData............................................................................................................................................................................................................................... 162
ObToolbarData......................................................................................................................................................................................................................................... 163
ObTopAppData......................................................................................................................................................................................................................................... 164
ObUserAPI................................................................................................................................................................................................................................................ 165
ObValuePairList....................................................................................................................................................................................................................................... 166
ObValuePairList$ObValuePair................................................................................................................................................................................................................. 168
ObWindowData........................................................................................................................................................................................................................................ 169
ObCtrlGui...................................................................................................................................................................................................................................................... 172
ObBackgroundPanel................................................................................................................................................................................................................................. 172
ObBaseGridEditorDelegate....................................................................................................................................................................................................................... 173
ObBasicTreeCellRenderer........................................................................................................................................................................................................................ 174
ObBeanGui............................................................................................................................................................................................................................................... 175
ObButton................................................................................................................................................................................................................................................... 176
ObCheckboxGridEditorDelegate.............................................................................................................................................................................................................. 177
ObCheckboxGui....................................................................................................................................................................................................................................... 178
ObCheckBoxTreeCellRenderer................................................................................................................................................................................................................. 180
ObClockTick............................................................................................................................................................................................................................................. 181
ObColumnHeadingGui............................................................................................................................................................................................................................. 182
ObComboGridEditorDelegate................................................................................................................................................................................................................... 183
ObComboGui............................................................................................................................................................................................................................................ 184
ObCtrlGui................................................................................................................................................................................................................................................. 186
ObCtrlGui$1............................................................................................................................................................................................................................................. 194
ObCtrlGui$ObDateDocument................................................................................................................................................................................................................... 195
ObCtrlGui$ObLowerCaseDocument........................................................................................................................................................................................................ 196
ObCtrlGui$ObNumericDocument............................................................................................................................................................................................................. 197
ObCtrlGui$ObPopupItem......................................................................................................................................................................................................................... 198
ObCtrlGui$ObTimeDocument.................................................................................................................................................................................................................. 199
ObCtrlGui$ObTimeStampDocument........................................................................................................................................................................................................ 200
ObCtrlGui$ObUpperCaseDocument......................................................................................................................................................................................................... 201
ObDialogGui............................................................................................................................................................................................................................................. 202
ObEditGridEditorDelegate........................................................................................................................................................................................................................ 204
ObEditGui................................................................................................................................................................................................................................................. 205
ObGridCellEditor...................................................................................................................................................................................................................................... 207
ObGridCellEditor$ObMouseAdapter........................................................................................................................................................................................................ 209
ObGridGui................................................................................................................................................................................................................................................ 210
ObGridGui$ObGridColumnListener......................................................................................................................................................................................................... 216
ObGridGui$ObTableListener.................................................................................................................................................................................................................... 217
ObGridModel............................................................................................................................................................................................................................................ 218
ObLabelGui.............................................................................................................................................................................................................................................. 220
ObLabelGui$ObLabel............................................................................................................................................................................................................................... 222
ObListGui................................................................................................................................................................................................................................................. 223
ObMenubarGui......................................................................................................................................................................................................................................... 225
ObMenuGui.............................................................................................................................................................................................................................................. 226
ObMenuitemGui....................................................................................................................................................................................................................................... 227
ObMultilineEditGui.................................................................................................................................................................................................................................. 228
ObMultilineEditGui$1.............................................................................................................................................................................................................................. 231
ObMultilineEditGui$2.............................................................................................................................................................................................................................. 232
ObMultilineEditGui$3.............................................................................................................................................................................................................................. 233
ObMultilineEditGui$4.............................................................................................................................................................................................................................. 234
ObMultilineEditGui$5.............................................................................................................................................................................................................................. 235
ObMultilineEditGui$6.............................................................................................................................................................................................................................. 236
ObMultilineEditGui$7.............................................................................................................................................................................................................................. 237
ObMultilineEditGui$UndoHandler........................................................................................................................................................................................................... 238
ObPasswordGridEditorDelegate............................................................................................................................................................................................................... 239
ObPasswordGui........................................................................................................................................................................................................................................ 240
ObPictureGridEditorDelegate................................................................................................................................................................................................................... 242
ObPictureGui............................................................................................................................................................................................................................................ 243
ObPushbuttonGui...................................................................................................................................................................................................................................... 245
ObRadiobuttonGui.................................................................................................................................................................................................................................... 247
ObSeparatorGui........................................................................................................................................................................................................................................ 249
ObSpinGui................................................................................................................................................................................................................................................ 250
ObStaticGui.............................................................................................................................................................................................................................................. 253
ObStaticGui$ObStatic............................................................................................................................................................................................................................... 255
ObStatusbarGui......................................................................................................................................................................................................................................... 256
ObTabSequence........................................................................................................................................................................................................................................ 257
ObToolbarbuttonGui................................................................................................................................................................................................................................. 258
ObToolbarGui........................................................................................................................................................................................................................................... 259
ObTopAppGui.......................................................................................................................................................................................................................................... 260
ObWindowGui.......................................................................................................................................................................................................................................... 262
ObLaunch...................................................................................................................................................................................................................................................... 264
ObLaunch$ObApplet.................................................................................................................................................................................................................................... 266
ObPanelUtils................................................................................................................................................................................................................................................. 267
ObPanelResource...................................................................................................................................................................................................................................... 267
ObXYLayoutManager............................................................................................................................................................................................................................... 268
XYConstraint............................................................................................................................................................................................................................................ 269
ObVersionInfo............................................................................................................................................................................................................................................... 270
ObRTTypes.................................................................................................................................................................................................................................271
ObByteFld..................................................................................................................................................................................................................................................... 271
ObCharFld..................................................................................................................................................................................................................................................... 273
ObDateFld..................................................................................................................................................................................................................................................... 275
ObDblFld...................................................................................................................................................................................................................................................... 277
ObField.......................................................................................................................................................................................................................................................... 279
ObFieldSQLTypes......................................................................................................................................................................................................................................... 283
ObFixedDecFld............................................................................................................................................................................................................................................. 284
ObIntFld........................................................................................................................................................................................................................................................ 286
ObLongDblFld.............................................................................................................................................................................................................................................. 288
ObLongFld.................................................................................................................................................................................................................................................... 290
ObPanelUtils................................................................................................................................................................................................................................................. 292
ObXYLayoutManager............................................................................................................................................................................................................................... 292
XYConstraint............................................................................................................................................................................................................................................ 293
ObSglFld....................................................................................................................................................................................................................................................... 294
ObSpecialVal................................................................................................................................................................................................................................................ 296
ObStructuredFld............................................................................................................................................................................................................................................ 297
ObTimeFld.................................................................................................................................................................................................................................................... 298
ObTimeStampFld.......................................................................................................................................................................................................................................... 300
THE COOL:PLEX JAVA SOURCES............................................................................................................................................................................................303
OVERVIEW.......................................................................................................................................................................................................................................303
OBBLDMGR.....................................................................................................................................................................................................................................303
ObBuildClient.............................................................................................................................................................................................................................303
ObBuildConnection....................................................................................................................................................................................................................315
ObBuildInfo................................................................................................................................................................................................................................321
ObBuildJDBC.............................................................................................................................................................................................................................325
ObBuildManager........................................................................................................................................................................................................................329
ObBuildQueue............................................................................................................................................................................................................................338
ObBuildRequest..........................................................................................................................................................................................................................339
ObBuildSchema..........................................................................................................................................................................................................................342
ObBuildSocketStream.................................................................................................................................................................................................................344
ObBuildStatus.............................................................................................................................................................................................................................345
ObBuildStatusInfo.......................................................................................................................................................................................................................348
ObCompileJava..........................................................................................................................................................................................................................351
ObCompileRequest.....................................................................................................................................................................................................................354
ObCompileSource.......................................................................................................................................................................................................................356
ObParseGeneratedSQL..............................................................................................................................................................................................................360
ObRetrieveLstFile.......................................................................................................................................................................................................................368
ObRmtBuildRequest....................................................................................................................................................................................................................373
ObSourceFile..............................................................................................................................................................................................................................375
ObSQLBuildOption.....................................................................................................................................................................................................................378
OBFUNCTION...................................................................................................................................................................................................................................381
ObServerApp...............................................................................................................................................................................................................................381
ObVariable.................................................................................................................................................................................................................................382
OBRUN............................................................................................................................................................................................................................................386
ObComms...................................................................................................................................................................................................................................386
ObAS400Conversation.................................................................................................................................................................................................................................. 386
ObAS400SocketStream................................................................................................................................................................................................................................. 396
ObAS400SocketStream$AS400DataReading................................................................................................................................................................................................ 413
ObAS400SocketStream$AS400ErrorHandling............................................................................................................................................................................................. 414
ObAS400SocketStream$ObAS400CallInfo.................................................................................................................................................................................................. 415
ObClientConnect........................................................................................................................................................................................................................................... 419
ObClientListen.............................................................................................................................................................................................................................................. 425
ObClientType................................................................................................................................................................................................................................................ 426
ObConversation............................................................................................................................................................................................................................................. 428
ObDataSocketStream.................................................................................................................................................................................................................................... 430
ObDispatchSocketStream.............................................................................................................................................................................................................................. 432
ObNotifyConnect.......................................................................................................................................................................................................................................... 436
ObNotifyEvent.............................................................................................................................................................................................................................................. 438
ObObjectConversation.................................................................................................................................................................................................................................. 439
ObObjectSocketStream................................................................................................................................................................................................................................. 442
ObRemoteException...................................................................................................................................................................................................................................... 445
Full name of class: ObRun.ObComms.ObRemoteException.class...................................................................................................................................................445
ObService...................................................................................................................................................................................................................................................... 446
ObSocketListen............................................................................................................................................................................................................................................. 449
ObSocketService........................................................................................................................................................................................................................................... 452
ObDatabase................................................................................................................................................................................................................................460
ObDatabaseConnection................................................................................................................................................................................................................................. 460
ObDatabaseMgr............................................................................................................................................................................................................................................ 468
ObSocketStream............................................................................................................................................................................................................................................ 476
ObSQLDataTypes......................................................................................................................................................................................................................................... 480
ObSQLTypeConversion................................................................................................................................................................................................................................ 483
ObValidSQLType......................................................................................................................................................................................................................................... 485
ObEnvironment...........................................................................................................................................................................................................................487
ObException.................................................................................................................................................................................................................................................. 487
ObJavaApi..................................................................................................................................................................................................................................................... 488
ObLog........................................................................................................................................................................................................................................................... 489
ObODBCOptionValues................................................................................................................................................................................................................................. 491
ObOptionsElement........................................................................................................................................................................................................................................ 495
ObOptionsList............................................................................................................................................................................................................................................... 497
ObRunOptions............................................................................................................................................................................................................................................... 500
ObStringResource......................................................................................................................................................................................................................................... 505
ObView......................................................................................................................................................................................................................................................... 506
ObFunction.................................................................................................................................................................................................................................509
ObApplication............................................................................................................................................................................................................................................... 509
ObCall........................................................................................................................................................................................................................................................... 521
ObCallInfo..................................................................................................................................................................................................................................................... 523
ObCallMgr.................................................................................................................................................................................................................................................... 526
ObClientApp................................................................................................................................................................................................................................................. 530
ObFncParameter............................................................................................................................................................................................................................................ 531
ObFunction.................................................................................................................................................................................................................................................... 534
ObFunctionHandler....................................................................................................................................................................................................................................... 543
ObLocalJavaCall........................................................................................................................................................................................................................................... 544
ObMessageLog.............................................................................................................................................................................................................................................. 546
ObMessageLog$ObMenuListener................................................................................................................................................................................................................. 549
ObPanel......................................................................................................................................................................................................................................................... 550
ObRemoteJavaCall........................................................................................................................................................................................................................................ 558
ObRemoteRPGCall....................................................................................................................................................................................................................................... 560
ObServerApp................................................................................................................................................................................................................................................. 562
ObValidElement............................................................................................................................................................................................................................................ 563
ObVariable.................................................................................................................................................................................................................................................... 564
ObVariableGroup.......................................................................................................................................................................................................................................... 568
ObPanel......................................................................................................................................................................................................................................586
ObCtrlData.................................................................................................................................................................................................................................................... 586
ObBeanData.............................................................................................................................................................................................................................................. 586
ObCheckboxData...................................................................................................................................................................................................................................... 587
ObColumnHeadingData............................................................................................................................................................................................................................ 589
ObComboData.......................................................................................................................................................................................................................................... 590
ObControlState......................................................................................................................................................................................................................................... 592
ObCtrlData................................................................................................................................................................................................................................................ 594
ObDialogData........................................................................................................................................................................................................................................... 609
ObEditData............................................................................................................................................................................................................................................... 611
ObEventMap............................................................................................................................................................................................................................................. 612
ObGridData............................................................................................................................................................................................................................................... 614
ObKeyStrokeMap..................................................................................................................................................................................................................................... 617
ObKeyStrokeMap$ObKeyDetails............................................................................................................................................................................................................. 619
ObLabelData............................................................................................................................................................................................................................................. 620
ObListData................................................................................................................................................................................................................................................ 621
ObLogicalEvents....................................................................................................................................................................................................................................... 623
ObMenubarData........................................................................................................................................................................................................................................ 624
ObMenuData............................................................................................................................................................................................................................................. 625
ObMenuitemData...................................................................................................................................................................................................................................... 626
ObMultilineEditData................................................................................................................................................................................................................................. 627
ObPasswordData....................................................................................................................................................................................................................................... 628
ObPictureData........................................................................................................................................................................................................................................... 629
ObPushbuttonData.................................................................................................................................................................................................................................... 630
ObRadiobuttonData.................................................................................................................................................................................................................................. 631
ObSeparatorData....................................................................................................................................................................................................................................... 633
ObSpinData............................................................................................................................................................................................................................................... 634
ObStaticData............................................................................................................................................................................................................................................. 635
ObStatusbarData....................................................................................................................................................................................................................................... 636
ObToolbarbuttonData............................................................................................................................................................................................................................... 637
ObToolbarData......................................................................................................................................................................................................................................... 638
ObTopAppData......................................................................................................................................................................................................................................... 639
ObUserAPI................................................................................................................................................................................................................................................ 641
ObValuePairList....................................................................................................................................................................................................................................... 650
ObValuePairList$ObValuePair................................................................................................................................................................................................................. 654
ObWindowData........................................................................................................................................................................................................................................ 655
ObCtrlGui...................................................................................................................................................................................................................................................... 667
ObBackgroundPanel................................................................................................................................................................................................................................. 667
ObBaseGridEditorDelegate....................................................................................................................................................................................................................... 669
ObBasicTreeCellRenderer........................................................................................................................................................................................................................ 671
ObBeanGui............................................................................................................................................................................................................................................... 672
ObButton................................................................................................................................................................................................................................................... 674
ObCheckboxGridEditorDelegate.............................................................................................................................................................................................................. 677
ObCheckboxGui....................................................................................................................................................................................................................................... 679
ObCheckBoxTreeCellRenderer................................................................................................................................................................................................................. 685
ObClockTick............................................................................................................................................................................................................................................. 686
ObColumnHeadingGui............................................................................................................................................................................................................................. 687
ObComboGridEditorDelegate................................................................................................................................................................................................................... 690
ObComboGui............................................................................................................................................................................................................................................ 692
ObCtrlGui................................................................................................................................................................................................................................................. 698
ObCtrlGui$1............................................................................................................................................................................................................................................. 756
ObCtrlGui$ObDateDocument................................................................................................................................................................................................................... 757
ObCtrlGui$ObLowerCaseDocument........................................................................................................................................................................................................ 758
ObCtrlGui$ObNumericDocument............................................................................................................................................................................................................. 759
ObCtrlGui$ObPopupItem......................................................................................................................................................................................................................... 760
ObCtrlGui$ObTimeDocument.................................................................................................................................................................................................................. 762
ObCtrlGui$ObTimeStampDocument........................................................................................................................................................................................................ 764
ObCtrlGui$ObUpperCaseDocument......................................................................................................................................................................................................... 766
ObDialogGui............................................................................................................................................................................................................................................. 767
ObEditGridEditorDelegate........................................................................................................................................................................................................................ 773
ObEditGui................................................................................................................................................................................................................................................. 775
ObGridCellEditor...................................................................................................................................................................................................................................... 786
ObGridCellEditor$ObMouseAdapter........................................................................................................................................................................................................ 792
ObGridGui................................................................................................................................................................................................................................................ 793
ObGridGui$ObGridColumnListener......................................................................................................................................................................................................... 815
ObGridGui$ObTableListener.................................................................................................................................................................................................................... 817
ObGridModel............................................................................................................................................................................................................................................ 819
ObLabelGui.............................................................................................................................................................................................................................................. 830
ObLabelGui$ObLabel............................................................................................................................................................................................................................... 838
ObListGui................................................................................................................................................................................................................................................. 840
ObMenubarGui......................................................................................................................................................................................................................................... 850
ObMenuGui.............................................................................................................................................................................................................................................. 852
ObMenuitemGui....................................................................................................................................................................................................................................... 855
ObMultilineEditGui.................................................................................................................................................................................................................................. 859
ObMultilineEditGui$1.............................................................................................................................................................................................................................. 876
ObMultilineEditGui$2.............................................................................................................................................................................................................................. 877
ObMultilineEditGui$3.............................................................................................................................................................................................................................. 878
ObMultilineEditGui$4.............................................................................................................................................................................................................................. 879
ObMultilineEditGui$5.............................................................................................................................................................................................................................. 880
ObMultilineEditGui$6.............................................................................................................................................................................................................................. 881
ObMultilineEditGui$7.............................................................................................................................................................................................................................. 882
ObMultilineEditGui$UndoHandler........................................................................................................................................................................................................... 883
ObPasswordGridEditorDelegate............................................................................................................................................................................................................... 884
ObPasswordGui........................................................................................................................................................................................................................................ 886
ObPictureGridEditorDelegate................................................................................................................................................................................................................... 897
ObPictureGui............................................................................................................................................................................................................................................ 899
ObPushbuttonGui...................................................................................................................................................................................................................................... 906
ObRadiobuttonGui.................................................................................................................................................................................................................................... 914
ObSeparatorGui........................................................................................................................................................................................................................................ 920
ObSpinGui................................................................................................................................................................................................................................................ 921
ObStaticGui.............................................................................................................................................................................................................................................. 950
ObStaticGui$ObStatic............................................................................................................................................................................................................................... 958
ObStatusbarGui......................................................................................................................................................................................................................................... 960
ObTabSequence........................................................................................................................................................................................................................................ 961
ObToolbarbuttonGui................................................................................................................................................................................................................................. 962
ObToolbarGui........................................................................................................................................................................................................................................... 966
ObTopAppGui.......................................................................................................................................................................................................................................... 968
ObWindowGui.......................................................................................................................................................................................................................................... 976
ObLaunch...................................................................................................................................................................................................................................................... 990
ObLaunch$ObApplet.................................................................................................................................................................................................................................... 993
ObPanelUtils................................................................................................................................................................................................................................................. 995
ObPanelResource...................................................................................................................................................................................................................................... 995
ObXYLayoutManager............................................................................................................................................................................................................................... 997
XYConstraint.......................................................................................................................................................................................................................................... 1001
ObVersionInfo............................................................................................................................................................................................................................................. 1002
ObRTTypes...............................................................................................................................................................................................................................1004
ObByteFld................................................................................................................................................................................................................................................... 1004
ObCharFld................................................................................................................................................................................................................................................... 1015
ObDateFld................................................................................................................................................................................................................................................... 1026
ObDblFld..................................................................................................................................................................................................................................................... 1040
ObField........................................................................................................................................................................................................................................................ 1051
ObFieldSQLTypes....................................................................................................................................................................................................................................... 1069
ObFixedDecFld........................................................................................................................................................................................................................................... 1072
ObIntFld...................................................................................................................................................................................................................................................... 1085
ObLongDblFld............................................................................................................................................................................................................................................ 1096
ObLongFld.................................................................................................................................................................................................................................................. 1107
ObPanelUtils............................................................................................................................................................................................................................................... 1118
ObXYLayoutManager............................................................................................................................................................................................................................. 1118
XYConstraint.......................................................................................................................................................................................................................................... 1122
ObSglFld..................................................................................................................................................................................................................................................... 1123
ObSpecialVal.............................................................................................................................................................................................................................................. 1134
ObStructuredFld.......................................................................................................................................................................................................................................... 1145
ObTimeFld.................................................................................................................................................................................................................................................. 1149
ObTimeStampFld........................................................................................................................................................................................................................................ 1163
FIGURE 1 THE FULL LIST OF QUALIFIED CLASS NAMES..........................................................................................................................................1179
Overview
1) To give some real-world examples of how accomplish common tasks using COOL:Plex Java generated code
2) To expose the COOL:Plex 4.0 build 131 ObRun.class to the extent this possible without prying into code intentionally hidden by
the owner of COOL:Plex. Class exposure is common in the Java world, but the vendor of COOL:Plex has not yet done this, for
budgetary reasons.
Upon first glance, you may think this document is enormous and unwieldy. So? Well, thats not the point. Most of this document is
reference material for look something things up. Only the first major section, Everyday Tasks Using The COOL:Plex Java
Generator, bears reading all the way throughunless, of course, you are desperately in need of sleep. If you are, may I suggest the
section titled The COOL:Plex Java Sources. This section gives James Michener a run for his money, and makes War and Peace look
live a Stephen King novella.
The Java classes contained in the ObRun.jar are copyrighted by the owner of COOL:Plex, whoever that happens to be this week
and I recognize their copyright here. Only the information left in plain view by the owner of COOL:Plex has been documented, and
no attempts have been made to delve deeper than that.
Various other odd words, phrases, command names, etc. are copyrighted by Sun Microsystems, at least until CA buys them. I
recognize their copyrights here.
Mark Phippard contributed the section named, Deploying Plex Java Applications. If you want to know who owns the copyright on
that part, please ask Mark at MarkP@softlanding.com.
This document, with the above exceptions, is Copyright 2000 by Louis H. Kurrelmeyer, Jr. The price for a copy of this document is
US$10, which goes into a Maxwell House can to pay for production and distribution costs. If you get a copy of this document and find
it useful, please pay for it. If you have contributed something that has been included in this document, you are entitled to a free copy.
The information in this document is believed to be correct, but is supplied on an as-is, best-effort basis, with absolutely, positively no
warranties expressed or implied. So, dont plan on suing meever. Not even if you use something from this document and it makes
your computer melt and run through the cracks in your raised floor.
Overview
Ive been using COOL:Plex since before it was released, and have always found the generated C++ code absolutely incomprehensible.
Then again, I find MSVC++ absolutely incomprehensible in general. Over the years, I have figured out how to coerce COOL:Plex into
performing native Windows and MSVC++ tasks. You know, the really bizarre stuff, like calling another program or sending
somebody an e-mail.
COOL:Plex Java is not like the C++. It is much easier to make COOL:Plex Java do things like calling other programs, be called by
other programs etc.
This document sets out some examples of how to get COOL:Plex to do these types of things.
If you have any cool stuff you want me to add (pun always intended), send it alongand if it looks like it might work, Ill add it to
this document and give you the blame.
Sounds easy? Guess again. There is a ton of stuff you have to do before you can even think about compiling.
1) Get the Sun Java JDK (Java Development Kit) from Sun Microsystems at www.Sun.com. Its a free download. You can order a
CD for $39.95, but it comes about as fast as those free things we used to get by cutting out coupons from the back of cereal boxes.
Im still waiting for my Captain Midnight decoder ring. Get the right version. COOL:Plex Java 4.0 needs Sun JDK 1.1.8. I tried
JDK 1.2.2, and learned the hard way this is NOT a good idea.
2) Install the JDK into a folder named jdk118, say C:\jdk118. Dont use the default JDK-1.1.8. Java doesnt understand Windows
long directory names, and you will wind up interpreting JDK-1.1.8 into its DOS name, being JDK11~1.8. Cool? NOT! Stop,
make a note right now and pin it up on the wall of your cubicle or on the forehead of that other programmer that never seems to
move. The note should read, JAVA does not understand Windows long file namesUse DOS 8 letter names at all cost. If theat
other programmer still hasnt moved, pin this on their forehead too, There are no such things as spaces in Java names.
3) Do not waste your time downloading the JRE (Java Runtime Engine). You already have it. It is in C:\jdk118\bin. Add that to
you Windows path statement. Mine looks likes this:
SET PATH=%PATH%;C:\PLEX\BIN;F:\jdk118\bin;F:\SQLANY50\WIN32;~~~(etc.)
4) Download the Swing Class version 1.1.1 from Sun. The latest intelligence report is this down-load is hidden at
http://java.sun.com/products/jfc, but Sun has a habit of moving it every time somebody finds it. (See CD for $39.95 above.) When
you are done getting this monstrous >11mb download, install it in a directory named Swing111 (notice the clever use of all 8
characters). You need 1 object from this. Its called swingall.jar. You can delete the rest of the 11mb now unless you plan on
hand coding Java screens.
5) Create a directory called Java. Say C:\Java. Add a lib sub-folder to it. That is C:\Java\lib. Find the following three objects and
put them in C:\Java\Lib:
classes.zip
swingall.jar
ObRun.jar
6) Add three sub-folders to you normal GEN folder. You know, the GEN\WIN\Release feller. You will need GEN\CLIENT,
GEN\SERVER and GEN\MISC. NOTE! These names are case sensitive. If that idiot is still standing around doing nothing while you
do all the work like usual, pin this note to their forehead too, Java is more Case sensitive than all the Lawyers and Doctors on
Earth, put together. If not, your cubicle wall will do. By the way, if the idiot wandered off, tackle them and hold them down long
enough to get your first two notes back.
7) Add a ClassPath statement to your AutoExec.bat file or equivalent. It might look like this:
SET ClassPath=C:\Java\Lib\ObRun.jar;C:\Java\Lib\classes.zip;C:\Java\Lib\swingall.jar;C:\feller\GEN;E:\
feller\GEN\CLIENT;E:\feller\GEN\SERVER;E:\feller\GEN\MISC
NOTE: The ClassPath statement must be entered absolutely letter perfect including UPPER/lower case. If not, the COOL:Plex
Java generator will run to completion, give no error messages, and build ABSOLUTELY NOTHING. Nada. Zip. Youll tear your
hair out looking for you .class bytecode files. They wont exist. Get a yellow sticky, and write The road to Java Hell is in
having a misspelled ClassPath statement, and stick it to the center of you monitor. Not the side. The center. Its a little hard to see
things after that, but at least you wont forget to check you ClassPath statement when something doesnt workand, believe me,
this WILL happen.
8) Fire up good ole COOL:Plex and open up a local model you want to use for your first Java frontal lobotomy. Set your variants so
they look like this:
This is an AS/400 example. The libraries off the page are set to Base. Notice I am using the Pattern libraries. Really notice.
9) Open a Generate and Build window, so you can set the Generate and build options. Go to the Java Generation Options and make it
look like this:
The CLIENT, SERVER, and MISC parts must match your ClassPath statement exactly. (Print this out if youre having trouble seeing
around the yellow sticky in the middle of you screen.)
The C:\PLEX\OBJAVA\DEFAULT.TPL will work as is, if you installed Plex on your C: drive.
The C:\Plex\ObJava setting for the client properties file specifies the location of the ob400client.properties file that is used
for generating and compiling. Use the one in C:\Plex\ObJava for generating and compiling. Make a copy of it somewhere else
for testing. Say, C:\feller\GEN. You dont want the same ob400client.properties for both Generating & Compiling and Testing.
The C:\PROGRA~1\INTERN~1\IEXPLORE.EXE is the Javaesque way of telling COOL:Plex where your web browser is.
The rest of the screen depends on what you going to do. In the example I am going to generate an Application, as opposed to an
Applet. Applets run from Web browsers or the Java plug-in. Applications dont require a Web browser or plug-in. The first time a
Web browser encounters a Sun Java Applet, it must download over 2mb of Sun Java stuff before your Applet will run. You can
distribute the plug-ins for Applets or all the run-time objects needed for an Application. NOTE for IF or CW (Idiots Forehead or
Cubicle Wall): How many Browser users are going to wait for a 2mb download from Sun so they can run my 3k program?
10) Switch to the System Definitions section, highlight your PC and Click on Properties:
11) Set up the Java Build section of the next screen to look like this:
The Nmake directory is where your C++ compiler is, again in Javaesque format. Dont ask me why you need to do this, unless you
want to guess along with me that this is important for C++ to call Java or the other way around. If you installed MSVC++ on you
C: drive, this should work. If you are a Java-only programmer and dont have a C++ compiler, call up whoever owns COOL:Plex
this week and whine pitifully until they tell you what to do.
C:\PROGRA~1\MICROS~3\VC98\BIN
If you are using your C: drive, you will probably want C:\jdk118\bin\Javac.exe for the Compiler location.
The JDK Classes line reads, E:\Java\Lib\classes.zip;E:\Java\Lib\swingall.jar. Change the drive letter to where you put
them.
NOTES:____________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
___________________________________________________________________________________________________________
When you call a COOL:Plex Java program, one of the call parameters is the location of the Client Properties file. If COOL:Plex cant
find this, you will get some mysterious error message about a null pointer. The Client Properties file tells COOL:Plex where to find
your Panel Resources file, the server you want to connect to, where Jimmy Hoffa is buried, etc. At release level 4.0 of COOL:Plex, the
Client Properties file MUST be named ob400client.properties. Heres the picture:
You need at least one ob400client.properties for compiling and one more for testing/production. You probably want one
ob400client.properties for each different test/production environment. Leave the one in C:\Plex\ObJava alone and check the
box that says Update client properties file on the Java Generation Options panel. This makes Plex update that one to match what
youre doing, and will let you run Java programs using the Run option from a Gen and Build window.
Heres whats in the ob400client.properties: (My notations start # LK - and are on the line above what they are talking about.
I added the line numbers of the original lines so I can reference them):
01 #-----------------------------------------------------------------------------------------
02 # COOL:Plex Java runtime client options file
03 #-----------------------------------------------------------------------------------------
07 DefaultFont=sansserif
08 CourierNew=monospaced
10 Environment.Default.Driver=sun.jdbc.odbc.JdbcOdbcDriver
11 Environment.Default.DataSource=jdbc:odbc:
12 Environment.Default.User=
13 Environment.Default.Password=
14 Environment.Default.Package=CLIENT
15 Environment.Default.PackageList= MISC CLIENT SERVER SERVER
# LK The location of the Panel Resources file. For example, MyCleverJavaProgram.panelresource
# LK The file:C:\\ notation is when a web server is not used. This changes to http: for a web server
# LK The closing \\ is essential. You will get strange error messages if you leave it off.
16 Environment.Default.Resources=file:C:\\TeleMar\\
# LK The location of any GIFs you are using in you application. Same notes as previous line.
17 Environment.Default.ImagePath=file:C:\\TeleMar\\
# LK The COOL:Plex docoument does not tell us how to make this Native meaning Java look and feel.
# LK System look and feel means Windows look and feel on a Windows client.
18 Environment.Default.LookAndFeel=System
19 Environment.Default.AutoCommit=Yes
20 Environment.Default.ReadOnlyAccess=No
21 Environment.Default.TransactionIsolation=TRANSACTION_NONE
22 Environment.Default.DefaultDateMask=MM/dd/yy
23 Environment.Default.DefaultTimeMask=hh:mm:ss a
24 Environment.Default.DefaultTimeStampMask=MM/dd/yy hh:mm:ss a
25 Environment.Default.MenuFont=Regular 8 MS Sans Serif
26 Environment.Default.UseUncheckedMenuImage=Yes
27 Environment.Default.CharacterHighValue=z
28 Environment.Default.CharacterLowValue=
29 Environment.Default.CharacterEmptyValue=
30 Environment.Default.DateHighValue=9999-12-31
31 Environment.Default.DateLowValue=0001-01-01
32 Environment.Default.DateEmptyValue=0001-01-01
33 Environment.Default.TimeHighValue=23:59:59
34 Environment.Default.TimeLowValue=00:00:00
35 Environment.Default.TimeEmptyValue=00:00:00
36 Environment.Default.TimestampHighValue=9999-12-31 23:59:59
37 Environment.Default.TimestampLowValue=0001-01-01 00:00:00
38 Environment.Default.TimestampEmptyValue=0001-01-01 00:00:00
39 Environment.Default.ClearResourceCache=No
40 Environment.Default.HeightAdjustment=0
# LK The IP name of your AS/400 if you are using one. Two examples are shown. Only use one of them.
42 DefaultAS400.System=192.168.1.1
or
42 DefaultAS400.System=MyAS400.MyCompany.Com
# LK RCP may work, but I wouldnt try it. Suggest always using AS400TCPIP
43 DefaultAS400.Protocol=AS400TCPIP
# LK The IP port your AS/400 YOBLISTEN job (program YOBSYTCP) is listening on.
44 DefaultAS400.Port=40000
# LK Cp037 is US English(ENU), Cp285 is UK English (ENG). If your not sure what to use,
# LK Display your YOBLISTEN job and look for the code page it is using.
45 DefaultAS400.Encoding=Cp037
46 DefaultAS400.User=
47 DefaultAS400.Password=
48 DefaultAS400.JobDescription=MyLib/MyJobd
49 DefaultAS400.BypassAppletLogin=No
50 DefaultServer.System=*THIS
51 DefaultServer.Port=
52 DefaultServer.Environment=
53 DefaultMisc.System=*THIS
54 DefaultMisc.Port=
55 DefaultMisc.Environment=
56 MyLocation.System=
57 MyLocation.Port=
58 MyLocation.Environment=
59 FunctionLocation.YourFunction=
60 # Locale information
61 Locale.language=en
62 Locale.country=
63 Locale.variant=
The parameters are the tricky part. What the manual doesnt tell you is that COOL:Plex Java programs pass the input parameters back
to you as the first output parameters.
In native Java, calls look like OutputParms = MyCleverProgram(InputParms), where both OutputParms and InputParms are
String arrays, or String[] in Java. Notice I am so brainwashed on capitalization that I now write String instead of string even in
documentation. Wait until you get Byte and byte mixed up and spend the better part of a day wondering why you are getting all these
weird compiler error messages.
Lets say we wrote a COOL:Plex Java program that has three input parameters and two output parameters. When COOL:Plex is done
generating and building, you actually have a program with three input parameters and five output parameters. The first three output
parameters are the input parameters being sent back to you. Below is a sample hand coded Java program that calls a COOL:Plex Java
program:
The args coming in are used to fill in the three input parameters the COOL:Plex Java program wants as input. Trust me, args is the
perfect name. If youre like me, you will wind up arguing [yelling mostly] at the Java compiler ever time it spits out some error
message that makes you want to drive to Sun Microsystems HQ and strangle someone.
Java makes you declare arrays with the number of elements, but references them starting at 0. That is 0 is the first array element. The
ReturnParms in this program are picking out the two real output parameters from the combined Input and Output in the ParmsOut
String array from the COOL:Plex Java program and passing them back to a caller. If the number of parameters ever changes, you get
to renumber this code each and every time.
The parameters are the tricky part. Dj vu? You betcha. The data conversions are much easier than C+++, because Java wants
everything to a String. All the Obxxx types have String conversion methods.
Cool huh?
Notice all the casting is handled with the .toString and .fromString methods written as part of COOL:Plex for Java. Also
notice that both the input and output parameters are numbered staring with 0. This hand coded Java program does not pass back the
input parameters are the first output parameters, which is typical of native Java programs.
The program this calls is shown partially on the next page. The package MISC; line had to be included or the COOL:Plex initiated Java
compile wont find the FreqHex class. Youll get an error message saying that FreqHex is not part of the class you are compiling, like
you didnt already know that. Also, put the compiled object for the hand-coded program in the C:\feller\Gen\xxx folder. In this
case, the FreqHex.class object you got when you compiled FreqHex.java needs to be put into the C:\feller\Gen\MISC folder.
package MISC;
import java.io.*;
public class FreqHex
{
public static FileInputStream ObjectIn = null;
public static Map ByteMap;
public static int iScanResult;
public static String[] main(String[] args)
{
iScanResult = 1;
Integer ScanResult;
String[] ScanReturn = new String[2];
ByteMap = new HashMap();
try
{
ObjectIn = new FileInputStream(args[0]);
Freq2Bytes();
}
catch (FileNotFoundException FileErrorMessage)
{
System.out.println("FileNotFoundException: " + FileErrorMessage);
iScanResult = 2;
}
finally
{
if (ObjectIn != null)
{
CloseObject();
}
ScanResult = new Integer(iScanResult);
ScanReturn[0] = ScanResult.toString();
ScanReturn[1] = ByteMap.toString();
System.out.println(ScanReturn[0]);
System.out.println(ScanReturn[1]);
return ScanReturn;
}
}
}
When you see all the crazy data conversions being done above, youll come to appreciate how much work COOL:Plex Java is doing
for you. For that matter, look at the gillion or so lines that make up a panel resource file, that COOL:Plex generates for you. And we
all though DDS was bad
This section describes the process needed for deploying a Plex generated Java client application. It does not go into the steps required
for deploying the server-side as that is already well documented in the Plex documentation.
Two scenarios are described, running the application as a standalone Java Application, and as an Applet running in a browser. We
will assume that the machine that the application will run on has the Java 2 JRE or JDK installed already.
Java Application
One decision that you will need to make is whether you are going to package all of your class files into a Java Archive, or JAR file, or
whether you will deploy the class files themselves.
When deploying your class files individually, it is important to note that the class files must be deployed into the proper directory
names based on the Package they belonged to when they were built in Plex.
For example, we will assume that you are going to install your application into a directory named APPROOT on the users C: drive.
This would likely result in a directory structure that looked like this:
APPROOT
|--- PACKAGE1
|--- PACKAGE2
|--- PACKAGE3
|--- IMAGES
The PACKAGEx directory names would be based on the output from your Plex build. They would contain the class files that were
built from Plex.
The APPROOT directory should contain all of the zip and jar files that you are deploying, all of the panelresource files and the
ob400client.properties file.
It is a common convention in Java applications to store your images in a directory named IMAGES, but you can in fact name this
anything you desire. However, it does make sense for it to be a sub-directory of the applications root directory.
To run the application, a shortcut should be created with the following command-line:
Where YOURAPP is the implementation name of the initial function that should be called. Notice that the cp or CLASSPATH
option does not need to specify the location of the Java classes, this is a new feature in Java 2. In addition, it is preferable to use this
approach, rather than specifying the values in the CLASSPATH environment variable.
JAR file
All of your .panelresource files
The ob400client.properties file
When you are deploying a JAR file you must create a single JAR file that contains not only your class files, but also all of the Plex
runtime class files. In addition, when creating the JAR file you must have special information inserted into the manifest file that
indicates which class is the Main class to be called in this JAR. To do this, you create a simple text file that contains the following
line:
Main-Class: ObRun.ObPanel.ObLaunch
When you create the JAR file you use the m switch to indicate that these extensions to the manifest file must be added. For example,
the JAR command would look something like this:
Where manifest.txt is the name of the text file you created. The above command would create a JAR file containing all of the files in
the current directory and all sub-directories, and the relevant information would be added to the manifest file that was created. See the
tips on creating JAR files later in this document for more information.
Again, we will assume that you are going to install your application into a directory named APPROOT on the users C: drive. This
would likely result in a directory structure that looked like this:
APPROOT
|---IMAGES
The APPROOT directory should contain the JAR file that you are deploying, all of the panelresource files and the
ob400client.properties file. The IMAGES directory would contain all of your graphic files.
To run the application, a shortcut should be created with the following command-line:
Where YOURAPP is the implementation name of the initial function that should be called. If you were deploying additional JAR or
ZIP files, such as from the pattern libraries, you would include them in the CLASSPATH using the cp option. For example:
Create a new directory named APPJAR as an example. Then copy all of your Package directories from your build location to this
directory. The reason for this is to have a clean directory structure that contains nothing but class files.
Using a tool such as WinZip, extract the ObRun.zip file to this directory. Be sure that you use the option that maintains the folder
names when extracting. In WinZip this is a check box named Use folder named. This should result in a directory structure that
looks like this:
APPJAR
|---ObRun
|---Package1
|---Package2
If desired, you can use this same technique to extract the pattern zip files into this directory as well.
Before creating the JAR file, refer to the previous section and create the text file to be used in the manifest that is created in the JAR
file. We will assume that you will name this file manifest.txt and locate it in the APPJAR directory.
The next step is to open a DOS prompt and change to the APPJAR directory. Then execute the following command:
If you do not have the JDK directory in your path, then you will need to qualify the JAR command such as:
There are lots of ways that applications can be delivered via the browser, for example, you might require the user to download some of
the Plex runtime files, install them and put them in their CLASSPATH. However, for this document, we will assume that we want to
be able to deploy and run the application on demand. In other words, the only thing that the user would need installed is the Java 2
JRE. The HTML that is generated to load the plug-in deals with this issue for us automatically.
There are only two ways that a Java application can be delivered via a browser. Either all class files, including the runtime, need to be
packaged into a single JAR file, or all class files need to be delivered on-demand. This means that even the runtime class files must
be delivered in this manner.
The setup on the server actually follows the same basic process that was described in the previous section on Java applications. The
exceptions are, that either the JAR file must be made to include all class files that will be used, or the runtime files must all be
unzipped and stored in subdirectories of the application root. There are also other considerations relating to the web server. Most web
servers will only serve files out of a specific directory structure, so you must deploy your APPROOT within this structure to make
the files available to be served.
If you decide to deploy your application as a single JAR file, then you must modify the HTML that was generated from Plex to
include the name of the JAR file. The tag for this is ARCHIVE = filename.jar and it must be placed within the APPLET tag.
Modifications to ob400client.properties
You must modify the properties file to specify the URL containing your panelresource files and graphic files, since they will still need
to be accessed by your application. For example:
Environment.Default.Resources=http://www.cool.sterling.com/approot
Environment.Default.ImagePath=http://www.cool.sterling.com/approot/images
Mysterious Error Messages, UFOs and Other Encounters of the Third Kind [or Fourth or Fifth]
Take a picture of yourself before you start working with Java. Notice how much hair you have and what color it is. When youre down
to 2 or 3 hairs or it has all turned gray, you can declare yourself a Java expert. Until then, you may find some of the below information
useful.
Sun has released JDK 1.2.2 and has beta versions of later releases available. There is a tremendous temptation to use the latest
releases, because they have lots of new stuff in them and because we technical types are all lemmings when it comes to new releases.
WARNING LEMMINGSCLIFF AHEAD, OCEAN BELOW.
I tried Suns JDK 1.2.2 with COOL:Plex 4.0b 131, and it worked fine until I tried to connect an NT client to an AS/400 server. I then
started getting this mysterious error message, pictured below:
I checked this against the alien markings from the Roswel, NM crash site and the Area 51 archives, but no luck. The program worked
perfectly when I used a Windows 98 SE client. So whats wrong with NT? I never did figure this out. What I did figure out was what
the, @@@LKURREL @@K gibberish was. It was EBCDIC characters from the AS/400 that had not been translated to
ASCII, so that the PC could display them properly. It decoded to, CPF2204 User profile LKURREL not found. Huh?
Noticed the LKURREL user profile is in the clear in the gibberish version of the error message. What I deduced was that the ASCII to
EBCDIC translation process was not working properly. I made the assumption that, since the, CPF2204 User profile xxxxxxxxxx
not found. part was not translating properly back to the client PC, then the LKURREL part was probably not translating properly on
its way to the AS/400 security check. This probably means the problem is in the YOBSYTCP program running on the AS/400, but
may be somewhere in between.
I switched to JDK version 1.1.8, recompiled my program and re-deployed it to the NT client. The problem went away.
NOTE for IF/CW, Do not use versions of the JDK that are not supported.
Okay Lemmings, I know youre all ready to try JDK 1.2.2 anyway, so here are the details.
With JDK 1.1.8, you have to deploy the classes.zip and swingall.jar class libraries. With Suns JDK 1.2.2, the Swing
classes have been incorporated into the same class object as the rest of the base Java classes. The new name is rt.jar. Sun has
added a separate object for National Language Support (NLS) called i18n.jar. By the way, when I was having my problems
with EBCDIC to ASCII, several people told me that my problem was not having i18n.jar in my ClassPath statement. I tried
adding it, but the problem persisted.
Below is an example ClassPath statement for JDK 1.2.2, which has been modeled after the JDK 1.1.8 example shown earlier in the
"Getting COOL:Plex to Compile Some Java" section of this document:
SET ClassPath=C:\Java\Lib\ObRun.jar;C:\Java\Lib\rt.jar;C:\Java\Lib\i18n.jar;C:\feller\GEN;E:\
feller\GEN\CLIENT;E:\feller\GEN\SERVER;E:\feller\GEN\MISC
That is the only change other than needing to install the 1.2.2 version of the JDK.
If youve ever tried to have two versions of the MSVC++ compiler on one PC at the same time, you know this is about as possible as
World Peace, finding and Honest Politician, and validated the phase, Military Intelligence. Having two versions of the JDK is not
only possible, its childs play. So, go find a childyoull need one. I use my 16-year old. He hates working, but he hates losing his
Internet connection to Microsofts Gaming Zone even more.
If you have read through the SUN documentation, you may have noticed that ClassPath statements can be included on all commands
that need them, like the commands JAVA, JAVAP, JRE, etc. To run multiple JDKs on the same PC you will need to start using these.
There are two changes you have to make to your PC to run multiple JDK versions:
2) Remove the Java portion of your Path statement from your AutoExec.bat file if you have this.
When you need to run a Java command, you will now have to fully qualify it: for example:
You will also have to include a ClassPath Statement in the command. Its gotta be perfect just like that NOTE THAT HAD BETTER
STILL BE STUCK TO THE MIDDLE OF YOU SCREEN says. For example
C:\JDK122\Bin\Java cp C:\Java\Lib\ObRun.jar;C:\Java\Lib\rt.jar;C:\Java\Lib\i18n.jar;~~~
I use .bat files to run compiles and tests so I dont have to keep typing these things perfectly. If you use a .bat file, you can
transplant the SET statements as is from your AutoExec.bat files and forget about the classpath parameters on the Java commands.
Overview
This is the exposable information about the classes in ObRun.jar version 4.0, and is not complete in all cases. Only that information
which are is hidden from plain view by the owner of COOL:Plex is shown.
The purpose of this section is to show you what methods and variables you can and cant get at.
ObBldMgr
ObBuildClient
Formal parameters:
None
ObBuildConnection
Formal parameters:
None
ObBuildInfo
None
ObBuildJDBC
Formal parameters:
None
ObBuildManager
Formal parameters:
None
ObBuildQueue
Formal parameters:
None
ObBuildRequest
Formal parameters:
None
ObBuildSchema
Formal parameters:
None
ObBuildSocketStream
Formal parameters:
None
ObBuildStatus
Formal parameters:
None
ObBuildStatusInfo
Formal parameters:
None
ObCompileJava
Formal parameters:
None
ObCompileRequest
Formal parameters:
None
ObCompileSource
Formal parameters:
None
ObParseGeneratedSQL
Formal parameters:
None
ObRetrieveLstFile
Formal parameters:
None
ObRmtBuildRequest
Formal parameters:
None
ObSourceFile
Formal parameters:
None
ObSQLBuildOption
Formal parameters:
None
ObFunction
ObServerApp
The Javap command does not reveal any facts about this class.
ObVariable
The Javap command does not reveal any facts about this class.
ObRun
ObComms
ObAS400Conversation
Formal parameters:
java.lang.String m_userId;
java.lang.String m_password;
java.lang.String m_encoding;
boolean m_bypassLogin;
boolean m_forceLoginDialog;
ObAS400SocketStream
Formal parameters:
None
ObAS400SocketStream$AS400DataReading
Formal parameters:
None
ObAS400SocketStream$AS400ErrorHandling
Formal parameters:
None
ObAS400SocketStream$ObAS400CallInfo
Formal parameters:
None
ObClientConnect
Formal parameters:
None
ObClientListen
Formal parameters:
None
ObClientType
Formal parameters:
None
ObConversation
Formal parameters:
None
ObDataSocketStream
Formal parameters:
None
ObDispatchSocketStream
Formal parameters:
None
ObNotifyConnect
Formal parameters:
None
ObNotifyEvent
Formal parameters:
None
ObObjectConversation
Formal parameters:
None
ObObjectSocketStream
Formal parameters:
None
ObRemoteException
Formal parameters:
None
ObService
Formal parameters:
None
ObSocketListen
Formal parameters:
None
ObSocketService
Formal parameters:
None
ObDatabase
ObDatabaseConnection
Formal parameters:
None
ObDatabaseMgr
Formal parameters:
None
ObSocketStream
The Javap command does not reveal any facts about this class.
ObSQLDataTypes
Formal parameters:
None
ObSQLTypeConversion
Formal parameters:
None
ObValidSQLType
Formal parameters:
None
ObEnvironment
ObException
Formal parameters:
None
ObJavaApi
Formal parameters:
None
ObLog
Formal parameters:
None
ObODBCOptionValues
Formal parameters:
None
ObOptionsElement
Formal parameters:
None
ObOptionsList
Formal parameters:
None
ObRunOptions
Formal parameters:
None
ObStringResource
Formal parameters:
None
ObView
The Javap command does not reveal any facts about this class.
ObFunction
ObApplication
Formal parameters:
None
ObCall
None
ObCallInfo
Formal parameters:
None
ObCallMgr
Formal parameters:
None
ObClientApp
Formal parameters:
java.lang.String m_pathName;
ObFncParameter
Formal parameters:
None
ObFunction
Formal parameters:
None
ObFunctionHandler
ObLocalJavaCall
Formal parameters:
None
ObMessageLog
Formal parameters:
None
{
private final ObRun/ObFunction/ObMessageLog this$0;
ObRun/ObFunction/ObMessageLog. ObMenuListener(ObRun/ObFunction/ObMessageLog);
public void actionPerformed(java.awt.event.ActionEvent);
}
}
ObMessageLog$ObMenuListener
Formal parameters:
None
ObPanel
Formal parameters:
None
ObRemoteJavaCall
Formal parameters:
java.lang.String m_logicalLocation;
java.lang.String m_remoteMachine;
ObRemoteRPGCall
Formal parameters:
java.lang.String m_logicalLocation;
java.lang.String m_remoteMachine;
ObServerApp
Formal parameters:
None
ObValidElement
The Javap command does not reveal any facts about this class.
ObVariable
Formal parameters:
None
ObVariableGroup
Formal parameters:
None
ObPanel
ObCtrlData
ObBeanData
Formal parameters:
None
ObCheckboxData
Formal parameters:
None
ObColumnHeadingData
Formal parameters:
None
ObComboData
Formal parameters:
None
ObControlState
Formal parameters:
None
ObCtrlData
Formal parameters:
None
ObDialogData
Formal parameters:
None
ObEditData
Formal parameters:
None
ObEventMap
Formal parameters:
java.util.Hashtable m_eventPairs;
ObGridData
Formal parameters:
None
ObKeyStrokeMap
Formal parameters:
java.util.Hashtable m_keyPairs;
ObKeyStrokeMap$ObKeyDetails
Formal parameters:
None
ObLabelData
Formal parameters:
None
ObListData
Formal parameters:
None
ObLogicalEvents
Formal parameters:
None
ObMenubarData
Formal parameters:
None
ObMenuData
Formal parameters:
None
ObMenuitemData
Formal parameters:
None
ObMultilineEditData
Formal parameters:
None
ObPasswordData
Formal parameters:
None
ObPictureData
Formal parameters:
None
ObPushbuttonData
Formal parameters:
None
ObRadiobuttonData
Formal parameters:
None
ObSeparatorData
Formal parameters:
None
ObSpinData
Formal parameters:
None
ObStaticData
Formal parameters:
None
ObStatusbarData
Formal parameters:
None
ObToolbarbuttonData
Formal parameters:
None
ObToolbarData
Formal parameters:
None
ObTopAppData
Formal parameters:
None
ObUserAPI
Formal parameters:
None
ObValuePairList
Formal parameters:
None
public ObRun/ObPanel/ObCtrlData/ObValuePairList.
ObValuePair(ObRun/ObPanel/ObCtrlData/ObValuePairList,java.lang.Object,java.lang.Object);
public void clearReferences();
}
}
ObValuePairList$ObValuePair
Formal parameters:
None
ObWindowData
Formal parameters:
int m_lastEvt;
ObCtrlGui
ObBackgroundPanel
Formal parameters:
int m_imageWidth;
int m_imageHeight;
int m_myWidth;
int m_myHeight;
ObRun.ObPanel.ObCtrlGui.ObWindowGui m_guiObject;
ObBaseGridEditorDelegate
Formal parameters:
None
ObBasicTreeCellRenderer
Formal parameters:
None
ObBeanGui
Formal parameters:
None
ObButton
Formal parameters:
None
ObCheckboxGridEditorDelegate
Formal parameters:
None
ObCheckboxGui
Formal parameters:
None
ObCheckBoxTreeCellRenderer
Formal parameters:
None
ObClockTick
Formal parameters:
None
ObColumnHeadingGui
Formal parameters:
None
ObComboGridEditorDelegate
Formal parameters:
None
ObComboGui
Formal parameters:
None
ObCtrlGui
Formal parameters:
boolean m_componentListener;
boolean m_focusListener;
boolean m_keyListener;
boolean m_mouseListener;
boolean m_mouseMotionListener;
boolean m_windowListener;
boolean m_itemListener;
boolean m_textListener;
boolean m_listDataListener;
boolean m_modifiedEvent;
boolean m_actionListener;
boolean m_propertyChangeListener;
boolean m_vetoableChangeListener;
boolean m_itemListener;
boolean m_textListener;
boolean m_listDataListener;
boolean m_modifiedEvent;
boolean m_actionListener;
boolean m_propertyChangeListener;
boolean m_vetoableChangeListener;
protected java.lang.String m_ctrlName;
protected ObRun.ObPanel.ObCtrlGui.ObColumnHeadingGui m_columnHeading;
protected java.awt.Component m_renderer;
protected ObRun.ObPanel.ObCtrlGui.ObGridCellEditor m_editor;
protected java.lang.String m_initialValue;
protected ObRun.ObFunction.ObClientApp m_clientApp;
protected boolean m_inApplet;
protected ObRun.ObPanel.ObCtrlGui.ObTabSequence m_tab;
protected boolean m_tabStop;
protected boolean m_fixLeft;
protected boolean m_fixRight;
protected boolean m_fixTop;
protected boolean m_fixBottom;
protected int m_leftMenuID;
protected int m_rightMenuID;
public static final byte MIXED;
public static final byte UPPER;
public static final byte LOWER;
public static final byte UNINITIALIZED;
public static final byte CHAR;
public static final byte NUMERIC;
public static final byte NUMERIC_NO_DECIMALS;
public static final byte DATE;
public static final byte TIME;
public static final byte TIMESTAMP;
protected boolean m_mousePressedMapped;
protected static java.awt.SystemColor m_javaCol[];
private java.awt.Cursor m_handCursor;
static static {};
public ObRun/ObPanel/ObCtrlGui/ObCtrlGui();
public void addChild(ObRun/ObPanel/ObCtrlGui/ObCtrlGui);
public void clear();
public void clearReferences();
public void componentHidden(java.awt.event.ComponentEvent);
ObRun/ObPanel/ObCtrlGui/ObCtrlGui.
ObPopupItem(ObRun/ObPanel/ObCtrlGui/ObCtrlGui,javax.swing.JMenuItem,java.lang.Integer);
static ObRun/ObPanel/ObCtrlGui/ObCtrlGui access$0(ObRun/ObPanel/ObCtrlGui/ObCtrlGui. ObPopupItem);
static java.lang.Integer access$1(ObRun/ObPanel/ObCtrlGui/ObCtrlGui. ObPopupItem);
public javax.swing.JMenuItem getMenuItem();
public void setMenuItemProperties(ObRun.ObPanel.ObCtrlGui.ObMenuitemGui);
}
ObCtrlGui$1
Formal parameters:
None
ObCtrlGui$ObDateDocument
Formal parameters:
None
ObCtrlGui$ObLowerCaseDocument
Formal parameters:
None
ObCtrlGui$ObNumericDocument
Formal parameters:
None
ObCtrlGui$ObPopupItem
Formal parameters:
None
ObCtrlGui$ObTimeDocument
Formal parameters:
None
ObCtrlGui$ObTimeStampDocument
Formal parameters:
None
ObCtrlGui$ObUpperCaseDocument
Formal parameters:
None
ObDialogGui
Formal parameters:
boolean m_componentListener;
ObEditGridEditorDelegate
Formal parameters:
None
ObEditGui
Formal parameters:
None
ObGridCellEditor
Formal parameters:
None
ObGridCellEditor$ObMouseAdapter
Formal parameters:
None
ObGridGui
Formal parameters:
Vary by subclass
Formal parameters:
ObRun/ObPanel/ObCtrlGui/ObGridGui m_gui;
{
private final ObRun/ObPanel/ObCtrlGui/ObGridGui this$0;
ObRun/ObPanel/ObCtrlGui/ObGridGui m_gui;
public ObRun/ObPanel/ObCtrlGui/ObGridGui.
ObGridColumnListener(ObRun/ObPanel/ObCtrlGui/ObGridGui,ObRun/ObPanel/ObCtrlGui/ObGridGui);
public void mouseClicked(java.awt.event.MouseEvent);
public void mouseDragged(java.awt.event.MouseEvent);
public void mouseMoved(java.awt.event.MouseEvent);
}
Formal parameters:
javax.swing.JScrollBar m_scroll;
ObRun/ObPanel/ObCtrlGui/ObGridGui m_gui;
Formal parameters:
ObRun/ObPanel/ObCtrlGui/ObGridGui m_gui;
Formal parameters:
javax.swing.JScrollBar m_scroll;
ObRun/ObPanel/ObCtrlGui/ObGridGui m_gui;
ObGridGui$ObGridColumnListener
Formal parameters:
ObRun.ObPanel.ObCtrlGui.ObGridGui m_gui;
ObGridGui$ObTableListener
Formal parameters:
javax.swing.JScrollBar m_scroll;
ObRun.ObPanel.ObCtrlGui.ObGridGui m_gui;
ObGridModel
Formal parameters:
ObRun.ObPanel.ObCtrlGui.ObGridGui m_gui;
java.util.Vector m_headings;
java.util.Vector m_visibleRows;
java.util.Vector m_invisibleRows;
ObLabelGui
Formal parameters:
None
ObLabelGui$ObLabel
Formal parameters:
None
ObListGui
Formal parameters:
None
ObMenubarGui
Formal parameters:
java.awt.Font m_menuFont;
ObMenuGui
Formal parameters:
None
ObMenuitemGui
Formal parameters:
None
ObMultilineEditGui
Formal parameters:
java.awt.Font m_menuFont;
ObMultilineEditGui$1
Formal parameters:
None
ObMultilineEditGui$2
Formal parameters:
None
ObMultilineEditGui$3
Formal parameters:
None
ObMultilineEditGui$4
Formal parameters:
None
ObMultilineEditGui$5
Formal parameters:
None
ObMultilineEditGui$6
Formal parameters:
None
ObMultilineEditGui$7
Formal parameters:
None
ObMultilineEditGui$UndoHandler
Formal parameters:
None
ObPasswordGridEditorDelegate
Formal parameters:
None
ObPasswordGui
Formal parameters:
None
ObPictureGridEditorDelegate
Formal parameters:
None
ObPictureGui
Formal parameters:
None
ObPushbuttonGui
Formal parameters:
None
ObRadiobuttonGui
Formal parameters:
None
ObSeparatorGui
Formal parameters:
None
ObSpinGui
Formal parameters:
None
ObStaticGui
Formal parameters:
None
ObStaticGui$ObStatic
Formal parameters:
None
ObStatusbarGui
Formal parameters:
None
ObTabSequence
Formal parameters:
None
ObToolbarbuttonGui
Formal parameters:
None
ObToolbarGui
Formal parameters:
None
ObTopAppGui
Formal parameters:
None
ObWindowGui
Formal parameters:
None
ObLaunch
Formal parameters:
java.lang.String m_function;
java.lang.String m_properties;
ObRun.ObFunction.ObClientApp client;
ObLaunch$ObApplet
Formal parameters:
java.lang.String m_function;
java.lang.String m_properties;
ObRun.ObFunction.ObClientApp client;
ObPanelUtils
ObPanelResource
Formal parameters:
None
ObXYLayoutManager
Formal parameters:
None
XYConstraint
None
ObVersionInfo
The Javap command does not reveal any facts about this class.
ObRTTypes
ObByteFld
None
ObCharFld
Formal parameters:
None
ObDateFld
Formal parameters:
None
ObDblFld
Formal parameters:
None
ObField
Formal parameters:
None
ObFieldSQLTypes
Formal parameters:
None
ObFixedDecFld
Formal parameters:
None
ObIntFld
Formal parameters:
None
ObLongDblFld
Formal parameters:
None
ObLongFld
Formal parameters:
None
ObPanelUtils
ObXYLayoutManager
The Javap command does not reveal any facts about this class.
XYConstraint
ObSglFld
Formal parameters:
None
ObSpecialVal
Formal parameters:
None
ObStructuredFld
Formal parameters:
None
ObTimeFld
Formal parameters:
None
ObTimeStampFld
Formal parameters:
None
Overview
Dear insomniacs,
This is the exposable source of the classes in ObRun.jar version 4.0, and is not complete in all cases. Only those sources which are not
hidden from plain view by the owner of COOL:Plex are shown.
Use this section wisely. I plan on driving the Level 1, 2, and 3 support groups batty by e-mailing them all the code defects I can find.
ObBldMgr
ObBuildClient
package ObBldMgr;
import ObRun.ObComms.*;
import java.io.*;
import ObRun.ObEnvironment.ObLog;
import java.net.InetAddress;
import java.net.Socket;
import java.util.Date;
import java.util.Vector;
static
{
m_clientId = 0;
}
m_compiles = 0;
m_tblBuilds = 0;
m_buildInfo = null;
m_toomanyClients = flag;
m_maxClients = integer;
m_lstFile = null;
start();
}
}
}
m_sourceFile = null;
return true;
}
{
System.out.println(e);
}
return true;
}
if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_TRANSFER_START))
startTransferSource();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_TRANSFER))
transferSource();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_TRANSFER_END))
endTransferSource();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_JAVA_START))
startCompileRequest();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_JAVA))
addCompile();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_JAVA_END))
createCompileRequest();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_JDBC))
addJDBC();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_STATUS_START))
startJobStatus();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_STATUS))
jobStatus();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_STATUS_END))
endJobStatus();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_STATUS_DELETE))
deleteJobStatus();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_STATUS_DELETE_ALL))
deleteSuccessfulJobs();
else if (m_buildInfo.m_operation.equals(ObBuildInfo.OBBUILD_RETRIEVE_FILE))
retrieveFile();
else
raiseError(m_bldManager.getResourceString("InvalidOperation"));
pop e2
m_bldManager.log(e2.getMessage(), 0);
pop local2
endClient();
endfinalize local2
}
{
m_compileQueue.removeAllElements();
startBuildRequest();
try
{
char ach[] = new char[5];
m_socketStream.getInputStream().read(ach, 0, 5);
m_socketStream.getOutputStream().write(ach, 0, 5);
m_socketStream.getOutputStream().flush();
}
catch (Exception e)
{
System.out.println(e);
}
}
if (m_clientVersion.compareTo(m_bldManager.getServerVersion()) == 0)
return true;
else
return false;
}
}
ObBuildConnection
package ObBldMgr;
import ObRun.ObComms.ObSocketService;
import ObRun.ObDatabase.ObSQLDataTypes;
import ObRun.ObDatabase.ObSQLTypeConversion;
import ObRun.ObEnvironment.ObLog;
import java.io.PrintStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Hashtable;
static
{
}
m_MoneyDatatype = obSQLDataTypes.isMoneyDatatype();
}
{
m_buildManager.log(e.getMessage(), 0);
}
return false;
}
ObBuildInfo
import java.io.*;
import ObRun.ObComms.ObRemoteException;
import ObRun.ObFunction.ObVersionInfo;
static
{
}
public ObBuildInfo()
{
m_operation = new String(OBBUILD_OPEN);
init();
}
{
m_fileName = null;
m_designName = null;
m_dataLength = null;
m_sourceDirectory = null;
m_debug = null;
m_groupModel = null;
m_version = null;
m_level = null;
m_variant = null;
m_language = null;
m_jobId = null;
m_sqlOptions = new String("");
m_userId = new String("");
m_builddbDriver = new String("");
m_builddbName = new String("");
m_builddbUserid = new String("");
m_builddbPassword = new String("");
m_verInfo = new ObVersionInfo();
m_rmtExcept = null;
}
ObBuildJDBC
package ObBldMgr;
import java.util.*;
import ObRun.ObComms.ObSocketService;
import ObRun.ObEnvironment.ObLog;
import java.io.PrintStream;
import java.sql.Connection;
import java.sql.Statement;
try
{
Object object = new ObParseGeneratedSQL(m_buildSchema, m_sourceFile, m_buildInfo.m_sqlOptions);
object.openFile();
object.readFile();
ObBuildQueue obBuildQueue = object.parseStatement();
boolean flag = true;
if (obBuildQueue == null)
flag = false;
else
{
while (!obBuildQueue.empty())
{
String string = (String)obBuildQueue.pop();
if (!submit(string))
flag = false;
}
}
closeLstFile();
if (flag)
deleteLstFile();
return true;
}
catch ()
{
System.out.println(object);
}
return false;
}
obParseGeneratedSQL.readFile();
Vector vector = obParseGeneratedSQL.createDropStatement();
Connection connection = null;
try
{
if (vector.size() == 0)
{
m_buildStatus.createStatus(ObBuildStatusInfo.buildStartFailed(m_buildInfo));
String string1 = m_buildManager.getResourceString("NoGennedSource");
System.out.println(new
StringBuffer(String.valueOf(m_buildManager.getResourceString("RetrievedString"))).append(string1).toString(
));
updateLstFile(string1);
return true;
}
m_buildStatus.createStatus(ObBuildStatusInfo.compileStarted(m_buildInfo));
connection = m_buildSchema.getConnection();
if (connection == null)
{
updateStatus(2);
closeLstFile();
return false;
}
}
catch (Exception e1)
{
m_buildManager.log(e1.getMessage(), 2);
}
try
{
for (Enumeration enumeration = vector.elements(); enumeration.hasMoreElements(); )
{
String string2 = (String)enumeration.nextElement();
Statement statement = connection.createStatement();
statement.executeUpdate(string2);
}
}
catch (Exception e2)
{
m_buildManager.log(e2.getMessage(), 2);
}
return true;
}
ObBuildManager
package ObBldMgr;
import java.io.*;
import java.util.*;
import ObRun.ObComms.ObSocketListen;
import ObRun.ObComms.ObSocketService;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObEnvironment.ObRunOptions;
import java.net.ServerSocket;
import java.net.Socket;
static
{
}
}
try
{
i = Integer.parseInt(astring[flag]);
}
catch (NumberFormatException e)
{
System.out.println("Not a valid port number");
System.out.println("Enter an integer value greater than 1024");
System.out.println(e);
System.exit(1);
}
}
if (i == 0)
i = m_defaultPort.intValue();
object = new ObBuildManager(i, string, m_defaultOptions);
object.startService();
object.initJobNumber();
while (object.m_keepWaiting)
{
Thread.currentThread();
Thread.sleep(100);
}
drop
if (object.m_serverSocket == null)
{
System.out.println(object.getResourceString("ServiceNotRunning"));
return;
}
System.out.println(object.getResourceString("BuildManagerStarted"));
Thread.currentThread().suspend();
}
bufferedWriter.write(string2, 0, string2.length());
bufferedWriter.newLine();
bufferedWriter.close();
}
catch (Exception e)
{
System.out.println(new
StringBuffer(String.valueOf(getResourceString("NoJobNumberWrite"))).append(string1).toString());
}
}
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.SourceDirectory").toString());
if (string != null)
m_sourceDirectory = new String(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.Compiler").toString());
if (string != null)
m_compiler = new String(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.ClassPath").toString());
if (string != null)
m_classPath = new String(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.MaxCompiles").toString());
if (string != null)
m_maxConcurrentCompiles = new Integer(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.MaxBuilds").toString());
if (string != null)
m_maxConcurrentBuilds = new Integer(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.Driver").toString());
if (string != null)
m_databaseDriver = new String(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.DataSource").toString());
if (string != null)
m_statusDataSource = new String(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.User").toString());
if (string != null)
m_dataSourceUser = new String(string);
string = m_runOptions.getProperty(new
StringBuffer(String.valueOf(getPort().toString())).append(".Build.Password").toString());
if (string != null)
m_dataSourcePassword = new String(string);
}
return;
try
{
ObBuildRequest obBuildRequest = (ObBuildRequest)m_buildQueue.pop();
obBuildRequest.resume();
m_runningBuilds.addElement(obBuildRequest);
}
catch (EmptyStackException e1)
{
}
catch (Exception e2)
{
log(e2.getMessage(), 0);
}
}
ObBuildQueue
package ObBldMgr;
import java.util.*;
ObBuildRequest
package ObBldMgr;
import java.util.*;
super.clearReferences();
}
ObBuildSchema
import java.io.PrintStream;
import java.sql.Connection;
import java.util.Hashtable;
public ObBuildSchema(String string1, String string2, String string3, String string4, ObBuildStatus
obBuildStatus, ObBuildClient obBuildClient)
{
super(string2, string3, string4);
m_databaseDriver = string1;
m_dataSource = string2;
m_dataSourceUser = string3;
m_dataSourcePassword = string4;
m_buildStatus = obBuildStatus;
m_buildClient = obBuildClient;
m_buildManager = m_buildClient.getBuildManager();
if (m_databaseDriver.length() == 0)
m_databaseDriver = new String(m_buildClient.getBuildManager().getDatabaseDriver());
if (string2.length() == 0)
{
m_dataSource = new String(m_buildStatus.m_dataSource);
m_dataSourceUser = new String(m_buildStatus.m_dataSourceUser);
m_dataSourcePassword = new String(m_buildStatus.m_dataSourcePassword);
}
m_typeConverter = new Hashtable(20);
m_databaseConnection = null;
}
if (m_databaseConnection == null)
{
try
{
if (!connect())
return null;
}
catch (Exception e)
{
System.out.println(e.getMessage());
return null;
}
}
return m_databaseConnection;
}
ObBuildSocketStream
ObBuildStatus
package ObBldMgr;
import java.sql.Date;
import java.sql.Time;
static
{
m_jobNumber = 0;
}
public ObBuildStatusInfo()
{
init();
}
ObBuildStatusInfo
package ObBldMgr;
import java.sql.Date;
import java.sql.Time;
static
{
m_jobNumber = 0;
}
public ObBuildStatusInfo()
{
init();
}
ObCompileJava
package ObBldMgr;
import ObRun.ObComms.ObSocketService;
import ObRun.ObEnvironment.ObLog;
import java.io.BufferedReader;
import java.io.InputStreamReader;
int i = 0;
while (true)
{
flag = false;
Thread.sleep(1000);
try
{
String string2;
i = m_compileProcess.exitValue();
while ((string2 = object.readLine()) != null)
updateLstFile(local4.trim());
object.close();
closeLstFile();
updateStatus(i);
if (i == 0)
deleteLstFile();
return true;
}
catch (IllegalThreadStateException e)
{
flag = true;
}
}
}
catch ()
{
m_buildManager.log(object.getMessage(), 0);
return false;
}
}
}
ObCompileRequest
package ObBldMgr;
import java.util.*;
catch (EmptyStackException e)
{
}
while (m_compileQueue.size() > 0)
{
ObCompileJava obCompileJava1 = (ObCompileJava)m_compileQueue.pop();
obCompileJava1.compile(m_buildStatus, m_buildInfo);
}
drop
return true;
}
ObCompileSource
package ObBldMgr;
import java.io.*;
catch ()
{
System.out.println(e);
}
return false;
}
m_buildStatus.updateStatus(ObBuildStatusInfo.buildStartFailed(m_buildInfo));
else
m_buildStatus.updateStatus(ObBuildStatusInfo.buildFailed(m_buildInfo));
}
catch (Exception e)
{
System.out.println(e);
}
}
}
ObParseGeneratedSQL
package ObBldMgr;
import java.io.*;
import java.sql.*;
import java.util.*;
static
{
}
return false;
if (m_buildOptions.empty() || newOption(string))
{
addOption(string, true);
return false;
}
try
{
if (endOption(string))
{
removeOption();
ObSQLBuildOption obSQLBuildOption1 = (ObSQLBuildOption)m_buildOptions.peek();
addOption(obSQLBuildOption1.getOption(), false);
return false;
}
}
catch (EmptyStackException e)
{
return true;
}
string = checkForCondSyntax(string);
if (!m_ignoreStatements)
{
ObSQLBuildOption obSQLBuildOption2 = (ObSQLBuildOption)m_subStatements.peekTop();
obSQLBuildOption2.add(string);
}
return false;
}
m_ignoreStatements = false;
}
else if (string2.startsWith(COND_ELSE))
{
i = COND_ELSE.length();
j = string1.indexOf(COND_ELSE);
if (getDatabaseName().compareTo(SQL_SERVER_NAME) == 0)
m_ignoreStatements = false;
else
m_ignoreStatements = true;
}
else if (string2.startsWith(COND_ENDIF))
{
i = COND_ENDIF.length();
j = string1.indexOf(COND_ENDIF);
m_ignoreStatements = false;
}
return new String(string1.substring(j + i));
}
}
return m_databaseName;
}
}
}
ObRetrieveLstFile
package ObBldMgr;
import java.io.*;
static
{
m_srcBufSize = 2000;
}
m_inFileStream.close();
return true;
}
catch ()
{
System.out.println(e);
}
return false;
}
}
catch (Exception e2)
{
System.out.println(e2);
}
if (m_more.compareTo("0") == 0)
return true;
else
return false;
}
dup 1 over 0
expression this
dup 1 over 2
push m_sourceFileBytes
invoke valueOf
invoke StringBuffer.<init>
expression new String(local)
invoke append
invoke toString
pop m_sourceFileBytes
i++;
if (m_inFileStream.read(local, 0, 1) != -1 && i < m_srcBufSize) goto 9 else 65;
m_byteTransferCount = new Integer(i).toString();
if (i == m_srcBufSize)
m_more = "1";
else
m_more = "0";
return true;
}
m_sourceDir = null;
m_sourceFileBytes = null;
m_byteTransferCount = null;
m_more = new String(ach1).trim();
m_fileName = new String(ach2).trim();
m_sourceDir = new String(ach3).trim();
m_sourceFileBytes = new String(ach4).trim();
m_byteTransferCount = new String(ach5).trim();
}
}
ObRmtBuildRequest
package ObBldMgr;
try
{
obRmtBuildRequest.join();
}
catch (Exception e)
{
}
}
ObSourceFile
package ObBldMgr;
import java.io.*;
{
m_outputStream = null;
}
}
catch ()
{
System.out.println(object);
}
return false;
}
}
ObSQLBuildOption
package ObBldMgr;
static
{
}
expression this
dup 1 over 2
push m_statement
invoke valueOf
invoke StringBuffer.<init>
expression string
invoke append
invoke toString
pop m_statement
expression new StringBuffer
dup 1 over 0
expression this
dup 1 over 2
push m_statement
invoke valueOf
invoke StringBuffer.<init>
expression "\n"
invoke append
invoke toString
pop m_statement
}
{
return new String(m_statement);
}
ObFunction
ObServerApp
ObVariable
package ObRun.ObFunction;
import java.io.*;
import ObRun.ObRTTypes.ObField;
import ObRun.ObRTTypes.ObStructuredFld;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
public ObVariable()
{
m_parent = null;
}
}
}
return aobField;
}
ObRun
ObComms
ObAS400Conversation
package ObRun.ObComms;
import ObRun.ObFunction.*;
import java.awt.*;
import javax.swing.*;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObRTTypes.ObCharFld;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.Random;
import javax.swing.text.JTextComponent;
static
{
m_encryptBufferSize = 32;
}
super(string1, string2);
m_socket = null;
m_loginDialog = null;
m_bypassLogin = false;
m_forceLoginDialog = false;
String string3 = new String(string1);
string3 = new StringBuffer(String.valueOf(string3)).append(".User").toString();
m_userId = ObApplication.getRunOptionValue(string3);
string3 = new String(string1);
string3 = new StringBuffer(String.valueOf(string3)).append(".Password").toString();
m_password = ObApplication.getRunOptionValue(string3);
string3 = new String(string1);
string3 = new StringBuffer(String.valueOf(string3)).append(".Encoding").toString();
m_encoding = ObApplication.getRunOptionValue(string3);
string3 = new String(string1);
string3 = new StringBuffer(String.valueOf(string3)).append(".BypassAppletLogin").toString();
String string4 = ObApplication.getRunOptionValue(string3);
if (string4 != null && string4.toUpperCase().compareTo("YES") == 0)
m_bypassLogin = true;
m_callInfo = ObCallInfo.createOpenRequest("");
}
}
if (!m_allocated)
{
ObApplication.log(0, ObApplication.getResString("NotStartRemote"));
return false;
}
if (!openRequest())
return false;
if (m_callInfo.m_rmtExcept == null)
return m_allocated;
ObApplication.logException(m_callInfo.m_rmtExcept);
return false;
}
an[1] = k1;
byte b = 2;
if (!flag)
{
an[2] = 7;
an[3] = i2;
i2 += 7;
b = 4;
}
i2 = obFncParameter2.m_in.addToHeader(an, b, i2, flag);
i2 = obFncParameter2.m_out.addToHeader(an, b + obFncParameter2.m_in.countVariables(flag) * 2,
i2, flag);
m_socket.write(m_callInfo, (long)(i1 + j1), (long)(i1 + j1 +
obFncParameter2.m_out.getLength(flag)));
byte ab2[] = new byte[i1 + j1];
int j2 = 0;
for (int k2 = 0; k2 < an.length; k2++)
{
ab2[j2++] = (byte)(an[k2] >>> 24 & 255);
ab2[j2++] = (byte)(an[k2] >>> 16 & 255);
ab2[j2++] = (byte)(an[k2] >>> 8 & 255);
ab2[j2++] = (byte)(an[k2] & 255);
}
obFncParameter2.writeRPGBytes(ab2, i1, m_encoding, flag);
m_socket.write(ab2, (long)(i1 + j1), (long)(i1 + j1 + obFncParameter2.m_out.getLength(flag)));
}
catch (Exception e1)
{
ObApplication.logException(e1);
}
try
{
j1 = obFncParameter2.m_in.getLength(flag) + obFncParameter2.m_out.getLength(flag) + 7;
if (flag)
j1 -= 7;
byte ab1[] = m_socket.read(i1 + j1);
if (ab1.length == 0)
{
deAllocate();
return false;
}
int i1 = 0;
Random random = new Random();
byte ab4[] = new byte[1];
for (int j1 = 0; j1 < m_encryptBufferSize; j1++)
{
random.nextBytes(ab4);
byte b1 = ab4[0];
if (b1 < 0)
b1 = (byte)(b1 * -1);
ab2[j1] = b1;
}
for (int k1 = 0; k1 < m_encryptBufferSize; k1++)
{
random.nextBytes(ab4);
byte b2 = ab4[0];
if (b2 < 0)
b2 = (byte)(b2 * -1);
ab3[k1] = b2;
}
int i2 = 1;
for (int j2 = 0; j2 < string.length(); j2++)
{
for (boolean flag = true; flag; flag = isPositionUsed(i1, i2, ab3))
i1 = getRandomValue(random);
ab2[i1] = ab1[j2];
ab3[i2] = (byte)i1;
i2++;
}
ab3[0] = (byte)(i2 - 1);
byte ab5[] = new byte[m_encryptBufferSize * 4];
int k2 = 0;
for (int i3 = 0; i3 < ab2.length; i3++)
{
byte ab6[] = Integer.toHexString(ab2[i3] & 255).getBytes();
if (ab6.length == 1)
{
ab5[k2] = 48;
ab5[k2 + 1] = ab6[0];
}
else
{
ab5[k2] = ab6[0];
ab5[k2 + 1] = ab6[1];
}
k2 += 2;
}
for (int j3 = 0; j3 < ab3.length; j3++)
{
byte ab7[] = Integer.toHexString(ab3[j3] & 255).getBytes();
if (ab7.length == 1)
{
ab5[k2] = 48;
ab5[k2 + 1] = ab7[0];
}
else
{
ab5[k2] = ab7[0];
ab5[k2 + 1] = ab7[1];
}
k2 += 2;
}
return new String(ab5);
}
if (string1.compareTo(string2) != 0)
return 2;
string1 = encryptPassword(string1.toUpperCase());
m_socket.setNewPassword(string1);
return 0;
}
if (jCheckBox1.isSelected())
setRunOption(new String("System"), m_system);
if (jCheckBox2.isSelected())
setRunOption(new String("User"), m_userId);
if (jCheckBox3.isSelected())
setRunOption(new String("Password"), m_password);
if (jCheckBox1.isSelected() || jCheckBox2.isSelected() || jCheckBox3.isSelected())
ObApplication.saveLoginInfo(m_location, jCheckBox1.isSelected(), jCheckBox2.isSelected(),
jCheckBox3.isSelected());
return true;
}
ObAS400SocketStream
package ObRun.ObComms;
import java.io.*;
import java.net.*;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObFunction.ObApplication;
import ObRun.ObFunction.ObCallInfo;
static
{
EBCDIC_TOP_D = 208;
EBCDIC_TOP_F = 240;
EBCDIC_BOT_0 = 0;
EBCDIC_BOT_1 = 1;
EBCDIC_BOT_2 = 2;
EBCDIC_BOT_3 = 3;
EBCDIC_BOT_4 = 4;
EBCDIC_BOT_5 = 5;
EBCDIC_BOT_6 = 6;
EBCDIC_BOT_7 = 7;
EBCDIC_BOT_8 = 8;
EBCDIC_BOT_9 = 9;
}
public ObAS400SocketStream()
{
m_newPassword = null;
m_errorSocket = null;
m_dataSocket = null;
m_as400Call = null;
m_errSocket = null;
m_dataReadThread = null;
m_byteArray = null;
m_encoding = null;
m_outputStream = null;
m_inputStream = null;
m_errorStream = null;
}
public ObAS400SocketStream(String string1, Integer integer, String string2, String string3, String
string4, String string5)
{
super(string1, integer);
m_newPassword = null;
m_errorSocket = null;
m_dataSocket = null;
m_as400Call = null;
m_errSocket = null;
m_dataReadThread = null;
m_byteArray = null;
m_encoding = null;
m_outputStream = null;
m_inputStream = null;
m_errorStream = null;
m_encoding = string2;
m_user = createFixLengthString(string3.toUpperCase(), 10);
m_password = createFixLengthString(string4, 128);
m_location = string5;
String string6 = new String(m_location);
string6 = new StringBuffer(String.valueOf(string6)).append(".JobDescription").toString();
String string7 = new String(ObApplication.getRunOptionValue(string6));
if (string7.indexOf(47) < 0)
{
m_jobDescription = createFixLengthString(string7, 10).toUpperCase();
m_jobDescriptionLibrary = new String(" ");
}
else
{
m_jobDescriptionLibrary = createFixLengthString(string7.substring(0, string7.indexOf(47)),
10).toUpperCase();
m_jobDescription = createFixLengthString(string7.substring(string7.indexOf(47) + 1),
10).toUpperCase();
}
}
return obAS400SocketStream.m_user;
}
if (createStreams() != 1)
return false;
m_connected = true;
return true;
}
expression k
dup 2 over 0
push []
expression EBCDIC_BOT_3
|
convert W to C
pop []
k--;
continue;
expression ach
expression k
dup 2 over 0
push []
expression EBCDIC_BOT_4
|
convert W to C
pop []
k--;
continue;
expression ach
expression k
dup 2 over 0
push []
expression EBCDIC_BOT_5
|
convert W to C
pop []
k--;
continue;
expression ach
expression k
dup 2 over 0
push []
expression EBCDIC_BOT_6
|
convert W to C
pop []
k--;
continue;
expression ach
expression k
dup 2 over 0
push []
expression EBCDIC_BOT_7
|
convert W to C
pop []
k--;
continue;
expression ach
expression k
dup 2 over 0
push []
expression EBCDIC_BOT_8
|
convert W to C
pop []
k--;
continue;
expression ach
expression k
dup 2 over 0
push []
expression EBCDIC_BOT_9
|
convert W to C
pop []
k--;
j2--;
if (j2 < 0 || k < 0) goto 414 else 176;
return ach;
}
if (flag == 1)
{
ach2[k] = '0';
k++;
}
ach2[k] = '.';
k++;
flag = false;
}
int j2 = ach1[i2];
j2 &= 15;
switch (j2)
{
case 0:
if (flag == 0)
{
ach2[k] = '0';
k++;
}
break;
case 1:
ach2[k] = '1';
k++;
flag = false;
break;
case 2:
ach2[k] = '2';
k++;
flag = false;
break;
case 3:
ach2[k] = '3';
k++;
flag = false;
break;
case 4:
ach2[k] = '4';
k++;
flag = false;
break;
case 5:
ach2[k] = '5';
k++;
flag = false;
break;
case 6:
ach2[k] = '6';
k++;
flag = false;
break;
case 7:
ach2[k] = '7';
k++;
flag = false;
break;
case 8:
ach2[k] = '8';
k++;
flag = false;
break;
case 9:
ach2[k] = '9';
k++;
flag = false;
break;
}
}
}
return new String(ach2);
}
char ach2[];
char ch1;
int j2;
int k2;
int i3;
char ch3;
int k1 = i1 / 2 + 1;
ach2 = new char[k1];
for (int i2 = 0; i2 < ach2.length; i2++)
ach2[i2] = '\0';
ch1 = ach1[i1 - 1];
ch1 = (char)(ch1 >>> 4);
ch1 = (char)(ch1 & 15);
j2 = k1 - 1;
expression ach2
expression j2
dup 2 over 0
push []
expression ch1
|
convert W to C
pop []
k2 = 1;
i3 = i1 - 1;
char ch2 = ach1[i3];
if (k2 != 0)
ch2 = (char)(ch2 << 4);
else
ch3 = (char)(ch2 & 15);
expression ach2
expression j2
dup 2 over 0
push []
expression ch3
|
convert W to C
pop []
if (k2 != 0)
j2--;
k2 ^= 1;
i3--;
try
{
return new String(ab, 0, ab.length, string);
}
catch (Exception e)
{
return new String(ab, 0, ab.length);
}
}
m_errString = null;
return m_byteArray = new byte[0];
}
}
catch (Exception e)
{
ObApplication.logException(e);
}
return m_byteArray;
}
m_outputStream.flush();
byte ab2[] = new byte[1024];
int k = m_inputStream.read(ab2);
if (k != 1 || ab2[0] != 0)
{
m_errString = decode(ab2, m_encoding).trim();
return;
}
String string3 = new String(m_socket.getLocalAddress().getHostAddress());
m_outputStream.write(encode(createFixLengthString(string3, 50), m_encoding), 0, 50);
m_errorSocket = new ServerSocket(0);
m_dataSocket = new ServerSocket(0);
m_errorPort = new String(String.valueOf(m_errorSocket.getLocalPort()));
m_dataPort = new String(String.valueOf(m_dataSocket.getLocalPort()));
m_outputStream.write(encode(createFixLengthString(m_errorPort, 10), m_encoding), 0, 10);
m_outputStream.flush();
m_outputStream.write(encode(createFixLengthString(m_dataPort, 10), m_encoding), 0, 10);
m_outputStream.flush();
m_socket.close();
m_socket = null;
m_outputStream = null;
m_errSocket = m_errorSocket.accept();
m_socket = m_dataSocket.accept();
m_outputStream = new DataOutputStream(m_socket.getOutputStream());
m_inputStream = new DataInputStream(m_socket.getInputStream());
m_errorStream = new DataInputStream(m_errSocket.getInputStream());
ObAS400SocketStream$AS400ErrorHandling obAS400SocketStream$AS400ErrorHandling = new
ObAS400SocketStream$AS400ErrorHandling(this);
obAS400SocketStream$AS400ErrorHandling.start();
}
else
{
if (string1.equals(ObCallInfo.OBCALL_CLOSE))
return;
if (string1.equals(ObCallInfo.OBCALL_FUNCTION))
{
m_as400Call = new ObAS400SocketStream$ObAS400CallInfo(this);
if (m_outputStream == null)
m_outputStream = new DataOutputStream(m_socket.getOutputStream());
if (m_inputStream == null)
m_inputStream = new DataInputStream(m_socket.getInputStream());
m_as400Call.m_program = ((ObCallInfo)object).m_functionName.substring(0,
((ObCallInfo)object).m_functionName.indexOf("_ObFnc")).toUpperCase();
m_as400Call.m_paramLen = (int)j;
m_as400Call.m_inputLen = (int)i;
if (m_outputStream != null)
{
m_outputStream.write(m_as400Call.getAllBytes(), 0,
m_as400Call.getAllBytes().length);
m_outputStream.flush();
}
}
else if (m_outputStream != null)
{
m_outputStream.write(([B)object, 0, (int)i);
m_outputStream.flush();
}
}
}
catch (StreamCorruptedException e1)
{
ObApplication.log(ObApplication.getResString("StreamCorruption"));
ObApplication.logException(e1);
}
catch (IOException e2)
{
ObApplication.log(ObApplication.getResString("IOExceptionRead"));
ObApplication.logException(e2);
}
catch (Exception e3)
{
ObApplication.logException(e3);
}
}
}
ObAS400SocketStream$AS400DataReading
package ObRun.ObComms;
import java.io.DataInputStream;
ObAS400SocketStream$AS400DataReading(ObAS400SocketStream obAS400SocketStream)
{
}
ObAS400SocketStream$AS400ErrorHandling
package ObRun.ObComms;
import java.io.DataInputStream;
import java.io.DataOutputStream;
ObAS400SocketStream$AS400ErrorHandling(ObAS400SocketStream obAS400SocketStream)
{
}
ObAS400SocketStream$ObAS400CallInfo
package ObRun.ObComms;
import ObRun.ObFunction.ObVersionInfo;
}
ab2 = ObAS400SocketStream.encode(m_jobd, this$0.m_encoding);
int k2 = 0;
int i3 = 38;
while (k2 < ab2.length)
{
ab1[i3] = ab2[k2];
k2++;
i3++;
}
ab2 = ObAS400SocketStream.encode(m_jobdLib, this$0.m_encoding);
int j3 = 0;
int k3 = 48;
while (j3 < ab2.length)
{
ab1[k3] = ab2[j3];
j3++;
k3++;
}
ab1[58] = (byte)(m_versionInfo >>> 8 & 255);
ab1[59] = (byte)(m_versionInfo & 255);
ab1[60] = (byte)(m_version >>> 8 & 255);
ab1[61] = (byte)(m_version & 255);
ab1[62] = (byte)(m_release >>> 8 & 255);
ab1[63] = (byte)(m_release & 255);
ab1[64] = (byte)(m_level >>> 8 & 255);
ab1[65] = (byte)(m_level & 255);
ab1[66] = (byte)(m_fixLevel >>> 8 & 255);
ab1[67] = (byte)(m_fixLevel & 255);
ab1[68] = (byte)(m_debugBuild >>> 8 & 255);
ab1[69] = (byte)(m_debugBuild & 255);
ab2 = ObAS400SocketStream.encode(m_padding, this$0.m_encoding);
int i4 = 0;
int j4 = 70;
while (i4 < ab2.length)
{
ab1[j4] = ab2[i4];
i4++;
j4++;
}
ab1[72] = (byte)(m_inputLen >>> 24 & 255);
ObClientConnect
package ObRun.ObComms;
import ObRun.ObFunction.*;
import ObRun.ObEnvironment.ObLog;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.util.Date;
static
{
m_clientId = 0;
}
{
ObApplication.logException(e2);
}
obFncParameter.clearReferences();
}
}
m_clientName = m_callInfo.m_userId;
if (!m_callInfo.m_operation.equals(ObCallInfo.OBCALL_OPEN)) goto 239 else 141;
if (m_toomanyClients) goto 155 else 148;
openClient();
m_callInfo.m_rmtExcept = null;
try
{
m_app = new ObServerApp(m_service, m_clientName);
String string = new
StringBuffer(String.valueOf(ObApplication.getResString("ToomanyClients"))).append(m_maxClients).toString();
raiseError(string);
m_socketStream.write(m_callInfo);
}
catch (Exception e1)
{
ObApplication.logException(e1);
}
if (!m_callInfo.m_operation.equals(ObCallInfo.OBCALL_CLOSE)) goto 262 else 255;
closeClient();
if (m_callInfo.m_operation.equals(ObCallInfo.OBCALL_FUNCTION))
callFunction();
else
raiseError(ObApplication.getResString("InvalidOp"));
pop e2
ObApplication.logException(e2);
pop local2
endClient();
endfinalize local2
}
ObClientListen
package ObRun.ObComms;
import java.net.Socket;
ObClientType
package ObRun.ObComms;
import java.io.*;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObFunction.ObApplication;
import ObRun.ObFunction.ObVersionInfo;
import java.net.Socket;
public ObClientType()
{
m_inputStream = null;
m_outputStream = null;
}
m_outputStream.write(0);
m_outputStream.flush();
char ach[] = new char[9];
for (int i = 0; i < 9; i++)
ach[i] = m_inputStream.readByte();
if (m_inputStream.available() > 0)
m_inputStream.readByte();
String string1 = new String(ach);
string1 = string1.substring(0, 8);
if (!ObVersionInfo.confirmVersion(string1))
{
String string2 = new String(string1 + ObApplication.getString("JavaVersion") +
ObVersionInfo.getVersionString() + ".");
byte ab[] = string2.getBytes();
for (int j = 0; j < ab.length; j++)
m_outputStream.writeByte(ab[j]);
Exception e2 = new Exception(string2);
ObApplication.logException(e2);
}
m_outputStream.write(0);
m_outputStream.flush();
}
}
}
catch (Exception e1)
{
ObApplication.log(0, ObApplication.getResString("ErrorType"));
ObApplication.logException(e1);
}
drop
return flag;
}
}
ObConversation
package ObRun.ObComms;
import ObRun.ObFunction.ObApplication;
ObDataSocketStream
package ObRun.ObComms;
import java.io.*;
import ObRun.ObFunction.ObApplication;
import java.net.Socket;
public ObDataSocketStream()
{
m_outputStream = null;
m_inputStream = null;
m_dataLength = 0;
}
ObDispatchSocketStream
package ObRun.ObComms;
import ObRun.ObFunction.*;
import java.io.*;
import java.net.InetAddress;
import java.net.Socket;
public ObDispatchSocketStream()
{
}
string2 = string2.trim();
ObCallInfo obCallInfo3 = ObCallInfo.createOpenRequest(string2);
obCallInfo3.m_userId = m_socket.getInetAddress().toString();
return obCallInfo3;
}
if (string1.equals(ObCallInfo.OBCALL_CLOSE))
{
ObCallInfo obCallInfo1 = ObCallInfo.createCloseRequest();
obCallInfo1.m_userId = m_socket.getInetAddress().toString();
return obCallInfo1;
}
if (string1.equals(ObCallInfo.OBCALL_FUNCTION))
{
char ach3[] = new char[32];
m_inputStream.read(ach3, 0, 32);
m_inputStream.read();
m_strEnv = new String(ach3);
m_strEnv = m_strEnv.trim();
m_inputStream.read(ach3, 0, 32);
m_inputStream.read();
m_strFunction = new String(ach3);
m_strFunction = m_strFunction.trim();
ObCallInfo obCallInfo2 = new ObCallInfo("");
obCallInfo2.m_operation = new String(ObCallInfo.OBCALL_FUNCTION);
obCallInfo2.m_functionName = new
StringBuffer(String.valueOf(m_strFunction)).append("_ObFnc").toString();
obCallInfo2.m_environment = m_strEnv;
obCallInfo2.m_userId = m_socket.getInetAddress().toString();
return obCallInfo2;
}
try
{
m_dataLength = new Integer(string1).intValue();
return ObFncParameter.createFromStream(m_inputStream, m_dataLength, m_strFunction,
m_strEnv);
}
catch (NumberFormatException e1)
{
return null;
}
}
}
}
else if (object.getClass().getName().equals("ObRun.ObFunction.ObFncParameter"))
((ObFncParameter)object).writeToStream(m_outputStream, m_dataLength);
}
catch (Exception e)
{
ObApplication.log(ObApplication.getResString("IOExceptionWrite"));
ObApplication.logException(e);
}
}
}
ObNotifyConnect
package ObRun.ObComms;
import ObRun.ObFunction.ObApplication;
import java.net.Socket;
static
{
m_serverId = 0;
}
ObApplication.log(ObApplication.getResString("EndNotify"));
}
ObNotifyEvent
package ObRun.ObComms;
ObObjectConversation
package ObRun.ObComms;
import ObRun.ObFunction.*;
import ObRun.ObRTTypes.ObCharFld;
ObApplication.logException(new ObRemoteException(ObApplication.getResString("NotStartRemote")));
return false;
}
m_callInfo = ObCallInfo.createOpenRequest(m_environment);
try
{
m_socket.write(m_callInfo);
m_callInfo = (ObCallInfo)m_socket.read();
}
catch (Exception e)
{
ObApplication.logException(e);
return false;
}
if (m_callInfo.m_rmtExcept == null)
return m_allocated;
ObApplication.logException(m_callInfo.m_rmtExcept);
return false;
}
object = (ObFncParameter)m_socket.read();
obFncParameter1.m_out.copy(object.m_out);
obFncParameter1.m_in.copy(object.m_in);
obFncParameter1.setReturningStatus(object.m_returning);
obFncParameter1.setReturnedStatus();
obFncParameter1.setCallStatus(object.m_functionCall.booleanValue());
}
catch ()
{
ObApplication.logException(object);
return;
}
if (m_callInfo.m_rmtExcept != null)
ObApplication.logException(m_callInfo.m_rmtExcept);
}
ObObjectSocketStream
package ObRun.ObComms;
import java.io.*;
import ObRun.ObFunction.ObApplication;
import java.net.Socket;
public ObObjectSocketStream()
{
m_outputStream = null;
m_inputStream = null;
}
else
m_inputStream = new ObjectInputStream(m_input);
return true;
}
catch ()
{
ObApplication.log(ObApplication.getResString("ConnectFailed"));
}
ObApplication.logException(e);
return false;
}
}
}
ObRemoteException
import ObRun.ObEnvironment.ObException;
ObService
package ObRun.ObComms;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObFunction.ObApplication;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Date;
static
{
}
}
System.out.println(object.getResourceString("DispatcherStarted"));
Thread.currentThread().suspend();
}
ObSocketListen
package ObRun.ObComms;
import java.util.*;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObFunction.ObApplication;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
public ObSocketListen(int i)
{
m_currentClients = new Hashtable(100);
m_keepWaiting = true;
m_port = new Integer(i);
m_threadGroup = new ThreadGroup(new StringBuffer("COOL:Plex Listener").append(new String(new
Integer(i).toString())).toString());
m_clientLimit = new Integer(10);
m_clientVector = new Vector(m_clientLimit.intValue(), m_clientLimit.intValue());
}
m_currentClients.put(Thread.currentThread(), object);
}
}
createNewClient(socket, flag, m_clientLimit);
}
pop e
log(e.getMessage(), 0);
log(ObApplication.getString("ServiceNotRunning"), 0);
m_keepWaiting = false;
pop local2
stopListening();
endfinalize local2
}
ObSocketService
package ObRun.ObComms;
import java.util.*;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObEnvironment.ObRunOptions;
import ObRun.ObFunction.ObApplication;
import java.io.PrintStream;
import java.net.Socket;
ObDatabase
ObDatabaseConnection
package ObRun.ObDatabase;
import java.sql.*;
import ObRun.ObFunction.ObApplication;
import java.util.Enumeration;
import java.util.Hashtable;
m_ODBC = false;
try
{
Exception e;
String string6;
m_connection = DriverManager.getConnection(string1, string2, string3);
setConnectionOptions(string4);
setSQLTypeConversions();
}
catch ()
{
string6 = new String(new StringBuffer(". DataSource = ").append(m_dataSource).toString());
}
ObApplication.logException(e);
return;
}
if (m_connection != null)
m_connection.setAutoCommit(true);
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
}
}
b = 1;
else if (string3.equalsIgnoreCase("TRANSACTION_REPEATABLE_READ"))
b = 4;
else if (string3.equalsIgnoreCase("TRANSACTION_SERIALIZABLE"))
b = 8;
if (b != 0)
m_connection.setTransactionIsolation(b);
}
}
catch (Exception e)
{
ObApplication.logException(e);
}
}
statement.setMaxFieldSize(integer1.intValue());
}
string2 = new StringBuffer(String.valueOf(string1)).append("SqlMaxRows").toString();
string3 = ObApplication.getRunOptionValue(string2);
if (string3 != null && string3.length() > 0)
{
Integer integer2 = new Integer(string3);
statement.setMaxRows(integer2.intValue());
}
string2 = new StringBuffer(String.valueOf(string1)).append("SqlQueryTimeout").toString();
string3 = ObApplication.getRunOptionValue(string2);
if (string3 != null && string3.length() > 0)
{
Integer integer3 = new Integer(string3);
statement.setQueryTimeout(integer3.intValue());
}
}
catch (SQLException e)
{
ObApplication.logException(e);
}
}
if (obSQLTypeConversion != null)
return obSQLTypeConversion.isNullable();
}
catch (Exception e)
{
ObApplication.logException(e);
}
return false;
}
}
ObDatabaseMgr
package ObRun.ObDatabase;
import ObRun.ObFunction.*;
import ObRun.ObEnvironment.ObODBCOptionValues;
import ObRun.ObRTTypes.ObCharFld;
import ObRun.ObRTTypes.ObField;
import java.io.PrintStream;
import java.text.MessageFormat;
import java.util.Enumeration;
import java.util.Vector;
static
{
}
public ObDatabaseMgr()
{
m_commitCount = 0;
m_options = null;
m_connection = null;
}
m_commitCount = 0;
m_options = null;
m_connection = null;
m_app = obApplication;
}
public static synchronized void delete(String string, Vector vector, ObFunction obFunction)
{
ObApplication.findDbMgr(true).insertOrDelete(string, obFunction, vector);
}
public static synchronized void execSQL(String string1, Object aobject[], Vector vector, ObFunction
obFunction)
{
ObDatabaseMgr obDatabaseMgr = ObApplication.findDbMgr(true);
ObView obView = obDatabaseMgr.getView(obFunction, true);
String string2 = string1;
if (aobject != null)
string2 = MessageFormat.format(string1, aobject);
System.out.println(string2);
obView.execSQL(string2, vector);
}
public static synchronized void fetch(String string, Vector vector1, ObVariable obVariable, int i,
ObFunction obFunction)
{
ObDatabaseMgr obDatabaseMgr = ObApplication.findDbMgr(true);
ObView obView = obDatabaseMgr.getView(obFunction, true);
Vector vector2 = obDatabaseMgr.orderFields(vector1, obFunction);
obView.fetch(string, vector2, obVariable, i);
}
public static synchronized void fetchNext(ObVariable obVariable, ObFunction obFunction, Vector vector1)
{
ObDatabaseMgr obDatabaseMgr = ObApplication.findDbMgr(true);
ObView obView = obDatabaseMgr.getView(obFunction, true);
Vector vector2 = obDatabaseMgr.orderFields(vector1, obFunction);
obView.fetchNext(obVariable, vector2);
}
public static synchronized void insert(String string, Vector vector, ObFunction obFunction)
{
ObApplication.findDbMgr(true).insertOrDelete(string, obFunction, vector);
}
public static synchronized void position(String string, Vector vector1, ObVariable obVariable, int i,
ObFunction obFunction)
{
public static synchronized void update(String string, Vector vector, ObFunction obFunction)
{
ObApplication.findDbMgr(true).update(string, obFunction, vector);
}
}
ObSocketStream
package ObRun.ObComms;
import java.io.*;
import java.net.*;
import ObRun.ObFunction.ObApplication;
public ObSocketStream()
{
m_socket = null;
m_inetAddress = null;
m_port = new Integer(0);
m_connected = false;
m_input = null;
m_output = null;
m_inetAddress = null;
m_port = new Integer(0);
}
if (createStreams() != 1)
return false;
m_connected = true;
return true;
}
{
ObApplication.logException(e);
}
}
ObSQLDataTypes
package ObRun.ObDatabase;
import ObRun.ObRTTypes.*;
import java.sql.*;
import java.util.*;
import java.io.PrintStream;
{
System.out.println(e.getMessage());
System.out.println(new StringBuffer("exception: ").append(e.getMessage()).toString());
e.printStackTrace();
}
return hashtable;
}
ObSQLTypeConversion
package ObRun.ObDatabase;
import ObRun.ObRTTypes.ObField;
import java.util.Hashtable;
ObSQLTypeConversion(ObField obField)
{
m_field = obField;
m_acceptedType = 0;
}
{
return m_isFixedPrecision;
}
ObValidSQLType
package ObRun.ObDatabase;
import java.sql.DatabaseMetaData;
ObValidSQLType()
{
}
ObEnvironment
ObException
package ObRun.ObEnvironment;
static
{
}
public ObException()
{
super(m_defaultMessage);
m_message = new String(m_defaultMessage);
}
ObJavaApi
package ObRun.ObEnvironment;
import ObRun.ObFunction.ObApplication;
ObLog
package ObRun.ObEnvironment;
import ObRun.ObFunction.ObApplication;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.Date;
m_logFile.flush();
}
ObODBCOptionValues
package ObRun.ObEnvironment;
import java.util.Vector;
public ObODBCOptionValues()
{
m_connectList = new ObOptionsList("SQLConnection");
m_stmtList = new ObOptionsList("SQLStatement");
loadConnectOptions();
loadStmtOptions();
}
return m_stmtList;
}
m_connectList.addElement(obValidElement);
obValidElement = new ObValidElement("SQL_PACKET_SIZE");
m_connectList.addElement(obValidElement);
}
m_stmtList.addElement(obValidElement);
obValidElement = new ObValidElement("SQL_ROWSET_SIZE");
obValidElement.addElement("SQL_ROWSET_SIZE_DEFAULT");
m_stmtList.addElement(obValidElement);
obValidElement = new ObValidElement("SQL_SIMULATE_CURSOR");
obValidElement.addElement("SQL_SC_NON_UNIQUE");
obValidElement.addElement("SQL_SC_TRY_UNIQUE");
obValidElement.addElement("SQL_SC_UNIQUE");
m_stmtList.addElement(obValidElement);
obValidElement = new ObValidElement("SQL_RETRIEVE_DATA");
obValidElement.addElement("SQL_RD_OFF");
obValidElement.addElement("SQL_RD_ON");
obValidElement.addElement("SQL_RD_DEFAULT");
m_stmtList.addElement(obValidElement);
obValidElement = new ObValidElement("SQL_USE_BOOKMARKS");
obValidElement.addElement("SQL_UB_OFF");
obValidElement.addElement("SQL_UB_ON");
obValidElement.addElement("SQL_UB_DEFAULT");
m_stmtList.addElement(obValidElement);
obValidElement = new ObValidElement("SQL_GET_BOOKMARK");
m_stmtList.addElement(obValidElement);
}
}
ObOptionsElement
package ObRun.ObEnvironment;
import ObRun.ObFunction.ObApplication;
import java.io.BufferedWriter;
import java.io.IOException;
ObOptionsList
package ObRun.ObEnvironment;
import ObRun.ObFunction.ObApplication;
import java.io.BufferedWriter;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Vector;
{
for (int i = 0; i < m_optionElements.size(); i++)
{
ObOptionsElement obOptionsElement = (ObOptionsElement)m_optionElements.elementAt(i);
if (obOptionsElement.getName().equalsIgnoreCase(string))
return obOptionsElement;
}
return null;
}
{
IOException e;
bufferedWriter.write(ObApplication.getNewLine(), 0, 1);
bufferedWriter.write(string, 0, string.length());
i = 0;
}
catch ()
{
ObApplication.log(e.getMessage());
return false;
}
for (; i < m_optionElements.size(); i++)
{
ObOptionsElement obOptionsElement = (ObOptionsElement)m_optionElements.elementAt(i);
if (!obOptionsElement.writeLine(bufferedWriter))
return false;
}
return true;
}
}
ObRunOptions
package ObRun.ObEnvironment;
import java.io.*;
import ObRun.ObFunction.ObApplication;
import java.net.URL;
import java.net.URLConnection;
import java.util.Hashtable;
import java.util.Properties;
static
{
}
public ObRunOptions()
{
}
ObApplication.logException(e);
}
}
m_connectURL = m_optionsURL.openConnection();
super.load(m_connectURL.getInputStream());
return true;
}
catch ()
{
e.printStackTrace();
}
ObApplication.logException(e);
return false;
}
public boolean saveLoginInfo(String string1, boolean flag1, boolean flag2, boolean flag3)
{
ObApplication obApplication = ObApplication.findApp();
File file = new File(m_optionsURL.getFile());
try
{
Object object = new LineNumberReader(new FileReader(file));
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(new
StringBuffer(String.valueOf(String.valueOf(file))).append("plex").toString()));
while (object.ready())
{
String string2 = object.readLine();
if (flag1)
{
String string4 = updatePropertyLine(string2, string1, new String("System"));
if (string4 != null)
{
string2 = string4;
flag1 = false;
}
}
if (flag2)
{
String string5 = updatePropertyLine(new String(string2), string1, new String("User"));
if (string5 != null)
{
string2 = string5;
flag2 = false;
}
}
if (flag3)
{
String string6 = updatePropertyLine(new String(string2), string1, new
String("Password"));
if (string6 != null)
{
string2 = string6;
flag3 = false;
}
}
bufferedWriter.write(string2, 0, string2.length());
bufferedWriter.newLine();
}
if (flag1)
createPropertyLine(string1, new String("System"), bufferedWriter);
if (flag2)
createPropertyLine(string1, new String("User"), bufferedWriter);
if (flag3)
createPropertyLine(string1, new String("Password"), bufferedWriter);
bufferedWriter.flush();
object = new LineNumberReader(new FileReader(new
StringBuffer(String.valueOf(String.valueOf(file))).append("plex").toString()));
bufferedWriter = new BufferedWriter(new FileWriter(file));
while (object.ready())
{
String string3 = object.readLine();
bufferedWriter.write(string3, 0, string3.length());
bufferedWriter.newLine();
}
bufferedWriter.flush();
return true;
}
catch ()
{
ObApplication.logException(object);
}
return false;
}
{
remove(string1);
put(string1, string2);
}
ObStringResource
package ObRun.ObEnvironment;
import java.io.*;
import java.net.URL;
import java.util.PropertyResourceBundle;
ObView
package ObRun.ObDatabase;
import java.sql.*;
import ObRun.ObFunction.ObApplication;
import ObRun.ObFunction.ObVariable;
import ObRun.ObRTTypes.ObField;
import java.util.Enumeration;
import java.util.Vector;
int i = 0;
for (Enumeration enumeration = m_execSQLFields.elements(); enumeration.hasMoreElements(); )
{
aobField[i] = (ObField)enumeration.nextElement();
i++;
}
}
else
aobField = obVariable.getObFields();
int j = 1;
for (int k = 0; k < aobField.length; )
{
ObField obField = null;
try
{
Exception e;
obField = aobField[k];
if (obField != null && !obField.isDerived())
{
obField.fromResultSet(m_resultSet, j);
j++;
}
k++;
}
catch ()
{
ObApplication.logException(e);
return false;
}
}
return true;
}
}
try
{
Exception e;
for (Enumeration enumeration2 = vector.elements(); enumeration2.hasMoreElements(); )
{
ObField obField2 = (ObField)enumeration2.nextEle
ObFunction
ObApplication
package ObRun.ObFunction;
import java.util.*;
import ObRun.ObDatabase.ObDatabaseMgr;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObEnvironment.ObRunOptions;
import java.applet.Applet;
import java.awt.Font;
import java.io.PrintStream;
import java.net.URL;
import java.text.MessageFormat;
import javax.swing.JApplet;
static
{
m_app = null;
m_clientApps = new Hashtable(50);
}
public ObApplication()
{
m_callMgr = null;
m_dbMgr = null;
m_stringResources = null;
m_locale = null;
m_environment = null;
m_applet = null;
m_useFrame = null;
m_currentFunction = null;
m_callMgr = new ObCallMgr(this);
m_dbMgr = null;
}
{
ObApplication obApplication = findApp();
if (obApplication == null)
return null;
if (obApplication.m_environment == null)
obApplication.m_environment = new String("Default");
return new String(obApplication.m_environment);
}
else
return obApplication.getResourceString(string);
}
{
}
System.out.println(e2);
}
return false;
}
return -1;
else
return log(i, MessageFormat.format(string, aobject));
}
public static synchronized int log(int i, String string, Object aobject[], int j)
{
if (string == null)
return -1;
else
return log(i, MessageFormat.format(string, aobject), j);
}
public static synchronized int log(int i, String string1, Object aobject[], String string2)
{
if (string1 == null)
return -1;
else
return log(i, MessageFormat.format(string1, aobject), string2);
}
obApplication.handleException(e);
}
public static void obCallFunction(ObFncParameter obFncParameter, String string1, String string2, String
string3, String string4)
{
findCallMgr().obCallFunction(obFncParameter, string1, string2, string3, string4);
}
public static synchronized void saveLoginInfo(String string, boolean flag1, boolean flag2, boolean
flag3)
{
ObApplication obApplication = findApp();
if (obApplication == null)
return;
obApplication.m_runOptions.saveLoginInfo(string, flag1, flag2, flag3);
}
if (string == null)
obApplication.m_useFrame = new Boolean(0);
else
{
string = string.toUpperCase();
if (string.compareTo("YES") == 0)
obApplication.m_useFrame = new Boolean(1);
else
obApplication.m_useFrame = new Boolean(0);
}
}
return obApplication.m_useFrame.booleanValue();
}
}
ObCall
if (string5.compareTo("DefaultAS400") == 0)
return new ObRemoteRPGCall(string5, string6, obCallMgr);
String string8 = new String(string5);
string8 = new StringBuffer(String.valueOf(string8)).append(".Protocol").toString();
String string9 = ObApplication.getRunOptionValue(string8);
if (string9 == null || string9.compareTo("JAVATCPIP") == 0)
return new ObRemoteJavaCall(string5, string6, obCallMgr);
if (string9.compareTo("AS400TCPIP") == 0)
return new ObRemoteRPGCall(string5, string6, obCallMgr);
else
return new ObLocalJavaCall(obCallMgr);
}
ObCallInfo
package ObRun.ObFunction;
import java.io.*;
import ObRun.ObComms.ObNotifyEvent;
import ObRun.ObComms.ObRemoteException;
import java.net.InetAddress;
static
{
}
public ObCallInfo()
{
init();
}
init();
}
ObCallMgr
package ObRun.ObFunction;
import ObRun.ObComms.ObConversation;
import java.util.Enumeration;
import java.util.Hashtable;
static
{
}
public ObCallMgr()
{
m_remoteConvs = new Hashtable(10);
m_app = null;
m_children = new Hashtable();
m_packages = new Hashtable();
}
ObClientApp
ObFncParameter
package ObRun.ObFunction;
import java.io.*;
import ObRun.ObComms.ObAS400SocketStream;
import ObRun.ObRTTypes.ObCharFld;
import ObRun.ObRTTypes.ObField;
import java.util.Vector;
public ObFncParameter()
{
m_returned = null;
m_returning = null;
m_functionCall = null;
m_in = new ObVariableGroup();
m_out = new ObVariableGroup();
m_calledFncData = null;
m_callerFncData = null;
m_returned = null;
m_functionCall = null;
}
m_returned = null;
m_returning = null;
m_functionCall = null;
m_in = obVariableGroup1;
m_out = obVariableGroup2;
m_calledFncData = null;
m_callerFncData = obFunction;
m_returned = null;
m_functionCall = null;
}
ObFunction
package ObRun.ObFunction;
import java.io.*;
import ObRun.ObDatabase.ObDatabaseMgr;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObLaunch;
import ObRun.ObRTTypes.ObCharFld;
import java.applet.Applet;
import java.awt.Window;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.JApplet;
public ObFunction()
{
m_panel = null;
m_functionName = null;
m_stopped = true;
m_parameter = null;
m_parentFunctionData = null;
m_in = null;
m_out = null;
m_parent = null;
m_children = new Vector();
m_hasReturned = false;
m_handler = null;
}
{
return m_functionName;
}
}
return obFunction;
}
entry();
m_handler = new ObFunctionHandler(this);
}
ObFunctionHandler
package ObRun.ObFunction;
ObLocalJavaCall
package ObRun.ObFunction;
obFunction2.clearReferences();
}
else
{
if (obFncParameter != null)
obFncParameter.setCallStatus(false);
Object aobject2[] = { string1 };
ObApplication.log(ObApplication.getResString("CheckCP1"), aobject2);
}
obFunction2 = null;
}
}
ObMessageLog
package ObRun.ObFunction;
import java.awt.*;
import javax.swing.*;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
jMenuItem.setActionCommand("Clear");
jMenuItem.addActionListener(new ObMessageLog$ObMenuListener(this));
jMenu.add(jMenuItem);
jMenuBar.add(jMenu);
m_messageLog.setJMenuBar(jMenuBar);
m_messageLog.setSize(new Dimension(300, 300));
m_messageLog.show();
}
ObMessageLog$ObMenuListener
package ObRun.ObFunction;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.EventObject;
import javax.swing.AbstractButton;
import javax.swing.JMenuItem;
ObMessageLog$ObMenuListener(ObMessageLog obMessageLog)
{
}
ObPanel
package ObRun.ObFunction;
import ObRun.ObPanel.ObCtrlData.*;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObWindowGui;
import ObRun.ObPanel.ObLaunch;
import ObRun.ObPanel.ObPanelUtils.ObPanelResource;
import ObRun.ObRTTypes.ObField;
import java.util.Enumeration;
import java.util.ResourceBundle;
import javax.swing.UIManager;
m_owningFunction.setPanel(this);
m_panelName = string2;
m_name = string1;
initResources();
String string3 = m_resource.getString("WindowId");
String string4 = "Dialog";
try
{
string4 = m_resource.getString(new
StringBuffer(String.valueOf(string3)).append(".WindowType").toString());
}
catch (Exception e1)
{
}
ObWindowData obWindowData = null;
if (m_owningFunction.getCaller() != null && m_owningFunction.getCaller().getPanel() != null)
obWindowData = m_owningFunction.getCaller().getPanel().getPanelData();
if (string4.equals("Dialog"))
m_panelData = new ObDialogData(this, string1, i, obWindowData);
else
m_panelData = new ObTopAppData(this, string1, i);
try
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
UIManager.setLookAndFeel(ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".LookAndFeel"));
}
catch (Exception e2)
{
}
setShouldShowMouseOver();
ObLaunch obLaunch = (ObLaunch)ObApplication.findApp().getApplet();
if (obLaunch != null && getFunction().m_parentFunctionData == null)
obLaunch.setPanel(this);
}
{
try
{
if (ObApplication.isApplet())
m_resource = ObPanelResource.getResourceFromName(m_name);
else
{
String string = ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".Resources");
if (string.length() < 1)
m_resource = new ObPanelResource(getClass().getResource(m_name + ".panelresource"));
else
m_resource = ObPanelResource.getResourceFromName(m_name);
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
{
m_panelData.show();
try
{
start();
}
catch (Exception e)
{
}
}
}
ObRemoteJavaCall
package ObRun.ObFunction;
import ObRun.ObComms.ObObjectConversation;
catch (Exception e)
{
obFncParameter.setCallStatus(false);
ObApplication.logException(e);
return;
}
}
obObjectConversation.callFunction(string1, obFncParameter);
}
}
ObRemoteRPGCall
package ObRun.ObFunction;
import ObRun.ObComms.ObAS400Conversation;
{
obAS400Conversation = null;
m_callMgr.removeRemoteConversation(m_remoteMachine);
obFncParameter.setCallStatus(false);
ObApplication.log(ObApplication.getResString("ConnectFailed"));
return;
}
}
catch (Exception e)
{
obAS400Conversation = null;
m_callMgr.removeRemoteConversation(m_remoteMachine);
obFncParameter.setCallStatus(false);
ObApplication.logException(e);
return;
}
}
if (obAS400Conversation.callFunction(string1, string2, obFncParameter))
obAS400Conversation = null;
obFncParameter.setCallStatus(false);
return;
}
}
ObServerApp
Formal parameters:
ObValidElement
package ObRun.ObEnvironment;
import java.util.Vector;
ObVariable
package ObRun.ObFunction;
import java.io.*;
import ObRun.ObRTTypes.ObField;
import ObRun.ObRTTypes.ObStructuredFld;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
public ObVariable()
{
m_parent = null;
}
}
}
return aobField;
}
ObVariableGroup
package ObRun.ObFunction;
import ObRun.ObRTTypes.*;
import java.io.*;
import ObRun.ObComms.ObAS400SocketStream;
import [LObRun.ObFunction.ObVariable;;
import java.lang.reflect.Field;
import java.util.Enumeration;
import java.util.Vector;
static
{
VT_INPUT = "VT_INPUT".intern();
VT_OUTPUT = "VT_OUTPUT".intern();
VT_LOCAL = "VT_LOCAL".intern();
VT_CALLS = "VT_CALLS".intern();
VT_ENVIRONMENT = "VT_ENVIRONMENT".intern();
}
public ObVariableGroup()
{
}
{
m_parent = null;
m_groupType = string;
setOwnerFncData(obFunction);
m_children = new Vector();
}
public int addToHeader(int an[], int i1, int j1, boolean flag1)
{
i1 = i1--;
Field afield[] = getClass().getDeclaredFields();
for (int k = 0; k < afield.length; k++)
{
boolean flag2 = false;
if (flag1 && (afield[k].getName().endsWith("OBJECTS_Input") ||
afield[k].getName().endsWith("OBJECTS_Output")))
flag2 = true;
int i2 = 0;
ObField aobField[] = getObFieldsFromVar(k);
if (aobField.length >= 1)
{
for (int j2 = 0; j2 < aobField.length; j2++)
{
ObField obField = aobField[j2];
if (((ObField)obField).getAS400DataType() == 112)
i2 += ((ObField)obField).getDesignLength() / 2 + 1;
else
i2 += ((ObField)obField).getDesignLength();
if (flag1 && ((ObField)obField instanceof ObDateFld || (ObField)obField instanceof
ObTimeFld || (ObField)obField instanceof ObTimeStampFld))
{
i2 += 2;
if ((ObField)obField instanceof ObTimeStampFld)
i2 += 4;
}
if (flag2)
{
an[i1++] = i2;
an[i1++] = j1;
j1 += i2;
i2 = 0;
}
}
if (!flag2)
{
an[i1++] = i2;
an[i1++] = j1;
j1 += i2;
}
}
}
return j1;
}
if (obVariableGroup.getClass().getName().equals(getClass().getName()))
{
Class class = obVariableGroup.getClass();
Field afield1[] = class.getFields();
Field afield2[] = getClass().getFields();
for (int i = 0; i < afield1.length; i++)
{
Object object = null;
try
{
object = afield1[i].get(obVariableGroup);
if (object != null)
afield2[i].set(this, object);
}
catch (IllegalAccessException e1)
{
}
catch (Exception e2)
{
ObApplication.log(e2.getMessage());
return;
}
}
}
}
int i = false;
try
{
Field afield[] = getClass().getDeclaredFields();
for (int j = 0; j < afield.length; j++)
{
ObField aobField[] = getObFieldsFromVar(j);
for (int k = 0; k < aobField.length; k++)
{
ObField obField = aobField[k];
if (((ObField)obField).getAS400DataType() == 112)
i += ((ObField)obField).getDesignLength() / 2 + 1;
else
i += ((ObField)obField).getDesignLength();
if (flag && ((ObField)obField instanceof ObDateFld || (ObField)obField instanceof
ObTimeFld || (ObField)obField instanceof ObTimeStampFld))
{
i += 2;
if ((ObField)obField instanceof ObTimeStampFld)
i += 4;
}
}
}
}
catch (Exception e)
{
ObApplication.logException(e);
i = false;
}
return i;
}
}
[LObRun.ObFunction.ObVariable obVariable; = (ObVariable;)getArrayObj(afield[i1]);
int j = obVariable;[0].getFieldCount();
j *= obVariable;.length;
ObField aobField1[] = new ObField[j];
for (int k = 0; k < obVariable;.length; k++)
{
ObField aobField2[] = obVariable;[k].getObFields();
for (int i2 = 0; i2 < aobField2.length; i2++)
aobField1[k * aobField2.length + i2] = aobField2[i2];
}
return aobField1;
}
catch (Exception e)
{
ObApplication.logException(e);
}
return null;
}
public int readRPGVariables(byte ab1[], int i1, String string1, boolean flag)
{
try
{
byte ab2[] = null;
{
ach2[k3] = ab1[k4];
k3++;
k4++;
}
if (((ObField)obField).getAS400DataType() == 112)
i1 += ((ObField)obField).getDesignLength() / 2 + 1;
else
i1 += ((ObField)obField).getDesignLength();
if (((ObField)obField).getAS400DataType() == 112)
ach2 = ObAS400SocketStream.convertPackedToZoned(ach2,
((ObField)obField).getDesignLength(), ((ObField)obField).getDesignDecimals());
if (((ObField)obField).hasSpecialValues())
string2 = ((ObField)obField).getAS400State(new String(ab2));
if (string2 == null)
{
string2 = ObAS400SocketStream.convertZonedToAscii(ach2,
((ObField)obField).getDesignLength(), ((ObField)obField).getDesignDecimals());
((ObField)obField).fromString(string2.trim());
}
local = null;
}
else if (flag)
{
int j2 = ((ObField)obField).getDesignLength();
j2 += 2;
if ((ObField)obField instanceof ObTimeStampFld)
j2 += 4;
ab2 = new byte[j2];
int i3 = 0;
int i4 = i1;
while (i3 < ab2.length)
{
ab2[i3] = ab1[i4];
i3++;
i4++;
}
i1 += j2;
if (((ObField)obField).hasSpecialValues())
string2 = ((ObField)obField).getAS400State(new String(ab2));
if (string2 == null)
{
string2 = ObAS400SocketStream.decode(ab2, string1);
((ObField)obField).fromString(string2.trim());
}
string2 = null;
}
else
{
char ach1[];
if (((ObField)obField).getAS400DataType() == 112)
ach1 = new char[((ObField)obField).getDesignLength() / 2 + 1];
else
ach1 = new char[((ObField)obField).getDesignLength()];
int j3 = 0;
int j4 = i1;
while (j3 < ach1.length)
{
ach1[j3] = ab1[j4];
j3++;
j4++;
}
if (((ObField)obField).getAS400DataType() == 112)
i1 += ((ObField)obField).getDesignLength() / 2 + 1;
else
i1 += ((ObField)obField).getDesignLength();
if (((ObField)obField).hasSpecialValues())
{
ab2 = new byte[ach1.length];
for (int i5 = 0; i5 < ach1.length; i5++)
ab2[i5] = (byte)ach1[i5];
string2 = ((ObField)obField).getAS400State(new String(ab2));
}
if (string2 == null)
{
if (((ObField)obField).getAS400DataType() == 112)
ach1 = ObAS400SocketStream.convertPackedToZoned(ach1,
((ObField)obField).getDesignLength(), ((ObField)obField).getDesignDecimals());
string2 = ObAS400SocketStream.convertZonedToAscii(ach1,
((ObField)obField).getDesignLength(), ((ObField)obField).getDesignDecimals());
((ObField)obField).fromStringWithoutSeparators(string2.trim());
}
string2 = null;
}
}
}
}
catch (Exception e)
{
ObApplication.logException(e);
}
return i1;
}
{
try
{
Field afield[] = getClass().getDeclaredFields();
int i = 0;
for (int j = 0; j < afield.length; j++)
{
ObField aobField[] = getObFieldsFromVar(j);
for (int k = 0; k < aobField.length; k++)
{
ObField obField = aobField[k];
obField.fromString(astring[i]);
i++;
}
}
}
catch (Exception e)
{
ObApplication.logException(e);
}
}
byte b = 0;
try
{
b = (byte)ach[i];
}
catch (Exception e)
{
ObApplication.logException(e);
}
return b;
}
public void writeRPGVariables(byte ab1[], int i1, String string1, boolean flag)
{
try
{
byte ab2[] = null;
Field afield[] = getClass().getDeclaredFields();
for (int j1 = 0; j1 < afield.length; j1++)
{
ObField aobField[] = getObFieldsFromVar(j1);
for (int k1 = 0; k1 < aobField.length; k1++)
{
ObField obField = aobField[k1];
String string2 = null;
if (((ObField)obField).hasState())
ab2 = ((ObField)obField).getAS400Content();
if ((ObField)obField instanceof ObCharFld)
{
if (ab2 == null)
{
string2 =
ObAS400SocketStream.createFixLengthString(((ObField)obField).toString(),
((ObField)obField).getDesignLength());
ab2 = ObAS400SocketStream.encode(string2, string1);
}
int i2 = 0;
int k2 = i1;
while (i2 < ab2.length)
{
ab1[k2] = ab2[i2];
i2++;
k2++;
}
i1 += ((ObField)obField).getDesignLength();
ab2 = null;
}
else if ((ObField)obField instanceof ObDateFld || (ObField)obField instanceof ObTimeFld
|| (ObField)obField instanceof ObTimeStampFld)
{
int j2 = ((ObField)obField).getDesignLength();
if (flag)
{
if (ab2 == null)
{
j2 += 2;
if ((ObField)obField instanceof ObTimeStampFld)
j2 += 4;
string2 =
ObAS400SocketStream.createFixLengthString(((ObField)obField).toString(), j2);
ab2 = ObAS400SocketStream.encode(string2, string1);
}
int i3 = 0;
int j4 = i1;
while (i3 < ab2.length)
{
ab1[j4] = ab2[i3];
i3++;
j4++;
}
i1 += j2;
ab2 = null;
}
else
{
char ach2[] = null;
if (ab2 == null)
{
string2 = ((ObField)obField).toStringWithoutSeparators();
ach2 = ObAS400SocketStream.convertAsciiToZoned(string2, j2,
((ObField)obField).getDesignDecimals());
if (((ObField)obField).getAS400DataType() == 112)
ach2 = ObAS400SocketStream.convertZonedToPacked(ach2, j2,
((ObField)obField).getDesignDecimals());
}
else
{
ach2 = new char[ab2.length];
for (int k4 = 0; k4 < ab2.length; k4++)
ach2[k4] = (char)ab2[k4];
}
int i5 = 0;
int k5 = i1;
while (i5 < ach2.length)
{
ab1[k5] = (byte)ach2[i5];
i5++;
k5++;
}
if (((ObField)obField).getAS400DataType() == 112)
i1 += ((ObField)obField).getDesignLength() / 2 + 1;
else
i1 += ((ObField)obField).getDesignLength();
ab2 = null;
}
}
else
{
char ach1[] = null;
if (ab2 == null)
{
string2 = ((ObField)obField).toString();
int j3 = ((ObField)obField).getDesignLength();
ach1 = ObAS400SocketStream.convertAsciiToZoned(string2, j3,
((ObField)obField).getDesignDecimals());
if (((ObField)obField).getAS400DataType() == 112)
{
ObField obField = aobField[j];
charArrayWriter.write(((ObField)obField).getState());
charArrayWriter.write(0);
String string = ((ObField)obField).toString();
if (string.length() > ((ObField)obField).getCLength())
string = string.substring(0, ((ObField)obField).getCLength() - 1);
charArrayWriter.write(string, 0, string.length());
int k = ((ObField)obField).getCLength() - string.length();
for (int i2 = 0; i2 < k; i2++)
charArrayWriter.write(0);
}
}
}
catch (Exception e)
{
ObApplication.logException(e);
}
}
ObPanel
ObCtrlData
ObBeanData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObFunction.ObPanel;
import ObRun.ObPanel.ObCtrlGui.ObBeanGui;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
ObCheckboxData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCheckboxGui;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
public ObCheckboxData()
{
m_valuePairs = new ObValuePairList();
}
ObColumnHeadingData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObColumnHeadingGui;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
ObComboData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObComboGui;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
public ObComboData()
{
m_valuePairs = new ObValuePairList();
}
if (((ObComboGui)m_guiCtrl).isSorted())
((ObComboGui)m_guiCtrl).addItems(m_valuePairs.toAArraySorted());
else
((ObComboGui)m_guiCtrl).addItems(m_valuePairs.toAArray());
}
ObControlState
package ObRun.ObPanel.ObCtrlData;
import java.io.PrintStream;
import java.util.Hashtable;
public ObControlState()
{
m_controlTable = new Hashtable(39);
}
void dump()
{
System.out.println(m_controlTable.toString());
}
ObCtrlData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.*;
import ObRun.ObRTTypes.*;
import java.awt.event.*;
import java.util.*;
import ObRun.ObFunction.ObApplication;
import ObRun.ObFunction.ObPanel;
import java.awt.Color;
import java.io.PrintStream;
import java.lang.reflect.Method;
public ObCtrlData()
{
m_children = new Vector(20);
m_panel = null;
m_state = null;
m_gridRowPropertyTable = null;
m_propTable = null;
m_methodsTable = new Hashtable();
m_eventMap = null;
m_inWrite = false;
m_ignoreEvents = false;
m_guiCtrl = null;
}
break;
case 1:
if (m_field == null)
setField(obField);
if (!(getGuiCtrl() instanceof ObRadiobuttonGui))
obField.fromString(getGuiCtrl().getValue());
else if (((ObRadiobuttonGui)getGuiCtrl()).isFirstRadioButton())
obField.fromString(getGuiCtrl().getValue());
else if (getGuiCtrl().getValue() != null)
obField.fromString(getGuiCtrl().getValue());
break;
case 0:
case 4:
flag = true;
break;
case 5:
String string = obField.toString();
if (obField instanceof ObDateFld)
string = getGuiCtrl().formatDateForDisplay(string,
ObApplication.getRunOptionValue(ObApplication.getEnvironment() + ".DefaultDateMask"));
else if (obField instanceof ObTimeFld)
string = getGuiCtrl().formatTimeForDisplay(string,
ObApplication.getRunOptionValue(ObApplication.getEnvironment() + ".DefaultTimeMask"));
else if (obField instanceof ObTimeStampFld)
string = getGuiCtrl().formatTimeStampForDisplay(string,
ObApplication.getRunOptionValue(ObApplication.getEnvironment() + ".DefaultTimeStampMask"));
addValuePair(string, obField.toString());
finishValues();
break;
case 3:
getGuiCtrl().clear();
break;
case 8:
removeValue(obField.toString());
break;
case 13:
getGuiCtrl().setValue(obField.toString());
if (getGuiCtrl().inGrid())
{
((ObGridGui)getParent().getGuiCtrl()).startAccess(13);
((ObGridGui)getParent().getGuiCtrl()).populateGridFromFields();
}
break;
case 14:
if (getPanel().whoHasFocus() == 0)
getGuiCtrl().setFocus();
else
{
int i = getGuiCtrl().getTabSequence();
int j = getPanel().getCompByID(new
Integer(getPanel().whoHasFocus())).getGuiCtrl().getTabSequence();
if (i > -1 && i < j)
getGuiCtrl().setFocus();
}
break;
case 15:
if (getGuiCtrl().ifFocus())
getPanel().setCurrentFocus(m_id);
break;
case 16:
return getGuiCtrl().isEditable();
default:
flag = false;
break;
}
return flag;
}
}
stringTokenizer = new StringTokenizer(stringBuffer2.toString());
}
while (stringTokenizer.hasMoreTokens())
{
String string2 = stringTokenizer.nextToken();
StringBuffer stringBuffer3 = new StringBuffer(40);
stringBuffer3.append(string2).append(".Type");
String string4 = getProperty(stringBuffer3.toString(), false);
int i = new Integer(string2).intValue();
ObCtrlData obCtrlData = loadControlbyClass(string4);
if (obCtrlData != null)
{
obCtrlData.setParent(this);
obCtrlData.init(i);
obCtrlData.loadChildren();
}
}
getGuiCtrl().getPanel().layoutWindow();
}
}
for (int i = 0; i < amethod.length; i++)
if (amethod[i].getName().startsWith("set"))
m_methodsTable.put(amethod[i].getName(), amethod[i]);
}
catch (Exception e1)
{
System.out.println(ObApplication.getString("MethodLoadFailed"));
return;
}
}
StringBuffer stringBuffer1 = new StringBuffer(50);
stringBuffer1.append(new Integer(getID()).toString()).append(".Properties");
String string1 = getProperty(stringBuffer1.toString(), true);
if (string1 == null)
return;
for (StringTokenizer stringTokenizer = new StringTokenizer(string1);
stringTokenizer.hasMoreTokens(); )
{
String string2 = stringTokenizer.nextToken();
StringBuffer stringBuffer2 = new StringBuffer(20);
stringBuffer2.append("set").append(string2);
String astring[] = new String[1];
StringBuffer stringBuffer3 = new StringBuffer(50);
stringBuffer3.append(new Integer(getID()).toString()).append(".").append(string2);
astring[0] = getProperty(stringBuffer3.toString(), true);
try
{
Method method = (Method)m_methodsTable.get(stringBuffer2.toString());
if (method != null && astring[0] != null)
{
if (getParent() instanceof ObGridData && hashtable != null)
if (string2.compareTo("BackgroundColor") == 0 || string2.compareTo("TextColor") ==
0 || string2.compareTo("Mode") == 0 || string2.compareTo("Font") == 0 || string2.compareTo("Disabled") == 0)
hashtable.put(method.getName(), astring);
else if (getPanel().getControlStateTable().isChangedPropertyValue(getID(), string2,
astring[0]))
method.invoke(m_guiCtrl, astring);
}
}
catch (Exception e2)
{
System.out.println(string2 + " " + ObApplication.getString("NotSupported") + getID());
}
try
{
m_guiCtrl.setBackgroundImage();
}
catch (Exception e3)
{
}
}
}
getPanel().getOwner().eventsHandler();
}
m_guiCtrl.getPanel().setNotBusyCursor();
}
getPanel().layout();
decRecurseCount();
return true;
}
ObDialogData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObFunction.ObPanel;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObDialogGui;
super.setEnabled(flag);
getWindowGui().setEnabled(flag);
}
ObEditData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObEditGui;
ObEventMap
package ObRun.ObPanel.ObCtrlData;
import java.util.Hashtable;
return 0;
m_lastlID = integer.intValue();
return m_lastlID;
}
}
ObGridData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObGridGui;
case 3:
case 4:
case 6:
case 7:
case 8:
case 9:
case 10:
return 0;
case 5:
return 2;
default:
return 0;
}
}
ObKeyStrokeMap
package ObRun.ObPanel.ObCtrlData;
import java.util.Hashtable;
import javax.swing.KeyStroke;
public ObKeyStrokeMap()
{
m_keyPairs = null;
m_keyPairs = new Hashtable(10);
}
else
return obKeyStrokeMap$ObKeyDetails.m_logicalEvent;
}
}
ObKeyStrokeMap$ObKeyDetails
package ObRun.ObPanel.ObCtrlData;
ObLabelData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObLabelGui;
ObListData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObListGui;
public ObListData()
{
m_valuePairs = new ObValuePairList();
}
if (((ObListGui)m_guiCtrl).isSorted())
((ObListGui)m_guiCtrl).addItems(m_valuePairs.toAArraySorted());
else
((ObListGui)m_guiCtrl).addItems(m_valuePairs.toAArray());
}
ObLogicalEvents
package ObRun.ObPanel.ObCtrlData;
ObMenubarData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObMenubarGui;
ObMenuData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObMenuGui;
ObMenuitemData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObMenuitemGui;
ObMultilineEditData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui;
ObPasswordData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObPasswordGui;
ObPictureData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObPictureGui;
ObPushbuttonData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObPushbuttonGui;
ObRadiobuttonData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObRadiobuttonGui;
public ObRadiobuttonData()
{
m_valuePairs = new ObValuePairList();
}
ObSeparatorData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObSeparatorGui;
ObSpinData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObSpinGui;
ObStaticData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObStaticGui;
ObStatusbarData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObStatusbarGui;
ObToolbarbuttonData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObToolbarbuttonGui;
ObToolbarData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObToolbarGui;
ObTopAppData
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObFunction.ObPanel;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObTopAppGui;
getWindowGui().setEnabled(flag);
}
ObUserAPI
package ObRun.ObPanel.ObCtrlData;
import ObRun.ObFunction.*;
import ObRun.ObRTTypes.*;
import ObRun.ObComms.ObAS400SocketStream;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObWindowGui;
import java.applet.Applet;
import java.applet.AppletContext;
import java.io.PrintStream;
import java.lang.reflect.Method;
import java.net.URL;
public static void callMethod(String string1, String string2, Object object1, Object object2)
{
if (string1 == null || string2 == null || object1 == null || object2 == null)
return;
ObCtrlData obCtrlData = getCurrentPanel().getCompByName(string1);
if (obCtrlData == null)
return;
Object aobject[] = new Object[2];
aobject[0] = object1;
aobject[1] = object2;
aobject[0] = getPlexBasicType(object1);
aobject[1] = getPlexBasicType(object2);
executeMethod(obCtrlData, string2, aobject);
}
else if (class.toString().equals("char"))
object2 = new Character(object1.toString().charAt(0));
else if (class.toString().equals("short"))
object2 = new Short(object1.toString());
else if (class.toString().equals("int"))
object2 = new Integer(object1.toString());
else if (class.toString().equals("long"))
object2 = new Long(object1.toString());
else if (class.toString().equals("float"))
object2 = new Float(object1.toString());
else if (class.toString().equals("double"))
object2 = new Double(object1.toString());
return object2;
}
else if (aclass[j].toString().equals("double"))
aobject[j] = new Double(aobject[j].toString());
}
}
try
{
amethod[i].invoke(obCtrlData.getGuiCtrl().getComponent(), aobject);
}
catch (Exception e4)
{
e4.printStackTrace();
}
}
catch (Exception e3)
{
e3.printStackTrace();
}
}
}
}
catch (Exception e2)
{
e2.printStackTrace();
}
}
((ObLongFld)object1).fromString(object2.toString());
else if (object1 instanceof ObSglFld)
((ObSglFld)object1).fromString(object2.toString());
else if (object1 instanceof ObTimeFld)
((ObTimeFld)object1).fromString(object2.toString());
else if (object1 instanceof ObTimeStampFld)
((ObTimeStampFld)object1).fromString(object2.toString());
}
catch (NoSuchMethodException e1)
{
System.out.println(string2 + " not supported.");
}
catch (Exception e2)
{
e2.printStackTrace();
}
}
obWindowData = getCurrentPanel();
else
obWindowData = local.getPanel().getPanelData();
}
else
{
local = ObApplication.findCallMgr().findFunction(obCharFld1.toString());
obWindowData = local.getPanel().getPanelData();
}
if (obWindowData != null)
{
local = obWindowData.getLogicalEventID(new String(obCharFld2.toString()));
if (local != 0)
{
obWindowData.testLogicalEvent(local);
return new ObCharFld("");
}
}
return new ObCharFld("*Not Found");
}
ObValuePairList
package ObRun.ObPanel.ObCtrlData;
import java.util.Enumeration;
import java.util.Vector;
public ObValuePairList()
{
m_pairs = new Vector(10);
}
m_pairs = null;
}
m_pairs.removeElement(obValuePairList$ObValuePair);
}
}
}
}
catch (Exception e)
{
}
return aobject;
}
ObValuePairList$ObValuePair
package ObRun.ObPanel.ObCtrlData;
ObWindowData
package ObRun.ObPanel.ObCtrlData;
import java.awt.*;
import java.util.*;
import ObRun.ObFunction.ObFunction;
import ObRun.ObFunction.ObPanel;
import ObRun.ObPanel.ObCtrlGui.ObCtrlGui;
import ObRun.ObPanel.ObCtrlGui.ObWindowGui;
import ObRun.ObRTTypes.ObField;
import [Ljava.lang.reflect.Method;;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.lang.reflect.Method;
import javax.swing.KeyStroke;
int m_lastEvt;
return (ObCtrlData)m_compByID.get(integer);
}
{
return m_height;
}
else
((ObWindowGui)getGuiCtrl()).setChildPosition(obCtrlGui, dimension.width - (m_width
- rectangle1.x - rectangle1.width) - rectangle1.width, rectangle1.y);
obCtrlGui.getComponent().invalidate();
}
}
if (obCtrlGui.isFixBottom())
{
Rectangle rectangle2 = ((ObWindowGui)getGuiCtrl()).getChildConstraints(obCtrlGui);
if (rectangle2 != null)
{
if (obCtrlGui.isFixTop())
((ObWindowGui)getGuiCtrl()).setChildSize(obCtrlGui, rectangle2.width,
dimension.height - rectangle2.y - (m_height - rectangle2.y - rectangle2.height));
else
((ObWindowGui)getGuiCtrl()).setChildPosition(obCtrlGui, rectangle2.x,
dimension.height - (m_height - rectangle2.y - rectangle2.height) - rectangle2.height);
obCtrlGui.getComponent().invalidate();
}
}
}
m_width = dimension.width;
m_height = dimension.height;
}
m_title = string;
}
{
getPanel().getOwner().setCurrentAction(i);
getPanel().getOwner().eventsHandler();
getPanel().getOwner().setCurrentAction(0);
}
}
ObCtrlGui
ObBackgroundPanel
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.JComponent;
import javax.swing.JPanel;
int i2 = 0;
for (i2 = 0; i2 <= j1; i2++)
{
int j2 = 0;
int k2 = 0;
for (j2 = 0; j2 <= i1; j2++)
{
g.drawImage(m_guiObject.m_backImage, k2, k1, this);
k2 += m_imageWidth;
}
k1 += m_imageHeight;
}
}
super.paint(g);
}
}
ObBaseGridEditorDelegate
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.util.EventObject;
ObBasicTreeCellRenderer
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.JComponent;
import javax.swing.JLabel;
ObBeanGui
package ObRun.ObPanel.ObCtrlGui;
import java.applet.Applet;
import java.awt.Component;
import java.awt.SystemColor;
import java.lang.reflect.Method;
ObButton
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import javax.swing.plaf.basic.BasicGraphicsUtils;
{
case 0:
i2 = k + (dimension.height - m_parent.getTextLines().length * j1) / 2;
break;
case 3:
i2 = k + (dimension.height - m_parent.getTextLines().length * j1);
break;
default:
i2 = k;
break;
}
for (int j2 = 0; j2 < m_parent.getTextLines().length; )
{
Insets insets = jButton.getInsets();
switch (jButton.getHorizontalTextPosition())
{
case 0:
i1 = (dimension.width - fontMetrics.stringWidth(m_parent.getTextLines()[j2])) / 2;
break;
case 4:
i1 = dimension.width - insets.right - fontMetrics.stringWidth(m_parent.getTextLines()
[j2]);
break;
default:
i1 = insets.left;
break;
}
if (jButton.isEnabled())
BasicGraphicsUtils.drawString(g, m_parent.getTextLines()[j2], jButton.getMnemonic(),
i1, i2);
else
{
g.setColor(jButton.getBackground().brighter());
BasicGraphicsUtils.drawString(g, m_parent.getTextLines()[j2], jButton.getMnemonic(),
i1, i2);
g.setColor(jButton.getBackground().darker());
ObCheckboxGridEditorDelegate
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.awt.AWTEvent;
import java.awt.Component;
import java.util.EventObject;
if (object == null)
((JCheckBox)m_editor.getComponent()).setSelected(false);
else if (object instanceof Boolean)
((JCheckBox)m_editor.getComponent()).setSelected(((Boolean)object).booleanValue());
else if (object instanceof String)
{
Boolean boolean = new Boolean((String)object);
((JCheckBox)m_editor.getComponent()).setSelected(boolean.booleanValue());
}
else
((JCheckBox)m_editor.getComponent()).setSelected(false);
m_editor.m_dataCtrl.setIgnoreEvents(false);
}
ObCheckboxGui
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import ObRun.ObPanel.ObCtrlData.ObCheckboxData;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.awt.Component;
import java.awt.SystemColor;
public ObCheckboxGui()
{
m_checkedValue = null;
m_uncheckedValue = null;
m_ctrl = new JCheckBox();
m_ctrl.setBackground(SystemColor.control);
((JCheckBox)m_ctrl).setVerticalAlignment(0);
((JCheckBox)m_ctrl).setHorizontalAlignment(2);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
m_focusListener = true;
}
}
{
m_checkedValue = null;
m_uncheckedValue = null;
super.clearReferences();
}
else
super.setBackgroundColor(string);
((JCheckBox)m_ctrl).setOpaque(true);
}
super.setFixTop(string);
}
((JCheckBox)m_ctrl).setEnabled(true);
}
((JCheckBox)m_ctrl).setText(string2);
}
ObCheckBoxTreeCellRenderer
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.JCheckBox;
import javax.swing.JComponent;
ObClockTick
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
ObClockTick(ObWindowGui obWindowGui)
{
m_panelGui = null;
m_panelGui = obWindowGui;
}
ObColumnHeadingGui
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.awt.Component;
public ObColumnHeadingGui()
{
m_value = null;
m_width = -1;
m_column = -1;
m_visible = true;
m_ctrl = null;
}
ObComboGridEditorDelegate
package ObRun.ObPanel.ObCtrlGui;
import java.awt.AWTEvent;
import java.awt.Component;
import java.util.EventObject;
import javax.swing.JComboBox;
else
return false;
}
ObComboGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObComboData;
import javax.swing.JComboBox;
import javax.swing.JComponent;
public ObComboGui()
{
m_sorted = false;
m_ctrl = new JComboBox();
m_ctrl.setBackground(SystemColor.window);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
Component acomponent[] = ((JComboBox)m_ctrl).getComponents();
for (int i = 0; i < acomponent.length; i++)
acomponent[i].addFocusListener(this);
m_focusListener = true;
}
}
else if (string.compareTo("Indented") == 0)
object = new BevelBorder(1, Color.white, new Color(128, 128, 128));
else if (string.compareTo("Extruded") == 0)
object = new BevelBorder(0, Color.white, new Color(128, 128, 128));
else if (string.compareTo("Bump") == 0)
object = new EtchedBorder(Color.white, new Color(128, 128, 128));
((JComboBox)m_ctrl).setBorder(object);
}
string = string.toUpperCase();
if (string.compareTo("YES") == 0)
((JComboBox)m_ctrl).setVisible(true);
else
((JComboBox)m_ctrl).setVisible(false);
}
}
ObCtrlGui
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObFunction.*;
import ObRun.ObPanel.ObCtrlData.*;
import ObRun.ObRTTypes.*;
import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import javax.swing.text.*;
import ObRun.ObEnvironment.ObLog;
import [Ljava.lang.String;;
import java.io.PrintStream;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.net.URL;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
boolean m_mouseMotionListener;
boolean m_windowListener;
boolean m_itemListener;
boolean m_textListener;
boolean m_listDataListener;
boolean m_modifiedEvent;
boolean m_actionListener;
boolean m_propertyChangeListener;
boolean m_vetoableChangeListener;
protected String m_ctrlName;
protected ObColumnHeadingGui m_columnHeading;
protected Component m_renderer;
protected ObGridCellEditor m_editor;
protected String m_initialValue;
protected ObClientApp m_clientApp;
protected boolean m_inApplet;
protected ObTabSequence m_tab;
protected boolean m_tabStop;
protected boolean m_fixLeft;
protected boolean m_fixRight;
protected boolean m_fixTop;
protected boolean m_fixBottom;
protected int m_leftMenuID;
protected int m_rightMenuID;
public static final byte MIXED = 0;
public static final byte UPPER = 1;
public static final byte LOWER = 2;
public static final byte UNINITIALIZED = 0;
public static final byte CHAR = 1;
public static final byte NUMERIC = 2;
public static final byte NUMERIC_NO_DECIMALS = 3;
public static final byte DATE = 4;
public static final byte TIME = 5;
public static final byte TIMESTAMP = 6;
protected boolean m_mousePressedMapped;
protected static SystemColor m_javaCol[];
private Cursor m_handCursor;
static
{
public ObCtrlGui()
{
m_dataCtrl = null;
m_ctrl = null;
m_children = new Vector(20);
m_parent = null;
m_panel = null;
m_document = null;
m_componentListener = false;
m_focusListener = false;
m_keyListener = false;
m_mouseListener = false;
m_mouseMotionListener = false;
m_windowListener = false;
m_itemListener = false;
m_textListener = false;
m_listDataListener = false;
m_modifiedEvent = false;
m_actionListener = false;
m_propertyChangeListener = false;
m_vetoableChangeListener = false;
m_ctrlName = null;
m_columnHeading = null;
m_renderer = null;
m_editor = null;
m_initialValue = null;
m_clientApp = null;
m_inApplet = false;
m_tab = null;
m_tabStop = true;
m_fixLeft = true;
m_fixRight = false;
m_fixTop = true;
m_fixBottom = false;
m_leftMenuID = 0;
m_rightMenuID = 0;
m_mousePressedMapped = false;
m_handCursor = Cursor.getPredefinedCursor(12);
m_clientApp = (ObClientApp)ObApplication.findApp();
m_inApplet = ObApplication.isApplet();
}
((ItemSelectable)m_ctrl).removeItemListener(this);
if (m_ctrl != null && m_windowListener && (!m_inApplet || m_inApplet &&
ObApplication.useAppletFrame()))
((Window)m_ctrl).removeWindowListener(this);
}
catch (Exception e1)
{
}
try
{
if (m_ctrl != null)
{
((Container)m_ctrl).removeAll();
if (m_document != null)
m_document = null;
}
}
catch (Exception e2)
{
}
try
{
m_ctrl = null;
if (m_children != null)
m_children.removeAllElements();
m_children = null;
m_dataCtrl = null;
m_parent = null;
m_panel = null;
m_clientApp = null;
m_tab = null;
if (m_editor != null)
m_editor.clearReferences();
m_editor = null;
m_renderer = null;
}
catch (Exception e3)
{
}
}
object.add(obCtrlGui$ObPopupItem.getMenuItem());
}
else if (obCtrlGui instanceof ObMenuGui)
{
JMenu jMenu1 = (JMenu)obCtrlGui.getComponent();
JMenu jMenu2 = (JMenu)createPopupMenu(new Integer(string2).intValue(), true);
try
{
jMenu2.setText(jMenu1.getText());
jMenu2.setMnemonic(jMenu1.getMnemonic());
jMenu2.setEnabled(jMenu1.isEnabled());
jMenu2.setVisible(jMenu1.isVisible());
jMenu2.setToolTipText(jMenu1.getToolTipText());
}
catch (Exception e)
{
}
object.add(jMenu2);
}
else
object.add(obCtrlGui.getComponent());
}
return object;
}
if (string2.length() < 1)
return string1;
StringBuffer stringBuffer1 = new StringBuffer(string1);
StringBuffer stringBuffer2 = new StringBuffer(string2);
StringBuffer stringBuffer3 = new StringBuffer();
if (stringBuffer1.length() > 0)
{
i = 0;
for (j = 0; i < stringBuffer2.length() && j < stringBuffer1.length(); i++)
{
if (stringBuffer2.charAt(i) == 35)
{
if (Character.isDigit(stringBuffer1.charAt(j)))
stringBuffer3.append(stringBuffer1.charAt(j));
else
i--;
}
else if (stringBuffer2.charAt(i) == 64)
{
if (Character.isLetter(stringBuffer1.charAt(j)) ||
Character.isSpaceChar(stringBuffer1.charAt(j)))
stringBuffer3.append(stringBuffer1.charAt(j));
else
i--;
}
else if (stringBuffer2.charAt(i) == 33)
{
k = Character.getType(stringBuffer1.charAt(j));
if (k == 23 || k == 20 || k == 22 || k == 24 || k == 21 || k == 7)
stringBuffer3.append(stringBuffer1.charAt(j));
else
i--;
}
else if (stringBuffer2.charAt(i) == 42)
stringBuffer3.append(stringBuffer1.charAt(j));
else
{
stringBuffer3.append(stringBuffer2.charAt(i));
j--;
}
j++;
}
}
return stringBuffer3.toString();
}
else
return null;
}
catch (Exception e2)
{
e2.printStackTrace();
}
return null;
}
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObFixedDecFld"))
{
ObFixedDecFld obFixedDecFld = new ObFixedDecFld(string1);
if (obFixedDecFld != null)
return new String(decimalFormat.format(obFixedDecFld.getValue().doubleValue()));
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObIntFld"))
{
ObIntFld obIntFld = new ObIntFld(string1);
if (obIntFld != null)
return new String(decimalFormat.format(obIntFld.getData()));
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObLongFld"))
{
ObLongFld obLongFld = new ObLongFld(string1);
if (obLongFld != null)
return new String(decimalFormat.format(obLongFld.getData()));
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObLongDblFld"))
{
ObLongDblFld obLongDblFld = new ObLongDblFld(string1);
if (obLongDblFld != null)
return new String(decimalFormat.format(obLongDblFld.getData()));
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObSglFld"))
{
ObSglFld obSglFld = new ObSglFld(string1);
if (obSglFld != null)
return new String(decimalFormat.format(obSglFld.getData()));
else
return null;
}
}
catch (Exception e2)
{
}
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObFixedDecFld"))
{
ObFixedDecFld obFixedDecFld = new ObFixedDecFld(decimalFormat.parse(string1, new
ParsePosition(0)).toString());
if (obFixedDecFld != null)
return new String(obFixedDecFld.toString());
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObIntFld"))
{
ObIntFld obIntFld = new ObIntFld(decimalFormat.parse(string1, new
ParsePosition(0)).toString());
if (obIntFld != null)
return new String(obIntFld.toString());
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObLongFld"))
{
ObLongFld obLongFld = new ObLongFld(decimalFormat.parse(string1, new
ParsePosition(0)).toString());
if (obLongFld != null)
return new String(obLongFld.toString());
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObLongDblFld"))
{
ObLongDblFld obLongDblFld = new ObLongDblFld(decimalFormat.parse(string1, new
ParsePosition(0)).toString());
if (obLongDblFld != null)
return new String(obLongDblFld.toString());
else
return null;
}
if (string3.equals("ObRun.ObRTTypes.ObSglFld"))
{
ObSglFld obSglFld = new ObSglFld(decimalFormat.parse(string1, new
ParsePosition(0)).toString());
if (obSglFld != null)
if (string1.length() < 1)
return null;
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat();
if (string2.indexOf(97) != -1 && string1.indexOf(97) == -1 && string1.indexOf(65) == -1 &&
string1.indexOf(112) == -1 && string1.indexOf(80) == -1)
string1 = new StringBuffer(String.valueOf(string1)).append(" AM").toString();
if (string2.indexOf(97) != -1 && string1.indexOf(109) == -1 && string1.indexOf(77) == -1)
string1 = new StringBuffer(String.valueOf(string1)).append("M").toString();
simpleDateFormat1.setLenient(false);
try
{
simpleDateFormat1.applyPattern(string2);
}
catch (IllegalArgumentException e1)
{
Object aobject1[] = { string2, new Integer(getData().getID()) };
ObApplication.log(2, ObApplication.getResString("EditMaskInvalid"), aobject1);
}
SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("HH:mm:ss");
try
{
Date date = simpleDateFormat1.parse(string1, new ParsePosition(0));
if (date != null)
return new String(simpleDateFormat2.format(date));
Object aobject2[] = { string2, string1 };
ObApplication.log(2, ObApplication.getResString("ValueInvalidForMask"), aobject2);
return null;
}
catch (Exception e2)
{
e2.printStackTrace();
}
return null;
}
simpleDateFormat1.applyPattern(string2);
}
catch (IllegalArgumentException e1)
{
Object aobject[] = { string2, new Integer(getData().getID()) };
ObApplication.log(2, ObApplication.getResString("EditMaskInvalid"), aobject);
}
SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
try
{
string1 = string1.replace('-', '/');
Date date = simpleDateFormat2.parse(string1, new ParsePosition(0));
if (date != null)
return new String(simpleDateFormat1.format(date));
else
return null;
}
catch (Exception e2)
{
e2.printStackTrace();
}
return null;
}
if (obField == null)
return "";
if (this instanceof ObComboGui)
{
Object object1 = ((ObComboData)getData()).getAValue(obField);
if (object1 != null)
return object1.toString();
else
return "";
}
if (this instanceof ObCheckboxGui)
{
Object object2 = ((ObCheckboxData)getData()).getAValue(obField);
if (object2 != null)
return object2.toString();
else
return "";
}
if (obField != null)
return obField.toString();
else
return "";
}
return 10;
if (string.equals("Esc"))
return 27;
if (string.equals("Ins"))
return 155;
if (string.equals("Page Down"))
return 34;
if (string.equals("Page Up"))
return 33;
else
return 0;
}
i++;
}
}
return astring;
}
m_renderer.setFont(loadFont(string;[0]));
else if (string.equals("setDisabled"))
setRendererDisabled(string;[0]);
}
}
}
if (jTable.getEditingRow() == i && jTable.getEditingColumn() == j)
{
((ObGridGui)getParent()).setGridRowSel(jTable.getEditingRow());
((ObGridGui)getParent()).setGridColumnSel(jTable.getEditingColumn());
}
if (flag1)
{
m_renderer.setBackground(jTable.getSelectionBackground());
if (this instanceof ObPictureGui)
m_renderer.setForeground(jTable.getSelectionBackground());
else
m_renderer.setForeground(jTable.getSelectionForeground());
}
return m_renderer;
}
if (m_columnHeading == null)
return false;
else
return true;
}
return m_modifiedEvent;
}
flag =
((ObGridGui)m_parent).getGrid().editCellAt(((ObGridGui)m_parent).getGrid().getSelectedRow(),
((ObGridGui)m_parent).getGrid().getSelectedColumn());
if (flag)
((ObGridGui)m_parent).getGrid().getEditorComponent().requestFocus();
keyEvent.consume();
}
else if (this instanceof ObGridGui)
{
((ObGridGui)this).getGrid().setRowSelectionInterval(((ObGridGui)this).getGrid().getSelected
Row(), ((ObGridGui)this).getGrid().getSelectedRow());
((ObGridGui)this).getGrid().setColumnSelectionInterval(((ObGridGui)this).getGrid().getSelec
tedColumn(), ((ObGridGui)this).getGrid().getSelectedColumn());
((ObGridGui)this).getGrid().requestFocus();
flag = ((ObGridGui)this).getGrid().editCellAt(((ObGridGui)this).getGrid().getSelectedRow(),
((ObGridGui)this).getGrid().getSelectedColumn());
if (flag)
((ObGridGui)this).getGrid().getEditorComponent().requestFocus();
}
else if (m_tab != null)
{
ObTabSequence obTabSequence = null;
if (keyEvent.isShiftDown())
obTabSequence =
((ObWindowGui)getData().getPanel().getGuiCtrl()).getPreviousTabSequence(m_tab);
else
obTabSequence =
((ObWindowGui)getData().getPanel().getGuiCtrl()).getNextTabSequence(m_tab);
ObCtrlGui obCtrlGui = getData().getPanel().getCompByID(new
Integer(obTabSequence.m_guiId)).getGuiCtrl();
if (obCtrlGui instanceof ObMultilineEditGui)
((ObMultilineEditGui)obCtrlGui).getEditControl().requestFocus();
else if (obCtrlGui instanceof ObSpinGui)
((ObSpinGui)obCtrlGui).getEditControl().requestFocus();
else if (obCtrlGui instanceof ObListGui)
((ObListGui)obCtrlGui).getListControl().requestFocus();
else
obCtrlGui.m_ctrl.requestFocus();
keyEvent.consume();
}
}
{
getData().testEvent(keyEvent.getID());
}
string4 = stringTokenizer.nextToken();
if (string4.endsWith("/") || string4.endsWith("\\"))
uRL2 = new URL(new
StringBuffer(String.valueOf(string4)).append(string1).toString());
else
uRL2 = new URL(System.getProperty("file.separator") + string1);
if (uRL2 != null)
{
imageIcon = new ImageIcon(uRL2);
if (imageIcon.getImageLoadStatus() == 8)
return imageIcon;
}
}
}
}
catch (Exception e)
{
e.printStackTrace();
}
return imageIcon;
}
case 504:
case 505:
if (!m_mouseListener)
{
m_ctrl.addMouseListener(this);
m_mouseListener = true;
}
break;
case 503:
case 506:
if (!m_mouseMotionListener)
{
m_ctrl.addMouseMotionListener(this);
m_mouseMotionListener = true;
}
break;
case 100:
case 101:
case 102:
case 103:
if (!m_componentListener)
{
m_ctrl.addComponentListener(this);
m_componentListener = true;
}
break;
case 1004:
case 1005:
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
if (this instanceof ObComboGui)
{
Component acomponent1[] = ((JComboBox)m_ctrl).getComponents();
for (int j = 0; j < acomponent1.length; j++)
acomponent1[j].addFocusListener(this);
}
m_focusListener = true;
}
break;
case 400:
case 401:
case 402:
if (!m_keyListener)
{
m_ctrl.addKeyListener(this);
if (this instanceof ObComboGui)
{
Component acomponent2[] = ((JComboBox)m_ctrl).getComponents();
for (int k = 0; k < acomponent2.length; k++)
acomponent2[k].addKeyListener(this);
}
m_keyListener = true;
}
break;
case 1:
case 2:
case 701:
if (!m_itemListener && m_ctrl instanceof ItemSelectable)
{
((ItemSelectable)m_ctrl).addItemListener(this);
m_itemListener = true;
}
break;
case 900:
if (!m_textListener && m_ctrl instanceof TextComponent)
{
((TextComponent)m_ctrl).addTextListener(this);
m_textListener = true;
}
break;
case 1040:
setInitialValue();
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
if (this instanceof ObComboGui)
{
Component acomponent3[] = ((JComboBox)m_ctrl).getComponents();
for (int i2 = 0; i2 < acomponent3.length; i2++)
acomponent3[i2].addFocusListener(this);
}
m_focusListener = true;
}
break;
case 1050:
if (!m_mouseListener)
{
m_ctrl.addMouseListener(this);
m_mouseListener = true;
}
break;
case 1030:
if (!m_itemListener && m_ctrl instanceof ItemSelectable)
{
((ItemSelectable)m_ctrl).addItemListener(this);
m_itemListener = true;
}
m_modifiedEvent = true;
break;
case 1060:
Timer timer = new Timer(250, new ObClockTick(getPanel()));
timer.start();
break;
case 1120:
case 1130:
if (!m_windowListener)
m_windowListener = true;
break;
case 1140:
if (!m_propertyChangeListener)
{
Object aobject1[] = new Object[1];
aobject1[0] = this;
Class aclass1[] = new Class[1];
try
{
aclass1[0] = Class.forName("java.beans.PropertyChangeListener");
}
catch (ClassNotFoundException e3)
{
e3.printStackTrace();
}
catch (Exception e4)
{
e4.printStackTrace();
}
String string1 = "addPropertyChangeListener";
try
{
Method method1 = m_ctrl.getClass().getMethod(string1, aclass1);
method1.invoke(m_ctrl, aobject1);
}
catch (NoSuchMethodException e1)
{
System.out.println(string1 + " not supported.");
}
catch (Exception e7)
{
e7.printStackTrace();
}
}
m_propertyChangeListener = true;
break;
case 1150:
if (!m_vetoableChangeListener)
{
Object aobject2[] = new Object[1];
aobject2[0] = this;
Class aclass2[] = new Class[1];
try
{
aclass2[0] = Class.forName("java.beans.VetoableChangeListener");
}
catch (ClassNotFoundException e5)
{
e5.printStackTrace();
}
catch (Exception e6)
{
e6.printStackTrace();
}
String string2 = "addVetoableChangeListener";
try
{
Method method2 = m_ctrl.getClass().getMethod(string2, aclass2);
method2.invoke(m_ctrl, aobject2);
}
catch (NoSuchMethodException e2)
{
System.out.println(string2 + " not supported.");
}
catch (Exception e8)
{
e8.printStackTrace();
}
}
m_vetoableChangeListener = true;
break;
}
}
{
m_children.removeElement(obCtrlGui);
}
i1++;
string1 = string1.replace('-', '/');
string1 = string1.replace('m', 'M');
if (string1.indexOf("MM") == -1)
i1++;
if (string1.indexOf("ddd") != -1)
string1 = string1.replace('d', 'E');
if (string1.indexOf("dd") == -1)
i1++;
}
else if (ObCtrlData.whatEditType(string2) == 5)
{
m_document = new ObCtrlGui$ObTimeDocument();
((JTextField)m_ctrl).setDocument(m_document);
i1 = false;
if (string1 == null || string1.length() == 0)
string1 = ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".DefaultTimeMask");
for (int j2 = 0; j2 < string1.length(); j2++)
i1++;
if (string1.indexOf(65) != -1)
string1 = string1.replace('A', 'a');
if (string1.indexOf(80) != -1)
string1 = string1.replace('P', 'p');
if (string1.indexOf(112) != -1)
string1 = new StringBuffer(String.valueOf(string1.substring(0,
string1.indexOf(112)))).append(string1.substring(string1.indexOf(112) + 1)).toString();
if (string1.indexOf(97) == -1)
string1 = string1.replace('h', 'H');
else
i1++;
string1 = string1.replace('f', 'S');
if (string1.indexOf("HH") == -1 && string1.indexOf("hh") == -1)
i1++;
}
else if (ObCtrlData.whatEditType(string2) == 6)
{
m_document = new ObCtrlGui$ObTimeStampDocument();
((JTextField)m_ctrl).setDocument(m_document);
i1 = false;
if (string1 == null || string1.length() == 0)
string1 = ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".DefaultTimeStampMask");
for (int k2 = 0; k2 < string1.length(); k2++)
i1++;
string1 = string1.replace('-', '/');
if (string1.indexOf(65) != -1)
string1 = string1.replace('A', 'a');
if (string1.indexOf(80) != -1)
string1 = string1.replace('P', 'p');
if (string1.indexOf(112) != -1)
string1 = new StringBuffer(String.valueOf(string1.substring(0,
string1.indexOf(112)))).append(string1.substring(string1.indexOf(112) + 1)).toString();
if (string1.indexOf(97) == -1)
string1 = string1.replace('h', 'H');
else
i1++;
string1 = string1.replace('f', 'S');
StringBuffer stringBuffer = new StringBuffer(string1);
for (int k3 = 0; k3 < string1.indexOf(" "); k3++)
if (stringBuffer.charAt(k3) == 109)
stringBuffer.setCharAt(k3, 'M');
string1 = stringBuffer.toString();
if (string1.indexOf("MM") == -1)
i1++;
if (string1.indexOf("ddd") != -1)
string1 = string1.replace('d', 'E');
if (string1.indexOf("dd") == -1)
i1++;
if (string1.indexOf("HH") == -1 && string1.indexOf("hh") == -1)
i1++;
}
else
{
try
{
i1 = getData().getField().getCLength() - 1;
}
catch (Exception e)
{
i1 = false;
}
}
setValidationMembers(i1, j1, string1, color1, color2);
}
}
else if (obCtrlGui.getComponent().isFocusTraversable())
obCtrlGui.getComponent().requestFocus();
}
{
Integer ainteger[] = getIntegers(string);
getPanel().setChildPosition(this, ainteger[0].intValue(), ainteger[1].intValue());
}
if (string.indexOf(40) != -1 || ainteger.length == 1)
{
try
{
m_renderer.setForeground(m_javaCol[ainteger[0].intValue()]);
}
catch (Exception e)
{
}
}
else
m_renderer.setForeground(new Color(ainteger[0].intValue(), ainteger[1].intValue(),
ainteger[2].intValue()));
}
protected void setValidationMembers(int i, int j, String string, Color color1, Color color2)
{
}
getData().testEvent(textEvent.getID());
}
protected void validateCharacterEntry(String string1, String string2, KeyEvent keyEvent, int i, int j,
String string3)
{
if (string1.length() + 1 > i && string3 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
}
protected void validateDateEntry(String string1, String string2, KeyEvent keyEvent, int i, int j,
String string3)
{
if (string1.length() + 1 > i && string3 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
Character character = null;
if (j < string2.length())
character = new Character(string2.charAt(j));
if (character != null && character.charValue() != keyEvent.getKeyChar() && character.charValue() !=
71 && character.charValue() != 121 && character.charValue() != 77 && character.charValue() != 100 &&
character.charValue() != 69 && character.charValue() != 68 && character.charValue() != 70 &&
character.charValue() != 119 && character.charValue() != 87)
{
try
{
((JTextField)m_ctrl).getDocument().insertString(((JTextField)m_ctrl).getDocument().getEndPo
sition().getOffset() - 1, character.toString(), null);
character = new Character(string2.charAt(j + 1));
}
catch (Exception e)
{
}
}
}
protected void validateNumericEntry(String string1, int i, int j, KeyEvent keyEvent, int k, String
string2)
{
double d = 0.0;
StringBuffer stringBuffer = new StringBuffer(string1);
stringBuffer.insert(k, keyEvent.getKeyChar());
try
{
if (keyEvent.getKeyChar() != 8 && !keyEvent.isControlDown())
d = new Double(stringBuffer.toString()).doubleValue();
}
catch (Exception e1)
{
}
if (d == 0.0 && keyEvent.getKeyChar() != 45 && keyEvent.getKeyChar() != 46 && string1.indexOf(".")
== -1)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
else
{
String string3 = stringBuffer.toString();
if (countDecimalDigits(string3) > i)
{
if (j != 0 && string1.indexOf(46) == -1)
{
try
{
((JTextField)m_ctrl).getDocument().insertString(((JTextField)m_ctrl).getDocument().
getEndPosition().getOffset() - 1, ".", null);
}
catch (Exception e2)
{
}
}
else if (string2 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
}
if (j > 0 && countFractionalDigits(string3) > j && string2 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
if (j == 0 && keyEvent.getKeyChar() == 46)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
}
}
protected void validateTimeEntry(String string1, String string2, KeyEvent keyEvent, int i, int j,
String string3)
{
if (string1.length() + 1 > i && string3 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
Character character = null;
if (j < string2.length())
character = new Character(string2.charAt(j));
if (character != null && character.charValue() != keyEvent.getKeyChar())
{
if (character.charValue() != 115 && character.charValue() != 83 && character.charValue() != 104
&& character.charValue() != 72 && character.charValue() != 109 && character.charValue() != 97 &&
character.charValue() != 107 && character.charValue() != 75 && character.charValue() != 122)
{
try
{
((JTextField)m_ctrl).getDocument().insertString(((JTextField)m_ctrl).getDocument().getE
ndPosition().getOffset() - 1, character.toString(), null);
character = new Character(string2.charAt(j + 1));
}
catch (Exception e)
{
}
}
protected void validateTimeStampEntry(String string1, String string2, KeyEvent keyEvent, int i, int j,
String string3)
{
if (string1.length() + 1 > i && string3 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
Character character = null;
if (j < string2.length())
character = new Character(string2.charAt(j));
if (character != null && character.charValue() != keyEvent.getKeyChar())
{
if (character.charValue() != 71 && character.charValue() != 121 && character.charValue() != 77
&& character.charValue() != 100 && character.charValue() != 69 && character.charValue() != 68 &&
character.charValue() != 70 && character.charValue() != 119 && character.charValue() != 87 &&
character.charValue() != 115 && character.charValue() != 83 && character.charValue() != 104 &&
character.charValue() != 72 && character.charValue() != 109 && character.charValue() != 97 &&
character.charValue() != 107 && character.charValue() != 75 && character.charValue() != 122)
{
try
{
((JTextField)m_ctrl).getDocument().insertString(((JTextField)m_ctrl).getDocument().getE
ndPosition().getOffset() - 1, character.toString(), null);
character = new Character(string2.charAt(j + 1));
}
catch (Exception e)
{
}
}
if (character.charValue() == 97 && isDigit(keyEvent.getKeyChar()))
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
}
}
}
catch (Exception e)
{
}
}
ObCtrlGui$1
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
ObCtrlGui$1(ObCtrlGui$ObPopupItem obCtrlGui$ObPopupItem)
{
}
ObCtrlGui$ObDateDocument
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.text.*;
import java.awt.Toolkit;
ObCtrlGui$ObLowerCaseDocument
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.text.*;
ObCtrlGui$ObNumericDocument
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.text.*;
import java.awt.Toolkit;
ObCtrlGui$ObPopupItem
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import java.awt.Component;
ObCtrlGui$ObTimeDocument
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.text.*;
import java.awt.Toolkit;
}
}
}
ObCtrlGui$ObTimeStampDocument
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.text.*;
import java.awt.Toolkit;
}
}
}
ObCtrlGui$ObUpperCaseDocument
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.text.*;
ObDialogGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import ObRun.ObFunction.ObApplication;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import ObRun.ObPanel.ObPanelUtils.ObXYLayoutManager;
import java.awt.event.WindowEvent;
import javax.swing.JDialog;
import javax.swing.JFrame;
m_ctrl.addComponentListener(this);
m_componentListener = true;
}
if (!m_windowListener)
{
((JDialog)m_ctrl).addWindowListener(this);
m_windowListener = true;
}
}
{
return getFrame().isEnabled();
}
{
getFrame().getContentPane().setLayout(layoutManager);
}
}
catch (Exception e)
{
}
}
}
ObEditGridEditorDelegate
package ObRun.ObPanel.ObCtrlGui;
import java.util.EventObject;
import javax.swing.JTextField;
import javax.swing.text.JTextComponent;
return true;
}
ObEditGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import javax.swing.text.JTextComponent;
public ObEditGui()
{
m_hiliteOnFocus = false;
m_backgroundColor = null;
m_editMask = null;
m_maxLength = 0;
m_maxFractions = 0;
m_positiveColor = null;
m_negativeColor = null;
m_lastString = null;
m_case = 0;
m_fieldDefined = false;
m_ctrl = new JTextField();
m_ctrl.setBackground(SystemColor.window);
m_ctrl.setForeground(SystemColor.windowText);
((JTextField)m_ctrl).setSelectionColor(SystemColor.textHighlight);
((JTextField)m_ctrl).setSelectedTextColor(SystemColor.textHighlightText);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
m_focusListener = true;
}
if (!m_keyListener)
{
m_ctrl.addKeyListener(this);
m_keyListener = true;
}
}
m_backgroundColor = ((JTextField)m_ctrl).getBackground();
if (SystemColor.window.getRed() == Color.white.getRed() && SystemColor.window.getGreen() ==
Color.white.getGreen() && SystemColor.window.getBlue() == Color.white.getBlue())
((JTextField)m_ctrl).setBackground(Color.lightGray);
else
((JTextField)m_ctrl).setBackground(Color.white);
}
if (m_initialValue != null)
setInitialValue();
getData().testEvent(focusEvent.getID());
}
super.keyPressed(keyEvent);
getData().testEvent(keyEvent.getID());
}
m_editMask = null;
else
m_editMask = new String(string);
}
super.setFont(string);
}
protected void setValidationMembers(int i, int j, String string, Color color1, Color color2)
{
m_maxLength = i;
m_maxFractions = j;
m_editMask = string;
if (color1 == null && color2 != null)
color1 = m_ctrl.getForeground();
m_positiveColor = color1;
m_negativeColor = color2;
m_fieldDefined = true;
}
ObGridCellEditor
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import ObRun.ObFunction.ObApplication;
import ObRun.ObFunction.ObClientApp;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.awt.Component;
import java.util.EventObject;
import javax.swing.table.TableCellEditor;
m_editorComponent = (JComponent)obCtrlGui.getComponent();
if (obCtrlGui instanceof ObEditGui)
{
m_clickCountToStart = 2;
m_delegate = new ObEditGridEditorDelegate(this);
((JTextField)m_editorComponent).addActionListener(m_delegate);
}
else if (obCtrlGui instanceof ObCheckboxGui)
{
m_clickCountToStart = 2;
m_delegate = new ObCheckboxGridEditorDelegate(this);
((JCheckBox)m_editorComponent).addActionListener(m_delegate);
}
else if (obCtrlGui instanceof ObComboGui)
{
m_clickCountToStart = 2;
m_delegate = new ObComboGridEditorDelegate(this);
((JComboBox)m_editorComponent).addItemListener(m_delegate);
}
else if (obCtrlGui instanceof ObPasswordGui)
{
m_clickCountToStart = 2;
m_delegate = new ObPasswordGridEditorDelegate(this);
((JPasswordField)m_editorComponent).addActionListener(m_delegate);
}
else if (obCtrlGui instanceof ObPictureGui)
{
m_delegate = new ObPictureGridEditorDelegate(this);
((JButton)m_editorComponent).addActionListener(m_delegate);
}
m_editorComponent.addFocusListener(this);
}
{
m_delegate.cancelCellEditing();
fireEditingCanceled();
}
public Component getTableCellEditorComponent(JTable jTable, Object object, boolean flag, int i, int j)
{
m_delegate.setValue(object);
return m_editorComponent;
}
{
m_clickCountToStart = i;
}
ObGridCellEditor$ObMouseAdapter
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.MouseAdapter;
ObGridCellEditor$ObMouseAdapter(ObGridCellEditor obGridCellEditor)
{
}
}
ObGridGui
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObPanel.ObCtrlData.*;
import java.awt.*;
import java.util.*;
import javax.swing.*;
import javax.swing.table.*;
import ObRun.ObRTTypes.ObField;
import java.awt.event.MouseEvent;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
public ObGridGui()
{
m_model = null;
m_grid = null;
m_complete = false;
m_gridend = true;
m_justCleared = false;
m_accessMode = 0;
m_renderersEditors = new Vector();
m_pageSize = 0;
m_GridInitialHeight = 0;
m_font = null;
m_sortable = false;
m_sortMode = null;
m_fieldTypes = null;
m_fieldCount = 0;
m_readOnly = true;
m_currentRow = 0;
m_currentRowCount = 0;
m_gridRowSel = -1;
m_gridColumnSel = -1;
m_inForLoop = false;
m_paging = -1;
m_ignoreEvents = false;
m_lastEdited = null;
m_fireChanged = false;
m_headingListener = null;
m_model = new ObGridModel(this);
m_grid = new JTable(m_model);
m_ctrl = new JScrollPane(m_grid);
m_grid.setAutoResizeMode(0);
m_grid.setRowSelectionAllowed(true);
case 5:
resetSortModes();
m_model.addRow(m_cells);
populateGridFromFields();
break;
case 4:
resetSortModes();
m_model.rowAddComplete();
if (m_grid.getSelectedRow() == -1 && m_grid.getRowCount() > 0)
m_grid.addRowSelectionInterval(0, 0);
break;
case 3:
setJustCleared(true);
m_model.clear();
break;
}
m_accessMode = 0;
}
{
}
return class;
}
{
m_inForLoop = true;
m_currentRow = m_currentRowCount = 0;
if (m_model.getRowCount() == 0)
{
m_currentRowCount = -1;
return false;
}
m_currentRowCount = m_model.getRowCount();
return true;
}
{
return m_font;
}
return true;
}
m_currentRowCount = -1;
return false;
}
}
else
m_grid.setBackground(new Color(ainteger[0].intValue(), ainteger[1].intValue(),
ainteger[2].intValue()));
}
else
{
m_grid.setEnabled(true);
m_ctrl.setEnabled(true);
}
}
{
m_gridColumnSel = i;
}
super.setLeftContextMenu(string);
}
string = string.toUpperCase();
if (string.compareTo("YES") == 0)
m_sortable = true;
else
m_sortable = false;
}
m_ctrl.setVisible(false);
}
case 1:
setSortMode(2, i);
break;
case 2:
setSortMode(1, i);
break;
}
m_model.sortData(m_sortMode[i], i);
}
{
if (m_grid.getSelectedRowCount() > 0)
{
int an1[] = m_grid.getSelectedRows();
m_currentRow = an1[0];
}
else
m_currentRow = -1;
}
populateControlsFromData();
}
else if (m_accessMode == 8)
{
if (m_inForLoop)
{
if (m_currentRowCount == -1)
{
int an2[] = m_grid.getSelectedRows();
m_currentRow = an2[0];
}
m_model.removeRow(m_currentRow);
for (int i = 0; i < m_children.size(); i++)
{
ObCtrlGui obCtrlGui = (ObCtrlGui)m_children.elementAt(i);
if (!(obCtrlGui instanceof ObColumnHeadingGui))
{
Hashtable hashtable1 = obCtrlGui.getData().getGridRowPropertyTable();
if (hashtable1 != null)
{
hashtable1.remove(new Integer(m_currentRow));
int j = -1;
Integer ainteger[] = new Integer[hashtable1.size()];
for (Enumeration enumeration = hashtable1.keys();
enumeration.hasMoreElements(); )
{
j++;
ainteger[j] = (Integer)enumeration.nextElement();
}
for (int k = 0; k < ainteger.length; k++)
{
if (ainteger[k].intValue() > m_currentRow)
{
Hashtable hashtable2 = (Hashtable)hashtable1.get(ainteger[k]);
hashtable1.remove(ainteger[k]);
if (hashtable2 != null)
hashtable1.put(new Integer(ainteger[k].intValue() - 1), hashtable2);
}
}
}
}
}
m_currentRow--;
m_currentRowCount--;
}
}
else if (m_accessMode == 9)
m_model.useInvisibleImage();
else if (m_accessMode == 10)
m_model.useVisibleImage();
else if (m_accessMode == 11)
setModified(true);
else if (m_accessMode == 12)
setModified(false);
else
{
m_cells = new Vector();
m_cells.setSize(m_grid.getColumnCount());
}
}
ObGridGui$ObGridColumnListener
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.*;
import java.util.Enumeration;
import javax.swing.JTable;
import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;
{
TableColumn tableColumn = (TableColumn)enumeration.nextElement();
if (ObGridGui.access$0(this$0).isColumnResizable(i))
ObGridGui.access$0(this$0).setColumnWidth(i, tableColumn.getWidth());
else
ObGridGui.access$0(this$0).setColumnWidth(i, -1);
i++;
}
}
ObGridGui$ObTableListener
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.awt.Adjustable;
import java.awt.Component;
import javax.swing.JScrollBar;
import javax.swing.JTable;
{
ObGridGui.access$0(m_gui).setPreferredHeadingHeight();
return;
}
int i1 = adjustmentEvent.getValue();
int j1 = m_scroll.getMaximum();
int k1 = m_scroll.getVisibleAmount();
if (i1 + k1 == j1 && m_gui.notifyGridEnd() || i1 + k1 + 1 == j1 && m_gui.notifyGridEnd())
m_gui.getData().testEvent(1000);
if (m_gui.getPaging() != -1)
{
int i2 = m_gui.getGrid().getRowHeight() + m_gui.getGrid().getRowMargin();
int j2 = adjustmentEvent.getValue() / i2;
int k2 = adjustmentEvent.getValue() / i2;
if (m_gui.getPaging() == 33)
{
int i3 = adjustmentEvent.getValue() % i2;
if (i3 > 0 && i3 < i2)
j2++;
}
else
j2 += m_scroll.getVisibleAmount() / i2;
m_gui.getGrid().setRowSelectionInterval(j2, j2);
m_gui.setPaging(-1);
}
}
}
ObGridModel
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import javax.swing.table.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObRTTypes.ObField;
import java.awt.Component;
import java.awt.Dimension;
import java.util.Enumeration;
import java.util.Vector;
import javax.swing.event.TableModelEvent;
import javax.swing.text.JTextComponent;
vector1.addElement(new Boolean(0));
m_invisibleRows.addElement(vector1);
Vector vector2 = (Vector)vector1.clone();
m_visibleRows.addElement(vector2);
}
m_visibleRows.removeAllElements();
}
}
if (tableCellRenderer == null)
{
TableColumn tableColumn1 = getGridControl().getColumnModel().getColumn(j);
tableCellRenderer = m_gui.getRenderer(j);
tableColumn1.setCellRenderer(tableCellRenderer);
}
TableCellEditor tableCellEditor = getGridControl().getColumnModel().getColumn(j).getCellEditor();
if (tableCellEditor == null)
{
TableColumn tableColumn2 = getGridControl().getColumnModel().getColumn(j);
tableCellEditor = m_gui.getEditor(j);
tableColumn2.setCellEditor(tableCellEditor);
}
Vector vector = null;
if (m_useVisible)
vector = (Vector)m_visibleRows.elementAt(i);
else
vector = (Vector)m_invisibleRows.elementAt(i);
return vector.elementAt(j);
}
tableCellRenderer = m_gui.getRenderer(j);
tableColumn.setCellRenderer(tableCellRenderer);
}
Vector vector1 = (Vector)m_visibleRows.elementAt(i);
Vector vector2 = (Vector)m_invisibleRows.elementAt(i);
if (vector1.elementAt(j) != null && vector2.elementAt(j) != null)
{
String string1 = vector1.elementAt(j).toString();
String string2 = vector2.elementAt(j).toString();
if (tableCellRenderer instanceof ObCheckboxGui)
{
if (string1 == "true")
string1 = ((ObCheckboxGui)tableCellRenderer).getCheckedValue().toString();
else
string1 = ((ObCheckboxGui)tableCellRenderer).getUnCheckedValue().toString();
}
if (string1.equals(string2))
return false;
else
return true;
}
}
catch (Exception e)
{
}
return false;
}
((ObColumnHeadingGui)obCtrlGui).setColumn(m_headings.size() - 1);
}
}
fireTableChanged(null);
}
ObLabelGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import java.util.StringTokenizer;
public ObLabelGui()
{
m_staticType = 0;
m_sizeWidth = 0;
m_sizeHeight = 0;
m_textLines = null;
m_ctrl = new ObLabelGui$ObLabel(this);
m_ctrl.setBackground(SystemColor.window);
((JLabel)m_ctrl).setVerticalAlignment(1);
}
{
return obLabelGui.m_textLines;
}
else if (string.compareTo("Standard") == 0)
object = new LineBorder(Color.black, 1);
else if (string.compareTo("Indented") == 0)
object = new BevelBorder(1, Color.white, new Color(128, 128, 128));
else if (string.compareTo("Extruded") == 0)
object = new BevelBorder(0, Color.white, new Color(128, 128, 128));
else if (string.compareTo("Bump") == 0)
object = new EtchedBorder(Color.white, new Color(128, 128, 128));
((JLabel)m_ctrl).setBorder(object);
}
m_staticType = 1;
else if (string1.compareTo("Frame") == 0)
m_staticType = 2;
else if (string1.compareTo("Picture") == 0)
m_staticType = 3;
else if (string1.compareTo("HorzLine") == 0)
{
m_staticType = 4;
String string2 = new StringBuffer(String.valueOf(String.valueOf(m_sizeWidth))).append("
2").toString();
setSize(string2);
if (((JLabel)m_ctrl).getBorder() instanceof EmptyBorder)
setBorder("Bump");
}
else if (string1.compareTo("VertLine") == 0)
{
m_staticType = 5;
String string3 = new StringBuffer("2 ").append(String.valueOf(m_sizeHeight)).toString();
setSize(string3);
if (((JLabel)m_ctrl).getBorder() instanceof EmptyBorder)
setBorder("Bump");
}
else if (string1.compareTo("GridHeading") == 0)
m_staticType = 5;
setText(getValue());
}
((JLabel)m_ctrl).setText(string2);
i1 = string1.indexOf(94);
if (i1 != -1)
{
StringTokenizer stringTokenizer1 = new StringTokenizer(string1, "^");
int j1 = stringTokenizer1.countTokens();
m_textLines = new String[j1];
for (int k1 = 0; k1 < j1; k1++)
m_textLines[k1] = stringTokenizer1.nextToken();
((JLabel)m_ctrl).setText("");
}
else
{
FontMetrics fontMetrics = m_ctrl.getToolkit().getFontMetrics(m_ctrl.getFont());
if (m_sizeWidth < fontMetrics.stringWidth(string2))
{
StringTokenizer stringTokenizer2 = new StringTokenizer(string2, " ");
int i2 = stringTokenizer2.countTokens();
String string5 = null;
<badSignature> = null;
for (int j2 = 0; j2 < i2; j2++)
{
local = string5;
String string6 = stringTokenizer2.nextToken();
if (string5 == null)
string5 = new String(string6);
else
{
string5 = new StringBuffer(String.valueOf(string5)).append(" ").toString();
string5 = new StringBuffer(String.valueOf(string5)).append(string6).toString();
}
if (m_sizeWidth < fontMetrics.stringWidth(string5))
{
if (m_textLines == null)
m_textLines = new String[0];
String astring2[] = new String[m_textLines.length + 1];
for (int i3 = 0; i3 < m_textLines.length; i3++)
astring2[i3] = m_textLines[i3];
astring2[m_textLines.length] = new String(local);
m_textLines = astring2;
string5 = string6;
}
}
if (string5 != null)
{
String astring1[] = new String[m_textLines.length + 1];
for (int k2 = 0; k2 < m_textLines.length; k2++)
astring1[k2] = m_textLines[k2];
astring1[m_textLines.length] = new String(string5);
m_textLines = astring1;
}
((JLabel)m_ctrl).setText("");
}
}
}
else
((JLabel)m_ctrl).setText("");
}
((JLabel)m_ctrl).setOpaque(true);
}
ObLabelGui$ObLabel
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import javax.swing.plaf.ComponentUI;
ObLabelGui$ObLabel(ObLabelGui obLabelGui)
{
}
case 4:
i1 = dimension.width - insets.right -
fontMetrics.stringWidth(ObLabelGui.access$0(this$0)[j2]);
break;
default:
i1 = insets.left;
break;
}
g.drawString(ObLabelGui.access$0(this$0)[j2], i1, i2);
j2++;
i2 += j1;
}
invalidate();
}
}
}
ObListGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObListData;
import java.util.Vector;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
public ObListGui()
{
m_list = null;
m_sorted = false;
m_list = new JList();
m_ctrl = new JScrollPane(m_list);
m_list.setBackground(SystemColor.window);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
m_list.addFocusListener(this);
m_focusListener = true;
}
}
if (object2 == null)
return "";
else
return object2.toString();
}
case 503:
case 506:
if (!m_mouseMotionListener)
{
m_list.addMouseMotionListener(this);
m_mouseMotionListener = true;
}
break;
case 100:
case 101:
case 102:
case 103:
if (!m_componentListener)
{
m_list.addComponentListener(this);
m_componentListener = true;
}
break;
case 1004:
case 1005:
if (!m_focusListener)
{
m_list.addFocusListener(this);
m_ctrl.addFocusListener(this);
m_focusListener = true;
}
break;
case 400:
case 401:
case 402:
if (!m_keyListener)
{
m_list.addKeyListener(this);
m_keyListener = true;
}
break;
case 1:
case 2:
case 701:
if (!m_itemListener && m_list instanceof ItemSelectable)
{
((ItemSelectable)m_list).addItemListener(this);
((ItemSelectable)m_ctrl).addItemListener(this);
m_itemListener = true;
}
break;
case 1040:
setInitialValue();
if (!m_focusListener)
{
m_list.addFocusListener(this);
m_focusListener = true;
}
break;
case 1030:
m_list.addListSelectionListener(this);
m_itemListener = true;
m_modifiedEvent = true;
break;
case 1050:
if (!m_mouseListener)
{
m_list.addMouseListener(this);
m_mouseListener = true;
}
break;
}
}
{
super.setFixLeft(string);
}
super.setPosition(string);
}
{
super.setTabStop(string);
}
((JScrollPane)m_ctrl).setVisible(true);
else
((JScrollPane)m_ctrl).setVisible(false);
}
ObMenubarGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import ObRun.ObFunction.ObApplication;
public ObMenubarGui()
{
m_menuFont = null;
m_ctrl = new JMenuBar();
m_ctrl.setBackground(SystemColor.menu);
try
{
m_menuFont = loadFont(ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".MenuFont"));
}
catch (Exception e)
{
m_menuFont = UIManager.getFont("Menu.font");
}
}
ObMenuGui
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import java.awt.AWTEvent;
import java.awt.Component;
import java.awt.event.MouseEvent;
public ObMenuGui()
{
m_hintText = " ";
m_ctrl = new JMenu();
registerEvent(503);
}
return (ObMenubarGui)getParent();
}
{
KeyStroke keyStroke = ObWindowData.getKeyStroke(string);
((JMenu)m_ctrl).setAccelerator(keyStroke);
}
ObMenuitemGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.*;
import javax.swing.*;
import ObRun.ObFunction.ObApplication;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import java.awt.AWTEvent;
import java.awt.Component;
static
{
m_iconChecked = null;
m_iconUnchecked = null;
}
public ObMenuitemGui()
{
m_hintText = " ";
m_ctrl = new JMenuItem();
java.awt.Insets insets = ((JMenuItem)m_ctrl).getMargin();
((JMenuItem)m_ctrl).setMargin(insets);
((JMenuItem)m_ctrl).addActionListener(this);
registerEvent(503);
try
{
m_iconChecked = new ImageIcon(getClass().getResource("Images/MenuItemCheck.gif"));
String string = new String(ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".UseUncheckedMenuImage").toUpperCase());
if (string.compareTo("YES") == 0)
m_iconUnchecked = new ImageIcon(getClass().getResource("Images/MenuItemNoCheck.gif"));
}
catch (Exception e)
{
}
}
if (string.compareTo("YES") == 0)
((JMenuItem)m_ctrl).setIcon(m_iconChecked);
else
((JMenuItem)m_ctrl).setIcon(m_iconUnchecked);
((JMenuItem)m_ctrl).setHorizontalTextPosition(4);
}
ObMultilineEditGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObFunction.ObApplication;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import javax.swing.event.UndoableEditListener;
import javax.swing.text.Document;
import javax.swing.text.JTextComponent;
import javax.swing.undo.UndoManager;
public ObMultilineEditGui()
{
m_hiliteOnFocus = false;
m_backgroundColor = null;
m_editMask = null;
m_maxLength = 0;
m_maxFractions = 0;
m_positiveColor = null;
m_negativeColor = null;
m_lastString = null;
m_edit = null;
m_trapEnter = false;
m_fieldDefined = false;
undoHandler = new ObMultilineEditGui$UndoHandler(this);
manager = new UndoManager();
m_menuFont = null;
m_edit = new JTextArea();
m_edit.getDocument().addUndoableEditListener(undoHandler);
m_ctrl = new JScrollPane(m_edit);
m_edit.setBackground(SystemColor.window);
m_edit.setSelectionColor(SystemColor.textHighlight);
m_edit.setSelectedTextColor(SystemColor.textHighlightText);
if (!m_focusListener)
{
m_edit.addFocusListener(this);
m_focusListener = true;
}
if (!m_keyListener)
{
m_edit.addKeyListener(this);
m_keyListener = true;
}
if (!m_mouseListener)
{
m_edit.addMouseListener(this);
m_mouseListener = true;
}
try
{
m_menuFont = loadFont(ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".MenuFont"));
}
catch (Exception e)
{
m_menuFont = UIManager.getFont("Menu.font");
}
}
m_edit.setBackground(Color.white);
}
if (m_initialValue != null)
setInitialValue();
getData().testEvent(focusEvent.getID());
}
else
return m_edit.getText();
}
else
validateCharacterEntry(((JTextField)m_ctrl).getText(), m_editMask, keyEvent, m_maxLength,
((JTextField)m_ctrl).getCaretPosition(), ((JTextField)m_ctrl).getSelectedText());
}
getData().testEvent(keyEvent.getID());
}
jMenuItem3.setEnabled(false);
jPopupMenu1.add(jMenuItem3);
JMenuItem jMenuItem4 = new JMenuItem("Copy");
jMenuItem4.setFont(m_menuFont);
jMenuItem4.addActionListener(new ObMultilineEditGui$4(this));
if (m_edit.getSelectedText() == null)
jMenuItem4.setEnabled(false);
jPopupMenu1.add(jMenuItem4);
JMenuItem jMenuItem5 = new JMenuItem("Paste");
jMenuItem5.setFont(m_menuFont);
jMenuItem5.addActionListener(new ObMultilineEditGui$5(this));
Transferable transferable = m_ctrl.getToolkit().getSystemClipboard().getContents(this);
if (transferable == null)
jMenuItem5.setEnabled(false);
jPopupMenu1.add(jMenuItem5);
JMenuItem jMenuItem6 = new JMenuItem("Delete");
jMenuItem6.setFont(m_menuFont);
jMenuItem6.addActionListener(new ObMultilineEditGui$6(this));
if (m_edit.getSelectedText() == null)
jMenuItem6.setEnabled(false);
jPopupMenu1.add(jMenuItem6);
jPopupMenu1.addSeparator();
JMenuItem jMenuItem7 = new JMenuItem("Select All");
jMenuItem7.setFont(m_menuFont);
jMenuItem7.addActionListener(new ObMultilineEditGui$7(this));
jPopupMenu1.add(jMenuItem7);
}
Point point1 = mouseEvent.getPoint();
if (mouseEvent.getComponent() instanceof JTable)
{
int i1 = ((JTable)mouseEvent.getComponent()).getX();
if (i1 < 0)
point1.x = point1.x - i1 * -1;
int k1 = ((JTable)mouseEvent.getComponent()).getY();
if (k1 < 0)
point1.y = point1.y - k1 * -1;
int j2 = ((JTable)mouseEvent.getComponent()).getTableHeader().getHeight();
point1.y = point1.y + j2;
}
jPopupMenu1.show(m_ctrl, point1.x, point1.y);
}
else
setValue(m_edit.getText());
}
catch (Exception e)
{
}
}
}
case 503:
case 506:
if (!m_mouseMotionListener)
{
m_edit.addMouseMotionListener(this);
m_mouseMotionListener = true;
}
break;
case 100:
case 101:
case 102:
case 103:
if (!m_componentListener)
{
m_ctrl.addComponentListener(this);
m_componentListener = true;
}
break;
case 1004:
case 1005:
if (!m_focusListener)
{
m_edit.addFocusListener(this);
m_focusListener = true;
}
break;
case 400:
case 401:
case 402:
if (!m_keyListener)
{
m_edit.addKeyListener(this);
m_keyListener = true;
}
break;
case 900:
if (!m_textListener && m_ctrl instanceof TextComponent)
{
((TextComponent)m_ctrl).addTextListener(this);
m_textListener = true;
}
break;
case 1040:
setInitialValue();
if (!m_focusListener)
{
m_edit.addFocusListener(this);
m_focusListener = true;
}
break;
case 1050:
if (!m_mouseListener)
{
m_edit.addMouseListener(this);
m_mouseListener = true;
}
break;
case 1030:
m_modifiedEvent = true;
break;
}
}
super.setFixLeft(string);
}
m_edit.setEditable(false);
else
m_edit.setEditable(true);
}
}
catch (Exception e)
{
}
}
else
m_edit.setForeground(new Color(ainteger[0].intValue(), ainteger[1].intValue(),
ainteger[2].intValue()));
}
protected void setValidationMembers(int i, int j, String string, Color color1, Color color2)
{
m_maxLength = i;
m_maxFractions = j;
m_editMask = string;
if (color1 == null && color2 != null)
color1 = m_ctrl.getForeground();
m_positiveColor = color1;
m_negativeColor = color2;
m_fieldDefined = true;
}
}
else if (m_edit.getDocument() instanceof ObCtrlGui$ObDateDocument)
setText(formatDateForDisplay(string, m_editMask));
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeDocument)
setText(formatTimeForDisplay(string, m_editMask));
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeStampDocument)
setText(formatTimeStampForDisplay(string, m_editMask));
else if (m_editMask != null)
setText(formatCharacterForDisplay(string, m_editMask));
else
setText(string);
}
ObMultilineEditGui$1
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.undo.UndoManager;
ObMultilineEditGui$1(ObMultilineEditGui obMultilineEditGui)
{
}
ObMultilineEditGui$2
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.undo.UndoManager;
ObMultilineEditGui$2(ObMultilineEditGui obMultilineEditGui)
{
}
ObMultilineEditGui$3
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.text.JTextComponent;
ObMultilineEditGui$3(ObMultilineEditGui obMultilineEditGui)
{
}
ObMultilineEditGui$4
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.text.JTextComponent;
ObMultilineEditGui$4(ObMultilineEditGui obMultilineEditGui)
{
}
ObMultilineEditGui$5
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.text.JTextComponent;
ObMultilineEditGui$5(ObMultilineEditGui obMultilineEditGui)
{
}
ObMultilineEditGui$6
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.text.JTextComponent;
ObMultilineEditGui$6(ObMultilineEditGui obMultilineEditGui)
{
}
ObMultilineEditGui$7
package ObRun.ObPanel.ObCtrlGui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.text.JTextComponent;
ObMultilineEditGui$7(ObMultilineEditGui obMultilineEditGui)
{
}
ObMultilineEditGui$UndoHandler
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.event.UndoableEditEvent;
import javax.swing.event.UndoableEditListener;
import javax.swing.undo.UndoManager;
ObMultilineEditGui$UndoHandler(ObMultilineEditGui obMultilineEditGui)
{
}
ObPasswordGridEditorDelegate
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import java.util.EventObject;
import javax.swing.text.JTextComponent;
return true;
}
ObPasswordGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import javax.swing.text.JTextComponent;
public ObPasswordGui()
{
m_hiliteOnFocus = false;
m_backgroundColor = null;
m_editMask = null;
m_maxLength = 0;
m_maxFractions = 0;
m_positiveColor = null;
m_negativeColor = null;
m_lastString = null;
m_case = 0;
m_fieldDefined = false;
m_ctrl = new JPasswordField();
m_ctrl.setBackground(SystemColor.window);
((JTextField)m_ctrl).setSelectionColor(SystemColor.textHighlight);
((JTextField)m_ctrl).setSelectedTextColor(SystemColor.textHighlightText);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
m_focusListener = true;
}
if (!m_keyListener)
{
m_ctrl.addKeyListener(this);
m_keyListener = true;
}
}
{
if (mouseEvent.getClickCount() > 1)
{
getData().testEvent(1050);
if (inGrid())
getParent().getData().testEvent(1050);
}
getData().testEvent(mouseEvent.getID());
}
{
if (string.length() == 0)
m_ctrl.setBackground(SystemColor.window);
else
super.setBackgroundColor(string);
}
{
super.setControlName(string);
}
{
super.setFixLeft(string);
}
if (string.compareTo("READ ONLY") == 0)
((JTextField)m_ctrl).setEditable(false);
else
((JTextField)m_ctrl).setEditable(true);
}
else if (string.compareTo("Center") == 0)
b = 0;
else if (string.compareTo("Right") == 0)
b = 4;
((JTextField)m_ctrl).setHorizontalAlignment(b);
}
protected void setValidationMembers(int i, int j, String string, Color color1, Color color2)
{
m_maxLength = i;
m_maxFractions = j;
m_editMask = string;
if (color1 == null && color2 != null)
color1 = m_ctrl.getForeground();
m_positiveColor = color1;
m_negativeColor = color2;
m_fieldDefined = true;
}
ObPictureGridEditorDelegate
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import java.awt.Component;
import java.util.EventObject;
return true;
}
ObPictureGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import java.awt.event.KeyEvent;
static
{
m_lastDirectory = ".";
}
public ObPictureGui()
{
m_autoSize = false;
m_allowFileOpen = true;
m_ctrl = new JButton();
m_ctrl.setBackground(SystemColor.window);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
m_focusListener = true;
}
if (!m_keyListener)
{
m_ctrl.addKeyListener(this);
m_keyListener = true;
}
}
else
((JButton)m_ctrl).setVisible(false);
}
}
ObPushbuttonGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.StringTokenizer;
import javax.swing.plaf.ComponentUI;
public ObPushbuttonGui()
{
m_textLines = null;
m_accelerator = 0;
m_ctrl = new ObButton(this);
m_ctrl.setBackground(SystemColor.control);
Insets insets = ((JButton)m_ctrl).getMargin();
insets.left = 2;
insets.right = 2;
((JButton)m_ctrl).setMargin(insets);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
m_focusListener = true;
}
if (!m_actionListener)
{
((JButton)m_ctrl).addActionListener(this);
m_actionListener = true;
}
{
}
}
else if (string.compareTo("On Top") == 0)
{
b1 = 0;
b2 = 0;
b3 = 0;
b4 = false;
}
else if (string.compareTo("Right") == 0)
{
b1 = 0;
b2 = 4;
b3 = 2;
b4 = false;
}
else if (string.compareTo("Below Left") == 0)
{
b1 = 3;
b2 = 2;
b3 = 4;
b4 = true;
}
else if (string.compareTo("Below Center") == 0)
{
b1 = 3;
b2 = 0;
b3 = 0;
b4 = true;
}
else if (string.compareTo("Below Right") == 0)
{
b1 = 3;
b2 = 4;
b3 = 2;
b4 = true;
}
((JButton)m_ctrl).setVerticalAlignment(b1);
((JButton)m_ctrl).setHorizontalAlignment(b2);
((JButton)m_ctrl).setHorizontalTextPosition(b3);
((JButton)m_ctrl).setVerticalTextPosition(b4);
}
if (i != -1)
{
StringTokenizer stringTokenizer = new StringTokenizer(string2, "^");
int j = stringTokenizer.countTokens();
m_textLines = new String[j];
for (int k = 0; k < j; k++)
m_textLines[k] = stringTokenizer.nextToken();
}
else
{
m_textLines = new String[1];
m_textLines[0] = string2;
}
((JButton)m_ctrl).setText("");
}
ObRadiobuttonGui
package ObRun.ObPanel.ObCtrlGui;
import javax.swing.*;
import ObRun.ObPanel.ObCtrlData.ObRadiobuttonData;
import java.awt.Component;
import java.awt.SystemColor;
public ObRadiobuttonGui()
{
m_buttonGroup = null;
m_ctrl = new JRadioButton();
m_ctrl.setBackground(SystemColor.control);
((JRadioButton)m_ctrl).setOpaque(false);
((JRadioButton)m_ctrl).setVerticalAlignment(0);
((JRadioButton)m_ctrl).setHorizontalAlignment(2);
if (!m_focusListener)
{
m_ctrl.addFocusListener(this);
m_focusListener = true;
}
}
m_checkedValue = null;
m_buttonGroup = null;
if (m_focusListener)
{
m_ctrl.removeFocusListener(this);
m_focusListener = false;
}
}
m_ctrl.setBackground(SystemColor.control);
else
super.setBackgroundColor(string);
}
super.setFixTop(string);
}
else
((JRadioButton)m_ctrl).setSelected(false);
}
catch (Exception e)
{
}
}
ObSeparatorGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.Component;
import javax.swing.JSeparator;
ObSpinGui
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObRTTypes.*;
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.text.*;
import ObRun.ObFunction.ObApplication;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import java.util.Calendar;
import java.util.EventObject;
static
{
m_iconUpArrow = null;
m_iconDownArrow = null;
}
public ObSpinGui()
{
m_hiliteOnFocus = false;
m_backgroundColor = null;
m_editMask = null;
m_maxLength = 0;
m_maxFractions = 0;
m_positiveColor = null;
m_negativeColor = null;
m_maximumValue = null;
m_minimumValue = null;
m_incrementValue = new Double(1.0);
m_edit = null;
m_buttons = null;
m_up = null;
m_down = null;
m_lastString = null;
m_case = 0;
m_fieldDefined = false;
m_temporary = false;
m_ctrl = new JPanel();
m_ctrl.setBackground(SystemColor.control);
((JPanel)m_ctrl).setLayout(new BorderLayout());
m_edit = new JTextField();
m_edit.setBackground(SystemColor.window);
m_edit.setSelectionColor(SystemColor.textHighlight);
m_edit.setSelectedTextColor(SystemColor.textHighlightText);
((JPanel)m_ctrl).add("West", m_edit);
m_buttons = new JPanel();
m_buttons.setLayout(new BorderLayout());
m_up = new JButton();
m_up.addMouseListener(this);
m_up.setFocusPainted(false);
m_up.addFocusListener(this);
m_iconUpArrow = new ImageIcon(getClass().getResource("Images/UpArrow.gif"));
m_up.setIcon(m_iconUpArrow);
m_down = new JButton();
m_down.addMouseListener(this);
m_down.setFocusPainted(false);
m_down.addFocusListener(this);
m_iconDownArrow = new ImageIcon(getClass().getResource("Images/DownArrow.gif"));
m_down.setIcon(m_iconDownArrow);
m_buttons.add("North", m_up);
m_buttons.add("South", m_down);
((JPanel)m_ctrl).add("East", m_buttons);
if (!m_focusListener)
{
m_edit.addFocusListener(this);
m_focusListener = true;
}
if (!m_keyListener)
{
m_edit.addKeyListener(this);
m_keyListener = true;
}
}
if (flag)
{
for (int i2 = 0; i2 < m_incrementValue.intValue(); i2++)
calendar.roll(6, true);
if (k > calendar.get(6))
calendar.roll(1, true);
}
else
{
for (int j2 = 0; j2 < m_incrementValue.intValue(); j2++)
calendar.roll(6, false);
if (k < calendar.get(6))
calendar.roll(1, false);
}
setValue(new ObDateFld(calendar.getTime()).toString());
}
calendar.roll(10, true);
}
else
{
for (int k2 = 0; k2 < m_incrementValue.intValue(); k2++)
calendar.roll(13, false);
if (k1 < calendar.get(13))
calendar.roll(12, false);
if (i2 < calendar.get(12))
calendar.roll(10, false);
}
setValue(new ObTimeFld(calendar.getTime()).toString());
}
{
setValue(new ObDateFld((String)m_maximumValue).toString());
flag2 = true;
}
}
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeDocument)
{
ObTimeFld obTimeFld = new ObTimeFld(formatTimeForInternal(m_edit.getText(), m_editMask));
if (flag1)
adjustTime(obTimeFld, true);
if (m_maximumValue != null && obTimeFld.isGreaterThan(new ObTimeFld((String)m_maximumValue)))
{
setValue(new ObTimeFld((String)m_maximumValue).toString());
flag2 = true;
}
}
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeStampDocument)
{
ObTimeStampFld obTimeStampFld = new ObTimeStampFld(formatTimeStampForInternal(m_edit.getText(),
m_editMask));
if (flag1)
adjustTimeStamp(obTimeStampFld, true);
if (m_maximumValue != null && obTimeStampFld.isGreaterThan(new
ObTimeStampFld((String)m_maximumValue)))
{
setValue(new ObTimeStampFld((String)m_maximumValue).toString());
flag2 = true;
}
}
return flag2;
}
{
double d = new Double(getValue()).doubleValue();
if (flag1)
{
d -= m_incrementValue.doubleValue();
setValue(String.valueOf(d));
}
if (m_minimumValue != null && d < ((Double)m_minimumValue).doubleValue())
{
setValue(String.valueOf(m_minimumValue));
flag2 = true;
}
}
}
catch (NumberFormatException e)
{
}
}
else if (m_edit.getDocument() instanceof ObCtrlGui$ObDateDocument)
{
ObDateFld obDateFld = new ObDateFld(formatDateForInternal(m_edit.getText(), m_editMask));
if (flag1)
adjustDate(obDateFld, false);
if (m_minimumValue != null && obDateFld.isLessThan(new ObDateFld((String)m_minimumValue)))
{
setValue(new ObDateFld((String)m_minimumValue).toString());
flag2 = true;
}
}
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeDocument)
{
ObTimeFld obTimeFld = new ObTimeFld(formatTimeForInternal(m_edit.getText(), m_editMask));
if (flag1)
adjustTime(obTimeFld, false);
if (m_minimumValue != null && obTimeFld.isLessThan(new ObTimeFld((String)m_minimumValue)))
{
setValue(new ObTimeFld((String)m_minimumValue).toString());
flag2 = true;
}
}
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeStampDocument)
{
ObTimeStampFld obTimeStampFld = new ObTimeStampFld(formatTimeStampForInternal(m_edit.getText(),
m_editMask));
if (flag1)
adjustTimeStamp(obTimeStampFld, false);
if (m_minimumValue != null && obTimeStampFld.isLessThan(new
ObTimeStampFld((String)m_minimumValue)))
{
setValue(new ObTimeStampFld((String)m_minimumValue).toString());
flag2 = true;
}
}
return flag2;
}
if (transferable == null)
setValue(null);
else if (transferable.isDataFlavorSupported(DataFlavor.stringFlavor))
{
try
{
setFieldDetails(m_fieldDefined, m_editMask);
m_edit.paste();
if (m_edit.getDocument() instanceof ObCtrlGui$ObNumericDocument)
setValue(formatNumericForInternal(m_edit.getText(), m_editMask));
else if (m_edit.getDocument() instanceof ObCtrlGui$ObDateDocument)
setValue(formatDateForInternal(m_edit.getText(), m_editMask));
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeDocument)
setValue(formatTimeForInternal(m_edit.getText(), m_editMask));
else if (m_edit.getDocument() instanceof ObCtrlGui$ObTimeStampDocument)
setValue(formatTimeStampForInternal(m_edit.getText(), m_editMask));
else if (m_editMask != null)
setValue(formatCharacterForInternal(m_edit.getText(), m_editMask));
else
setValue(m_edit.getText());
}
catch (Exception e)
{
}
}
}
break;
case 503:
case 506:
if (!m_mouseMotionListener)
{
m_edit.addMouseMotionListener(this);
m_up.addMouseMotionListener(this);
m_down.addMouseMotionListener(this);
m_mouseMotionListener = true;
}
break;
case 100:
case 101:
case 102:
case 103:
if (!m_componentListener)
{
m_ctrl.addComponentListener(this);
m_componentListener = true;
}
break;
case 1004:
case 1005:
if (!m_focusListener)
{
m_edit.addFocusListener(this);
m_focusListener = true;
}
break;
case 400:
case 401:
case 402:
if (!m_keyListener)
{
m_edit.addKeyListener(this);
m_keyListener = true;
}
break;
case 900:
if (!m_textListener && m_ctrl instanceof TextComponent)
{
((TextComponent)m_ctrl).addTextListener(this);
m_textListener = true;
}
break;
case 1040:
setInitialValue();
if (!m_focusListener)
{
m_edit.addFocusListener(this);
m_focusListener = true;
}
break;
case 1050:
if (!m_mouseListener)
{
m_edit.addMouseListener(this);
m_mouseListener = true;
}
break;
case 1030:
m_modifiedEvent = true;
break;
}
}
m_case = 2;
}
flag = false;
if (!flag)
{
if (m_case == 1)
m_edit.setDocument(new ObCtrlGui$ObUpperCaseDocument());
else if (m_case == 2)
m_edit.setDocument(new ObCtrlGui$ObLowerCaseDocument());
int i1 = false;
int j1 = 0;
Color color1 = null;
Color color2 = null;
String string2 = getData().getField().getClass().getName();
if (ObCtrlData.whatEditType(string2) == 3 || ObCtrlData.whatEditType(string2) == 2)
{
m_edit.setDocument(new ObCtrlGui$ObNumericDocument());
i1 = false;
if (string1 != null)
{
for (int k1 = 0; k1 < string1.length(); k1++)
{
if (string1.charAt(k1) == 35 || string1.charAt(k1) == 48)
i1++;
if (string1.charAt(k1) == 46 || string1.charAt(k1) == 59)
break;
}
j1 = 0;
int i3 = string1.indexOf(".");
if (i3 != -1)
{
for (int j3 = i3; j3 < string1.length(); j3++)
{
if (string1.charAt(j3) == 35 || string1.charAt(j3) == 48)
j1++;
if (string1.charAt(j3) == 59)
break;
}
}
}
if (string1.indexOf("[") != -1 && string1.indexOf("]") != -1 && string1.indexOf("[") <
string1.indexOf(";"))
{
color1 = ObCtrlData.whatColor(string1.substring(string1.indexOf("["),
string1.indexOf("]") + 1));
string1 = string1.substring(string1.indexOf("]") + 1);
}
if (string1.lastIndexOf("[") != -1 && string1.lastIndexOf("]") != -1 &&
string1.lastIndexOf("[") > string1.indexOf(";"))
{
color2 = ObCtrlData.whatColor(string1.substring(string1.lastIndexOf("["),
string1.lastIndexOf("]") + 1));
string1 = new StringBuffer(String.valueOf(string1.substring(0, string1.indexOf(";") +
1))).append(string1.substring(string1.lastIndexOf("]") + 1)).toString();
}
}
else if (ObCtrlData.whatEditType(string2) == 4)
{
m_edit.setDocument(new ObCtrlGui$ObDateDocument());
i1 = false;
if (string1 == null || string1.length() == 0)
string1 = ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".DefaultDateMask");
for (int i2 = 0; i2 < string1.length(); i2++)
i1++;
string1 = string1.replace('-', '/');
string1 = string1.replace('m', 'M');
if (string1.indexOf("MM") == -1)
i1++;
if (string1.indexOf("dd") == -1)
i1++;
}
else if (ObCtrlData.whatEditType(string2) == 5)
{
m_edit.setDocument(new ObCtrlGui$ObTimeDocument());
i1 = false;
if (string1 == null || string1.length() == 0)
string1 = ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".DefaultTimeMask");
for (int j2 = 0; j2 < string1.length(); j2++)
i1++;
if (string1.indexOf(97) == -1)
string1 = string1.replace('h', 'H');
else
i1++;
string1 = string1.replace('f', 'S');
if (string1.indexOf("HH") == -1 && string1.indexOf("hh") == -1)
i1++;
}
else if (ObCtrlData.whatEditType(string2) == 6)
{
m_edit.setDocument(new ObCtrlGui$ObTimeStampDocument());
i1 = false;
if (string1 == null || string1.length() == 0)
string1 = ObApplication.getRunOptionValue(ObApplication.getEnvironment() +
".DefaultTimeStampMask");
for (int k2 = 0; k2 < string1.length(); k2++)
i1++;
string1 = string1.replace('-', '/');
if (string1.indexOf(97) == -1)
string1 = string1.replace('h', 'H');
else
i1++;
string1 = string1.replace('f', 'S');
StringBuffer stringBuffer = new StringBuffer(string1);
for (int k3 = 0; k3 < string1.indexOf(" "); k3++)
if (stringBuffer.charAt(k3) == 109)
stringBuffer.setCharAt(k3, 'M');
string1 = stringBuffer.toString();
if (string1.indexOf("MM") == -1)
i1++;
if (string1.indexOf("dd") == -1)
i1++;
if (string1.indexOf("HH") == -1 && string1.indexOf("hh") == -1)
i1++;
}
else
{
try
{
i1 = getData().getField().getCLength() - 1;
}
catch (Exception e)
{
i1 = false;
}
}
setValidationMembers(i1, j1, string1, color1, color2);
}
}
{
m_initialValue = getValue();
}
protected void setValidationMembers(int i, int j, String string, Color color1, Color color2)
{
m_maxLength = i;
m_maxFractions = j;
m_editMask = string;
if (color1 == null && color2 != null)
color1 = m_ctrl.getForeground();
m_positiveColor = color1;
m_negativeColor = color2;
m_fieldDefined = true;
}
protected void validateDateEntry(String string1, String string2, KeyEvent keyEvent, int i, int j,
String string3)
{
if (string1.length() + 1 > i && string3 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
Character character = null;
if (j < string2.length())
character = new Character(string2.charAt(j));
if (character != null && character.charValue() != keyEvent.getKeyChar() && character.charValue() !=
71 && character.charValue() != 121 && character.charValue() != 77 && character.charValue() != 100 &&
character.charValue() != 69 && character.charValue() != 68 && character.charValue() != 70 &&
character.charValue() != 119 && character.charValue() != 87)
{
try
{
m_edit.getDocument().insertString(m_edit.getDocument().getEndPosition().getOffset() - 1,
character.toString(), null);
character = new Character(string2.charAt(j + 1));
}
catch (Exception e)
{
}
}
}
protected void validateTimeEntry(String string1, String string2, KeyEvent keyEvent, int i, int j,
String string3)
{
if (string1.length() + 1 > i && string3 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
Character character = null;
if (j < string2.length())
character = new Character(string2.charAt(j));
if (character != null && character.charValue() != keyEvent.getKeyChar())
{
if (character.charValue() != 115 && character.charValue() != 83 && character.charValue() != 104
&& character.charValue() != 72 && character.charValue() != 109 && character.charValue() != 97 &&
character.charValue() != 107 && character.charValue() != 75 && character.charValue() != 122)
{
try
{
m_edit.getDocument().insertString(m_edit.getDocument().getEndPosition().getOffset() -
1, character.toString(), null);
character = new Character(string2.charAt(j + 1));
}
catch (Exception e)
{
}
}
if (character.charValue() == 97 && isDigit(keyEvent.getKeyChar()))
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
}
}
protected void validateTimeStampEntry(String string1, String string2, KeyEvent keyEvent, int i, int j,
String string3)
{
if (string1.length() + 1 > i && string3 == null)
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
Character character = null;
if (j < string2.length())
character = new Character(string2.charAt(j));
if (character != null && character.charValue() != keyEvent.getKeyChar())
{
if (character.charValue() != 71 && character.charValue() != 121 && character.charValue() != 77
&& character.charValue() != 100 && character.charValue() != 69 && character.charValue() != 68 &&
character.charValue() != 70 && character.charValue() != 119 && character.charValue() != 87 &&
character.charValue() != 115 && character.charValue() != 83 && character.charValue() != 104 &&
character.charValue() != 72 && character.charValue() != 109 && character.charValue() != 97 &&
character.charValue() != 107 && character.charValue() != 75 && character.charValue() != 122)
{
try
{
m_edit.getDocument().insertString(m_edit.getDocument().getEndPosition().getOffset() -
1, character.toString(), null);
character = new Character(string2.charAt(j + 1));
}
catch (Exception e)
{
}
}
if (character.charValue() == 97 && isDigit(keyEvent.getKeyChar()))
{
keyEvent.consume();
Toolkit.getDefaultToolkit().beep();
}
}
}
}
ObStaticGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import java.util.StringTokenizer;
public ObStaticGui()
{
m_staticType = 0;
m_sizeWidth = 0;
m_sizeHeight = 0;
m_textLines = null;
m_ctrl = new ObStaticGui$ObStatic(this);
m_ctrl.setBackground(SystemColor.window);
((JLabel)m_ctrl).setVerticalAlignment(1);
}
return obStaticGui.m_textLines;
}
if (string.compareTo("None") == 0)
object = new EmptyBorder(insets);
else if (string.compareTo("Standard") == 0)
object = new LineBorder(Color.black, 1);
else if (string.compareTo("Indented") == 0)
object = new BevelBorder(1, Color.white, new Color(128, 128, 128));
else if (string.compareTo("Extruded") == 0)
object = new BevelBorder(0, Color.white, new Color(128, 128, 128));
else if (string.compareTo("Bump") == 0)
object = new EtchedBorder(Color.white, new Color(128, 128, 128));
((JLabel)m_ctrl).setBorder(object);
}
m_staticType = 0;
else if (string1.compareTo("Group") == 0)
m_staticType = 1;
else if (string1.compareTo("Frame") == 0)
m_staticType = 2;
else if (string1.compareTo("Picture") == 0)
m_staticType = 3;
else if (string1.compareTo("HorzLine") == 0)
{
m_staticType = 4;
String string2 = new StringBuffer(String.valueOf(String.valueOf(m_sizeWidth))).append("
2").toString();
setSize(string2);
if (((JLabel)m_ctrl).getBorder() instanceof EmptyBorder)
setBorder("Bump");
}
else if (string1.compareTo("VertLine") == 0)
{
m_staticType = 5;
String string3 = new StringBuffer("2 ").append(String.valueOf(m_sizeHeight)).toString();
setSize(string3);
if (((JLabel)m_ctrl).getBorder() instanceof EmptyBorder)
setBorder("Bump");
}
setText(getValue());
}
((JLabel)m_ctrl).setText(string2);
i1 = string1.indexOf(94);
if (i1 != -1)
{
StringTokenizer stringTokenizer1 = new StringTokenizer(string1, "^");
int j1 = stringTokenizer1.countTokens();
m_textLines = new String[j1];
for (int k1 = 0; k1 < j1; k1++)
m_textLines[k1] = stringTokenizer1.nextToken();
((JLabel)m_ctrl).setText("");
}
else
{
FontMetrics fontMetrics = m_ctrl.getToolkit().getFontMetrics(m_ctrl.getFont());
if (m_sizeWidth < fontMetrics.stringWidth(string2))
{
StringTokenizer stringTokenizer2 = new StringTokenizer(string2, " ");
int i2 = stringTokenizer2.countTokens();
String string5 = null;
<badSignature> = null;
for (int j2 = 0; j2 < i2; j2++)
{
local = string5;
String string6 = stringTokenizer2.nextToken();
if (string5 == null)
string5 = new String(string6);
else
{
string5 = new StringBuffer(String.valueOf(string5)).append(" ").toString();
string5 = new StringBuffer(String.valueOf(string5)).append(string6).toString();
}
if (m_sizeWidth < fontMetrics.stringWidth(string5))
{
if (m_textLines == null)
m_textLines = new String[0];
String astring2[] = new String[m_textLines.length + 1];
for (int i3 = 0; i3 < m_textLines.length; i3++)
astring2[i3] = m_textLines[i3];
astring2[m_textLines.length] = new String(local);
m_textLines = astring2;
string5 = string6;
}
}
if (string5 != null)
{
String astring1[] = new String[m_textLines.length + 1];
for (int k2 = 0; k2 < m_textLines.length; k2++)
astring1[k2] = m_textLines[k2];
astring1[m_textLines.length] = new String(string5);
m_textLines = astring1;
}
((JLabel)m_ctrl).setText("");
}
}
}
else
((JLabel)m_ctrl).setText("");
}
((JLabel)m_ctrl).setOpaque(true);
}
ObStaticGui$ObStatic
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import javax.swing.*;
import javax.swing.plaf.ComponentUI;
ObStaticGui$ObStatic(ObStaticGui obStaticGui)
{
}
break;
case 4:
i1 = dimension.width - insets.right -
fontMetrics.stringWidth(ObStaticGui.access$0(this$0)[j2]);
break;
default:
i1 = insets.left;
break;
}
g.drawString(ObStaticGui.access$0(this$0)[j2], i1, i2);
j2++;
i2 += j1;
}
invalidate();
}
}
}
ObStatusbarGui
import java.awt.*;
import javax.swing.JComponent;
import javax.swing.JLabel;
ObTabSequence
package ObRun.ObPanel.ObCtrlGui;
ObToolbarbuttonGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
public ObToolbarbuttonGui()
{
m_hintText = " ";
m_ctrl = new JButton();
((JButton)m_ctrl).setMargin(new Insets(2, 2, 2, 2));
m_ctrl.setBackground(SystemColor.menu);
registerEvent(503);
((JButton)m_ctrl).setFocusPainted(false);
if (!m_actionListener)
{
((JButton)m_ctrl).addActionListener(this);
m_actionListener = true;
}
}
}
}
if (imageIcon != null)
((JButton)m_ctrl).setIcon(imageIcon);
}
((JButton)m_ctrl).setVisible(true);
if (!flag)
((ObToolbarGui)getParent()).reBuild();
}
else
{
((JButton)m_ctrl).setVisible(false);
((JToolBar)getParent().getComponent()).remove(m_ctrl);
((JToolBar)getParent().getComponent()).validate();
}
}
}
ObToolbarGui
package ObRun.ObPanel.ObCtrlGui;
import java.awt.*;
import java.util.Enumeration;
import java.util.Vector;
import javax.swing.JButton;
import javax.swing.JToolBar;
else
((JToolBar)m_ctrl).add((JButton)obCtrlGui.getComponent());
}
((JToolBar)m_ctrl).validate();
}
}
ObTopAppGui
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObFunction.*;
import java.awt.*;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import ObRun.ObPanel.ObPanelUtils.ObXYLayoutManager;
import java.net.URL;
import java.util.StringTokenizer;
import javax.swing.JApplet;
import javax.swing.JFrame;
public ObTopAppGui()
{
m_internalFrame = false;
m_lastFocusWindow = null;
ObWindowData obWindowData = null;
if (m_inApplet)
{
try
{
if (ObApplication.findApp().getCurrentFunction().getCaller() != null &&
ObApplication.findApp().getCurrentFunction().getCaller().getPanel() != null)
obWindowData =
ObApplication.findApp().getCurrentFunction().getCaller().getPanel().getPanelData();
if (m_inApplet && obWindowData != null)
m_inApplet = false;
}
catch (Exception e)
{
}
}
if (!m_inApplet || m_inApplet && ObApplication.useAppletFrame())
m_ctrl = new JFrame();
else
m_ctrl = m_applet;
setLayoutManager(new ObXYLayoutManager());
setPanel(this);
getFrame().setBackground(SystemColor.control);
if (!m_componentListener)
{
m_ctrl.addComponentListener(this);
m_componentListener = true;
}
if (!m_keyListener)
{
m_ctrl.addKeyListener(this);
m_keyListener = true;
}
if (!m_windowListener && (!m_inApplet || m_inApplet && ObApplication.useAppletFrame()))
{
((Window)m_ctrl).addWindowListener(this);
m_windowListener = true;
}
}
catch (Exception e)
{
}
}
{
getFrame().setEnabled(flag);
}
}
}
}
}
catch (Exception e)
{
}
}
string = string.toUpperCase();
if (string.compareTo("YES") == 0)
if (!m_inApplet)
((JFrame)m_ctrl).setResizable(true);
else if (!m_inApplet)
((JFrame)m_ctrl).setResizable(false);
}
setFocusOnFirst();
m_complete = true;
}
}
ObWindowGui
package ObRun.ObPanel.ObCtrlGui;
import ObRun.ObFunction.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import ObRun.ObPanel.ObCtrlData.ObCtrlData;
import ObRun.ObPanel.ObCtrlData.ObWindowData;
import ObRun.ObPanel.ObPanelUtils.ObXYLayoutManager;
import java.awt.event.ComponentEvent;
import java.awt.event.WindowEvent;
import java.io.PrintStream;
import java.util.Enumeration;
import java.util.Vector;
import javax.swing.text.JTextComponent;
public ObWindowGui()
{
m_layoutMgr = null;
m_menuBar = null;
m_statusbar = null;
m_toolbar = null;
m_panelDesign = null;
m_complete = false;
m_buttonGroup = null;
m_allTabs = new Vector();
m_inApplet = false;
m_applet = null;
m_defaultButton = null;
m_firstTab = false;
m_disabled = false;
m_layoutMgr = new ObXYLayoutManager();
m_inApplet = ObApplication.isApplet();
m_applet = m_clientApp.getApplet();
if (m_panelDesign == null)
{
m_panelDesign = new ObBackgroundPanel(this);
m_panelDesign.setLayout(m_layoutMgr);
m_panelDesign.setBackground(SystemColor.control);
}
}
if (m_statusbar == null)
{
m_statusbar = new JLabel(" ");
EtchedBorder etchedBorder = new EtchedBorder(Color.white, new Color(128, 128, 128));
BevelBorder bevelBorder = new BevelBorder(1, Color.white, new Color(128, 128, 128));
m_statusbar.setBorder(new CompoundBorder(etchedBorder, bevelBorder));
}
}
else if (obCtrlGui instanceof ObToolbarGui)
{
if (m_toolbar == null)
m_toolbar = new JPanel(new BorderLayout());
m_toolbar.add("North", (JToolBar)obCtrlGui.getComponent());
}
else
m_panelDesign.add("", obCtrlGui.getComponent());
}
super.clearReferences();
if (m_panelDesign != null)
{
m_panelDesign.setLayout(null);
m_panelDesign.clearReferences();
m_panelDesign.removeAll();
}
m_panelDesign = null;
m_allTabs = null;
m_layoutMgr = null;
}
{
return null;
}
else
return getNextTabSequence(obTabSequence2);
}
if (obCtrlGui instanceof ObSpinGui)
{
if (((ObSpinGui)obCtrlGui).getEditControl().isFocusTraversable() && obCtrlGui.isTabStop() &&
obCtrlGui.getComponent().isEnabled() && obCtrlGui.getComponent().isVisible() &&
obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getNextTabSequence(obTabSequence2);
}
if (obCtrlGui instanceof ObListGui)
{
if (((ObListGui)obCtrlGui).getListControl().isFocusTraversable() && obCtrlGui.isTabStop() &&
obCtrlGui.getComponent().isEnabled() && obCtrlGui.getComponent().isVisible() &&
obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getNextTabSequence(obTabSequence2);
}
if (obCtrlGui instanceof ObPushbuttonGui)
{
if (obCtrlGui.m_ctrl.isFocusTraversable() && obCtrlGui.isTabStop() &&
obCtrlGui.getComponent().isEnabled() && ((JButton)obCtrlGui.getComponent()).isFocusPainted() &&
obCtrlGui.getComponent().isVisible() && obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getNextTabSequence(obTabSequence2);
}
if (obCtrlGui instanceof ObComboGui)
{
if (((JComboBox)obCtrlGui.m_ctrl).getEditor().getEditorComponent().isFocusTraversable() &&
obCtrlGui.isTabStop() && obCtrlGui.getComponent().isEnabled() && obCtrlGui.getComponent().isVisible() &&
obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getNextTabSequence(obTabSequence2);
}
{
if (((ObListGui)obCtrlGui).getListControl().isFocusTraversable() && obCtrlGui.isTabStop() &&
obCtrlGui.getComponent().isEnabled() && obCtrlGui.getComponent().isVisible() &&
obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getPreviousTabSequence(obTabSequence2);
}
if (obCtrlGui instanceof ObPushbuttonGui)
{
if (obCtrlGui.m_ctrl.isFocusTraversable() && obCtrlGui.isTabStop() &&
obCtrlGui.getComponent().isEnabled() && ((JButton)obCtrlGui.getComponent()).isFocusPainted() &&
obCtrlGui.getComponent().isVisible() && obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getPreviousTabSequence(obTabSequence2);
}
if (obCtrlGui instanceof ObComboGui)
{
if (((JComboBox)obCtrlGui.m_ctrl).getEditor().getEditorComponent().isFocusTraversable() &&
obCtrlGui.isTabStop() && obCtrlGui.getComponent().isEnabled() && obCtrlGui.getComponent().isVisible() &&
obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getPreviousTabSequence(obTabSequence2);
}
if (obCtrlGui.m_ctrl.isFocusTraversable() && obCtrlGui.isTabStop() &&
obCtrlGui.getComponent().isEnabled() && obCtrlGui.getComponent().isVisible() &&
obCtrlGui.getComponent().isShowing())
return obTabSequence2;
else
return getPreviousTabSequence(obTabSequence2);
}
if (string.length() == 0)
{
m_panelDesign.setBackground(SystemColor.control);
return;
}
Integer ainteger[] = getIntegers(string);
if (string.indexOf(40) != -1 || ainteger.length == 1)
{
try
{
m_panelDesign.setBackground(ObCtrlGui.m_javaCol[ainteger[0].intValue()]);
}
catch (Exception e)
{
}
}
else
m_panelDesign.setBackground(new Color(ainteger[0].intValue(), ainteger[1].intValue(),
ainteger[2].intValue()));
}
m_ctrl.setCursor(Cursor.getPredefinedCursor(3));
}
else
obCtrlGui.getComponent().requestFocus();
setLastFocusWindow(this);
}
{
int i = m_allTabs.size();
ObTabSequence aobTabSequence[] = new ObTabSequence[i];
int j = 0;
for (Enumeration enumeration = m_allTabs.elements(); enumeration.hasMoreElements(); )
{
aobTabSequence[j] = (ObTabSequence)enumeration.nextElement();
j++;
}
try
{
for (j = 0; j < i - 1; j++)
{
for (int k = i - 1; k >= j + 1; k--)
{
ObTabSequence obTabSequence1 = aobTabSequence[k];
ObTabSequence obTabSequence2 = aobTabSequence[k - 1];
if (obTabSequence1.m_tabSequence < obTabSequence2.m_tabSequence)
{
ObTabSequence obTabSequence3 = aobTabSequence[k];
aobTabSequence[k] = aobTabSequence[k - 1];
aobTabSequence[k - 1] = obTabSequence3;
}
}
}
}
catch (Exception e)
{
}
m_allTabs.removeAllElements();
for (j = 0; j <= i - 1; j++)
m_allTabs.addElement(aobTabSequence[j]);
FocusManager.disableSwingFocusManager();
}
ObLaunch
package ObRun.ObPanel;
import ObRun.ObFunction.*;
import java.applet.Applet;
import java.io.PrintStream;
import java.util.StringTokenizer;
import javax.swing.JApplet;
public ObLaunch()
{
m_client = null;
applet = null;
m_count = 0;
}
public static synchronized String[] callFunction(String string1, String string2, String astring[],
String string3)
{
ObClientApp obClientApp = new ObClientApp(string2);
astring = ObApplication.obCallFunction(astring, string1, string3);
obClientApp.clearReferences();
obClientApp = null;
System.gc();
return astring;
}
astring2[i] = stringTokenizer.nextToken();
i++;
}
astring2 = ObApplication.obCallFunction(astring2, astring1[0], astring1[3]);
for (int j = 0; j < astring2.length; j++)
System.out.println(astring2[j]);
}
obClientApp.clearReferences();
obClientApp = null;
System.gc();
}
else
System.out.println(ObApplication.getString("ProvideFunctionName"));
System.exit(0);
}
ObLaunch$ObApplet
package ObRun.ObPanel;
import ObRun.ObFunction.ObApplication;
import ObRun.ObFunction.ObClientApp;
import java.awt.Component;
import java.awt.Container;
import java.io.PrintStream;
push m_function
invoke valueOf
invoke StringBuffer.<init>
expression "_ObFnc"
invoke append
invoke toString
pop m_function
ObApplication.obCallFunction(null, null, null, m_function, "", "", "");
client.clearReferences();
client = null;
System.gc();
System.out.println(ObApplication.getString("ProvideFunctionName"));
}
}
ObPanelUtils
ObPanelResource
package ObRun.ObPanel.ObPanelUtils;
import java.io.*;
import ObRun.ObFunction.ObApplication;
import java.net.URL;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
ObXYLayoutManager
package ObRun.ObPanel.ObPanelUtils;
import java.awt.*;
import java.util.*;
public ObXYLayoutManager()
{
m_components = new Vector(10, 10);
m_constraints = new Vector(10, 10);
}
i++;
}
setPositionConstraint(component, ainteger[0].intValue(), ainteger[1].intValue());
setSizeConstraint(component, ainteger[2].intValue(), ainteger[3].intValue());
}
}
{
int i = m_components.indexOf(component);
if (i != -1)
{
m_components.removeElementAt(i);
m_constraints.removeElementAt(i);
}
}
else
{
if (i != -1)
xYConstraint.m_w = i;
if (j != -1)
xYConstraint.m_h = j;
}
}
}
}
XYConstraint
ObVersionInfo
package ObRun.ObFunction;
import java.io.*;
public ObVersionInfo()
{
m_version = new String("v2400000");
}
ObRTTypes
ObByteFld
import ObRun.ObFunction.ObApplication;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
static
{
m_DEFAULTTYPE = -1;
}
public ObByteFld()
{
setEmpty();
}
public ObByteFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObByteFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String string3,
String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Byte byte1 = null;
Byte byte2 = null;
Byte byte3 = null;
Byte byte4 = null;
try
{
byte1 = new Byte(string2);
}
catch (Exception e1)
{
ObApplication.log(" byte " + ObApplication.getString("NotValidValue"));
}
try
{
byte2 = new Byte(string3);
}
catch (Exception e2)
{
ObApplication.log(" byte " + ObApplication.getString("NotValidValue"));
}
try
{
public ObByteFld(int i)
{
m_data = new Byte((byte)i);
}
{
Double double = new Double(string);
m_data = new Byte(double.byteValue());
}
obByteFld.bindStatement(preparedStatement, i);
}
case 4:
preparedStatement.setInt(i, ((Byte)getData()).intValue());
break;
default:
super.bindStatement(preparedStatement, i, j);
break;
}
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
}
}
byte b2 = getValue();
return new ObByteFld(b2 * b1);
}
ObCharFld
package ObRun.ObRTTypes;
import ObRun.ObFunction.ObApplication;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
static
{
m_DEFAULTTYPE = -1;
}
public ObCharFld()
{
setEmpty();
}
public ObCharFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObCharFld(byte b, int i, char ch, String string1, int j, String string2, String string3, String
string4, String string5, int k)
{
m_fldUsage = b;
if (i > 0)
m_cLength = i + 1;
m_designLength = i;
m_AS400DataType = ch;
m_implName = string1;
m_specialVal = new ObSpecialVal((short)j, (short)k, string2, string3, string5, string4, this);
setEmpty();
}
public ObCharFld(int i)
{
setEmpty();
if (i > 0)
m_cLength = i + 1;
}
return;
if (obField.getState() == 4)
{
setEmpty();
setState(4);
return;
}
if (obField.hasState())
setState(obField.getState());
else
setState(0);
if (obField instanceof ObCharFld)
m_data = new String(obField.getData().toString());
else
castFrom(obField);
trim();
}
{
m_data = null;
m_data = object;
}
}
b = j;
if (b >= 0)
m_data = new String(m_data.toString().substring(0, b + 1).concat(m_data.toString().trim()));
else
m_data = new String(m_data.toString().trim());
setReadState();
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
case 8:
for (int j = 0; j < ab.length; j++)
ab[j] = -1;
break;
case 2:
case 8:
for (int k = 0; k < ab.length; k++)
ab[k] = -1;
break;
case 2:
for (int i2 = 0; i2 < ab.length; i2++)
ab[i2] = 0;
break;
}
if (new String(ab).equals(string))
return true;
else
return false;
}
{
return getValue().compareTo(obField.toObCharFld().getValue()) > 0;
}
if (obField.hasState())
{
setState(obField.getState());
return;
}
ObCharFld obCharFld = obField.toObCharFld();
m_data = (String)obCharFld.getData();
setState(0);
trim();
}
ObDateFld
package ObRun.ObRTTypes;
import java.sql.*;
import java.util.*;
import ObRun.ObFunction.ObApplication;
static
{
m_DEFAULTTYPE = -1;
}
public ObDateFld()
{
setEmpty();
}
public ObDateFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObDateFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String string3,
String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Date date1 = null;
Date date2 = null;
Date date3 = null;
Date date4 = null;
ObDateFld obDateFld = null;
obDateFld = new ObDateFld(string2);
date1 = (Date)obDateFld.getData();
obDateFld = new ObDateFld(string3);
date2 = (Date)obDateFld.getData();
obDateFld = new ObDateFld(string5);
date3 = (Date)obDateFld.getData();
obDateFld = new ObDateFld(string4);
date4 = (Date)obDateFld.getData();
m_specialVal = new ObSpecialVal((short)k, (short)i2, date1, date2, date3, date4, this);
setEmpty();
}
setState(i);
}
}
else
super.bindStatement(preparedStatement, i, j);
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
if (flag)
{
m_data = null;
m_data = object;
}
}
if (date == null)
{
setNull();
return;
}
m_data = new Date(date.getTime());
setReadState();
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
{
flag = true;
}
if (flag && string1.length() < 10)
{
local = 10 - string1.length();
for (int i = 0; i < local; i++)
string1 = new StringBuffer("0").append(string1).toString();
}
try
{
local = new Integer(string1.substring(0, 4));
Integer integer1 = new Integer(string1.substring(5, 7));
Integer integer2 = new Integer(string1.substring(8, 10));
Calendar calendar = Calendar.getInstance();
calendar.set(local.intValue(), integer1.intValue() - 1, integer2.intValue(), 0, 0, 0);
calendar.set(14, 0);
m_data = calendar.getTime();
}
catch (Exception e2)
{
fromStringWithoutSeparators(string2);
}
setReadState();
}
if (string.compareTo("00000000") == 0)
{
setEmpty();
return;
}
try
{
Integer integer1 = new Integer(string.substring(0, 4));
Integer integer2 = new Integer(string.substring(4, 6));
Integer integer3 = new Integer(string.substring(6, 8));
Calendar calendar = Calendar.getInstance();
calendar.set(integer1.intValue(), integer2.intValue() - 1, integer3.intValue(), 0, 0, 0);
calendar.set(14, 0);
m_data = calendar.getTime();
}
catch (Exception e)
{
setEmpty();
}
setReadState();
}
case 8:
ab[0] = -7;
ab[1] = -7;
ab[2] = -7;
ab[3] = -7;
ab[4] = -15;
ab[5] = -14;
ab[6] = -13;
ab[7] = -15;
break;
}
return ab;
}
case 8:
ab[0] = -7;
ab[1] = -7;
ab[2] = -7;
ab[3] = -7;
ab[4] = -15;
ab[5] = -14;
ab[6] = -13;
ab[7] = -15;
break;
}
if (new String(ab).equals(string))
return true;
else
return false;
}
{
return getValue().after(obField.toObDateFld().getValue());
}
((Date)m_data).setTime(j);
}
}
{
if (hasState())
convertStateToContent();
Calendar calendar = Calendar.getInstance();
calendar.setTime((Date)m_data);
String string1 = new String(new Integer(calendar.get(1)).toString());
String string2 = new String(new Integer(calendar.get(2) + 1).toString());
if (string2.length() == 1)
string2 = new StringBuffer("0").append(string2).toString();
String string3 = new String(new Integer(calendar.get(5)).toString());
if (string3.length() == 1)
string3 = new StringBuffer("0").append(string3).toString();
String string4 = new String("-" + string2 + "-" + string3);
if (isEmpty() && !hasSpecialValues())
string4 = "0001-01-01";
return string4;
}
ObDblFld
package ObRun.ObRTTypes;
import ObRun.ObFunction.ObApplication;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
static
{
m_DEFAULTTYPE = -1;
}
public ObDblFld()
{
setEmpty();
}
public ObDblFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObDblFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String string3,
String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Double double1 = null;
Double double2 = null;
Double double3 = null;
Double double4 = null;
try
{
double1 = new Double(string2);
}
catch (Exception e1)
{
ObApplication.log(" double " + ObApplication.getString("NotValidValue"));
}
try
{
double2 = new Double(string3);
}
catch (Exception e2)
{
ObApplication.log(" double " + ObApplication.getString("NotValidValue"));
}
try
{
double3 = new Double(string5);
}
catch (Exception e3)
{
ObApplication.log(" double " + ObApplication.getString("NotValidValue"));
}
try
{
double4 = new Double(string4);
}
catch (Exception e4)
{
ObApplication.log(" double " + ObApplication.getString("NotValidValue"));
}
m_specialVal = new ObSpecialVal((short)k, (short)i2, double1, double2, double3, double4, this);
setEmpty();
}
public ObDblFld(double d)
{
m_data = new Double(d);
}
{
try
{
if (j == 8 || j == 6)
preparedStatement.setDouble(i, getValue());
else
super.bindStatement(preparedStatement, i, j);
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
}
setState(0);
}
if (new String(ab2).equals(string))
return true;
else
return false;
}
m_data = (Double)obDblFld.getData();
setState(0);
}
ObField
package ObRun.ObRTTypes;
import java.io.*;
import ObRun.ObDatabase.ObDatabaseConnection;
import ObRun.ObDatabase.ObDatabaseMgr;
import ObRun.ObEnvironment.ObLog;
import ObRun.ObFunction.ObApplication;
import ObRun.ObFunction.ObVariable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.MessageFormat;
public ObField()
{
m_owner = null;
m_fldUsage = 0;
m_fldState = 0;
m_cLength = 0;
m_designLength = 0;
m_designDecimals = 0;
m_AS400DataType = 'c';
String string = getClass().getName();
if (string.equals("ObRun.ObRTTypes.ObByteFld"))
m_cLength = 5;
else if (string.equals("ObRun.ObRTTypes.ObDblFld"))
m_cLength = 18;
else if (string.equals("ObRun.ObRTTypes.ObIntFld"))
m_cLength = 7;
else if (string.equals("ObRun.ObRTTypes.ObLongFld"))
m_cLength = 12;
else if (string.equals("ObRun.ObRTTypes.ObLongDblFld"))
m_cLength = 20;
else if (string.equals("ObRun.ObRTTypes.ObSglFld"))
m_cLength = 8;
else if (string.equals("ObRun.ObRTTypes.ObDateFld"))
m_cLength = 11;
else if (string.equals("ObRun.ObRTTypes.ObTimeFld"))
m_cLength = 9;
else if (string.equals("ObRun.ObRTTypes.ObTimeStampFld"))
m_cLength = 22;
else
m_cLength = 0;
}
else
bindStatement(preparedStatement, i, j);
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
case 1:
ObDatabaseConnection obDatabaseConnection = ObApplication.findDbMgr(true).getConnection();
if (obDatabaseConnection.supportsSQLNull(getClass().getName()))
preparedStatement.setNull(i, j);
else
{
bindAsEmpty(preparedStatement, i);
ObApplication.log(ObApplication.getResString("NullEmpty"));
}
break;
case 8:
if (m_specialVal != null && m_specialVal.hasStateLP(8) || m_specialVal != null && flag)
bindHiVal(preparedStatement, i, j);
else
{
bindAsEmpty(preparedStatement, i);
case 2:
if (m_specialVal != null && m_specialVal.hasStateLP(2) || m_specialVal != null && flag)
bindLoVal(preparedStatement, i, j);
else
{
bindAsEmpty(preparedStatement, i);
ObApplication.log(2, m_implName + ObApplication.getString("LowStateNoLP"));
}
break;
}
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
case 8:
if (m_specialVal != null)
convertState();
else
setEmpty();
break;
case 2:
if (m_specialVal != null)
convertState();
else
setEmpty();
break;
case 4:
if (m_specialVal != null)
convertState();
else
setEmpty();
break;
}
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
{
byte ab[] = new byte[i1 + 2];
for (int k1 = 0; k1 < i1 + 1; k1++)
ab[k1] = 0;
switch (j1)
{
case 1:
case 4:
switch (m_AS400DataType)
{
case 112:
i1 = m_designLength / 2 + 1;
if (i1 > 1)
for (int i2 = 0; i2 < i1 - 1; i2++)
ab[i2] = 0;
ab[i1 - 1] = 15;
break;
case 122:
for (int j2 = 0; j2 < m_designLength; j2++)
ab[j2] = -16;
break;
case 98:
i1 = 2;
if (m_designLength > 4)
i1 = 4;
for (int k2 = 0; k2 < i1; k2++)
ab[k2] = 0;
break;
}
break;
case 8:
switch (m_AS400DataType)
{
case 112:
i1 = m_designLength / 2 + 1;
if (i1 > 1)
for (int i3 = 0; i3 < i1 - 1; i3++)
ab[i3] = -103;
ab[i1 - 1] = -97;
break;
case 122:
for (int j3 = 0; j3 < m_designLength; j3++)
ab[j3] = -7;
break;
case 98:
i1 = 2;
if (m_designLength > 4)
{
i1 = 4;
ab[0] = 59;
ab[1] = -102;
ab[2] = -55;
ab[3] = -1;
ab[4] = 0;
}
else
{
ab[0] = 39;
ab[1] = 15;
ab[2] = 0;
}
break;
}
break;
case 2:
switch (m_AS400DataType)
{
case 112:
i1 = m_designLength / 2 + 1;
if (i1 > 1)
for (int k3 = 0; k3 < i1 - 1; k3++)
ab[k3] = -103;
ab[i1 - 1] = -99;
break;
case 122:
if (i1 > 1)
for (int i4 = 0; i4 < i1 - 1; i4++)
ab[i4] = -7;
ab[i1 - 1] = -39;
break;
case 98:
i1 = 2;
if (m_designLength > 4)
{
i1 = 4;
ab[0] = -60;
ab[1] = 101;
ab[2] = 54;
ab[3] = 1;
ab[4] = 0;
}
else
{
ab[0] = -40;
ab[1] = -15;
ab[2] = 0;
}
break;
}
break;
}
return ab;
}
setState(4);
return toString();
}
if (!m_specialVal.hasStateLP(8) && isAS400StateDefault(string, 8))
{
setHiVal();
return toString();
}
if (!m_specialVal.hasStateLP(2) && isAS400StateDefault(string, 2))
{
setLoVal();
return toString();
}
if (m_specialVal.hasStateLP(1) || !isAS400StateDefault(string, 1))
return null;
setNull();
return toString();
}
{
long = new Long(0L);
}
return long;
}
{
return null;
}
{
m_fldState = 1;
if (m_specialVal != null)
m_data = m_specialVal.getData(1);
}
ObFieldSQLTypes
package ObRun.ObRTTypes;
ObFixedDecFld
package ObRun.ObRTTypes;
import ObRun.ObFunction.ObApplication;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
static
{
m_DEFAULTTYPE = -1;
}
public ObFixedDecFld()
{
setEmpty();
}
public ObFixedDecFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObFixedDecFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String
string3, String string4, String string5, int i2)
{
m_fldUsage = b;
m_AS400DataType = ch;
m_implName = string1;
m_designLength = i1;
m_designDecimals = j;
m_cLength = m_designLength + 2;
BigDecimal bigDecimal1 = null;
BigDecimal bigDecimal2 = null;
BigDecimal bigDecimal3 = null;
BigDecimal bigDecimal4 = null;
try
{
bigDecimal1 = new BigDecimal(string2);
}
catch (Exception e1)
{
ObApplication.log(" fixed decimal " + ObApplication.getString("NotValidValue"));
}
try
{
bigDecimal2 = new BigDecimal(string3);
}
catch (Exception e2)
{
ObApplication.log(" fixed decimal " + ObApplication.getString("NotValidValue"));
}
try
{
bigDecimal3 = new BigDecimal(string5);
}
catch (Exception e3)
{
ObApplication.log(" fixed decimal " + ObApplication.getString("NotValidValue"));
}
try
{
bigDecimal4 = new BigDecimal(string4);
}
catch (Exception e4)
{
ObApplication.log(" fixed decimal " + ObApplication.getString("NotValidValue"));
}
m_specialVal = new ObSpecialVal((short)k, (short)i2, bigDecimal1, bigDecimal2, bigDecimal3,
bigDecimal4, this);
setEmpty();
}
m_designDecimals = 0;
m_cLength = m_designLength + 1;
}
m_data = new BigDecimal(string);
}
int j = string2.indexOf(46);
if (j > -1 && string2.length() - (j + 1) > m_designDecimals)
string2 = string2.substring(0, j + 1 + m_designDecimals);
try
{
m_data = new BigDecimal(string2);
m_data = ((BigDecimal)m_data).setScale(m_designDecimals);
}
catch (Exception e1)
{
m_data = new BigDecimal(0.0);
m_data = ((BigDecimal)m_data).setScale(m_designDecimals, 1);
}
}
setState(0);
}
ObApplication.log(e.getMessage());
setEmpty();
}
}
else
return false;
}
{
String string = ((BigDecimal)m_specialVal.getData(4)).toString();
m_data = new BigDecimal(string);
}
else
m_data = new BigDecimal(0.0);
}
convertStateToContent();
BigDecimal bigDecimal = ((BigDecimal)m_data).setScale(m_designDecimals);
return bigDecimal.toString();
}
}
ObIntFld
package ObRun.ObRTTypes;
import ObRun.ObFunction.ObApplication;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
static
{
m_DEFAULTTYPE = -1;
}
public ObIntFld()
{
setEmpty();
}
public ObIntFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObIntFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String string3,
String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Integer integer1 = null;
Integer integer2 = null;
Integer integer3 = null;
Integer integer4 = null;
try
{
integer1 = new Integer(string2);
}
catch (Exception e1)
{
ObApplication.log(" integer " + ObApplication.getString("NotValidValue"));
}
try
{
integer2 = new Integer(string3);
}
catch (Exception e2)
{
ObApplication.log(" integer " + ObApplication.getString("NotValidValue"));
}
try
{
integer3 = new Integer(string5);
}
catch (Exception e3)
{
ObApplication.log(" integer " + ObApplication.getString("NotValidValue"));
}
try
{
integer4 = new Integer(string4);
}
catch (Exception e4)
{
ObApplication.log(" integer " + ObApplication.getString("NotValidValue"));
}
m_specialVal = new ObSpecialVal((short)k, (short)i2, integer1, integer2, integer3, integer4, this);
setEmpty();
}
public ObIntFld(int i)
{
m_data = new Integer(i);
}
}
}
setState(0);
}
}
setReadState();
}
return true;
else
return false;
}
{
return getValue() <= obField.toObIntFld().getValue();
}
setState(0);
}
ObLongDblFld
package ObRun.ObRTTypes;
import java.sql.*;
import ObRun.ObFunction.ObApplication;
static
{
m_DEFAULTTYPE = -1;
}
public ObLongDblFld()
{
setEmpty();
}
public ObLongDblFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObLongDblFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String
string3, String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Double double1 = null;
Double double2 = null;
Double double3 = null;
Double double4 = null;
try
{
double1 = new Double(string2);
}
catch (Exception e1)
{
ObApplication.log(" long double " + ObApplication.getString("NotValidValue"));
}
try
{
double2 = new Double(string3);
}
catch (Exception e2)
{
ObApplication.log(" long double " + ObApplication.getString("NotValidValue"));
}
try
{
double3 = new Double(string5);
}
catch (Exception e3)
{
ObApplication.log(" long double " + ObApplication.getString("NotValidValue"));
}
try
{
double4 = new Double(string4);
}
public ObLongDblFld(double d)
{
m_data = new Double(d);
}
try
{
if (j == 8 || j == 6)
preparedStatement.setDouble(i, getValue());
else
super.bindStatement(preparedStatement, i, j);
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
setState(0);
}
return false;
}
ObLongFld
package ObRun.ObRTTypes;
import ObRun.ObFunction.ObApplication;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
static
{
m_DEFAULTTYPE = -1;
}
public ObLongFld()
{
setEmpty();
}
public ObLongFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObLongFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String string3,
String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Long long1 = null;
Long long2 = null;
Long long3 = null;
Long long4 = null;
try
{
long1 = new Long(string2);
}
catch (Exception e1)
{
ObApplication.log(" long " + ObApplication.getString("NotValidValue"));
}
try
{
long2 = new Long(string3);
}
catch (Exception e2)
{
ObApplication.log(" long " + ObApplication.getString("NotValidValue"));
}
try
{
long3 = new Long(string5);
}
catch (Exception e3)
{
ObApplication.log(" long " + ObApplication.getString("NotValidValue"));
}
try
{
long4 = new Long(string4);
}
catch (Exception e4)
{
ObApplication.log(" long " + ObApplication.getString("NotValidValue"));
}
m_specialVal = new ObSpecialVal((short)k, (short)i2, long1, long2, long3, long4, this);
setEmpty();
}
public ObLongFld(long i)
{
m_data = new Long(i);
}
}
}
setState(0);
}
}
setReadState();
}
return true;
else
return false;
}
{
return getValue() <= obField.toObLongFld().getValue();
}
setState(0);
}
ObPanelUtils
ObXYLayoutManager
package ObRun.ObPanel.ObPanelUtils;
import java.awt.*;
import java.util.*;
public ObXYLayoutManager()
{
m_components = new Vector(10, 10);
m_constraints = new Vector(10, 10);
}
{
ainteger[i] = new Integer(0);
}
i++;
}
setPositionConstraint(component, ainteger[0].intValue(), ainteger[1].intValue());
setSizeConstraint(component, ainteger[2].intValue(), ainteger[3].intValue());
}
}
XYConstraint
ObSglFld
package ObRun.ObRTTypes;
import ObRun.ObFunction.ObApplication;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
static
{
m_DEFAULTTYPE = -1;
}
public ObSglFld()
{
setEmpty();
}
public ObSglFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObSglFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String string3,
String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Float float1 = null;
Float float2 = null;
Float float3 = null;
Float float4 = null;
try
{
float1 = new Float(string2);
}
catch (Exception e1)
{
ObApplication.log(" single " + ObApplication.getString("NotValidValue"));
}
try
{
float2 = new Float(string3);
}
catch (Exception e2)
{
ObApplication.log(" single " + ObApplication.getString("NotValidValue"));
}
try
{
float3 = new Float(string5);
}
catch (Exception e3)
{
ObApplication.log(" single " + ObApplication.getString("NotValidValue"));
}
try
{
float4 = new Float(string4);
}
catch (Exception e4)
{
ObApplication.log(" single " + ObApplication.getString("NotValidValue"));
}
m_specialVal = new ObSpecialVal((short)k, (short)i2, float1, float2, float3, float4, this);
setEmpty();
}
public ObSglFld(double d)
{
m_data = new Float((float)d);
}
public ObSglFld(float f)
{
m_data = new Float(f);
}
else
castFrom(obField);
}
}
}
float f2 = getValue();
return new ObSglFld(f2 * f1);
}
ObSpecialVal
package ObRun.ObRTTypes;
import java.io.*;
import ObRun.ObFunction.ObApplication;
import java.math.BigDecimal;
import java.util.Date;
public ObSpecialVal(short s1, short s2, Object object1, Object object2, Object object3, Object object4,
ObField obField)
{
m_emptyVal = null;
m_nullVal = null;
m_hiVal = null;
m_loVal = null;
m_lpMask = 0;
m_existMask = 0;
m_lpMask = s2;
m_existMask = s1;
if ((s2 & 1) != 0)
m_nullVal = object2;
if ((s2 & 4) != 0)
m_emptyVal = object1;
if ((s2 & 8) != 0)
m_hiVal = object3;
if ((s2 & 2) != 0)
m_loVal = object4;
setDefaults(obField);
}
case 8:
String string3 = string1 + ".CharacterHighValue";
String string5 = ObApplication.getRunOptionValue(string3);
String string6 = new String("");
int j = obField.getCLength() - 1;
if (j == 0)
j = 256;
for (int k = 0; k < j; k++)
string6 = new StringBuffer(String.valueOf(string6)).append(string5).toString();
return string6;
case 2:
string4 = string1 + ".CharacterLowValue";
break;
default:
return null;
}
return ObApplication.getRunOptionValue(string4);
}
case 4:
return m_emptyVal;
case 8:
return m_hiVal;
case 2:
return m_loVal;
default:
return null;
}
}
switch (i)
{
case 4:
string3 = string1 + ".DateEmptyValue";
string2 = ObApplication.getRunOptionValue(string3);
break;
case 8:
string3 = string1 + ".DateHighValue";
string2 = ObApplication.getRunOptionValue(string3);
break;
case 2:
string3 = string1 + ".DateLowValue";
string2 = ObApplication.getRunOptionValue(string3);
break;
}
return new ObDateFld(string2);
}
case 8:
string3 = string1 + ".TimeHighValue";
string2 = ObApplication.getRunOptionValue(string3);
break;
case 2:
case 8:
string3 = string1 + ".TimestampHighValue";
string2 = ObApplication.getRunOptionValue(string3);
break;
case 2:
string3 = string1 + ".TimestampLowValue";
string2 = ObApplication.getRunOptionValue(string3);
break;
}
string2 = new StringBuffer(String.valueOf(string2)).append(" 00").toString();
return new ObTimeStampFld(string2);
}
else
return false;
}
{
String string1 = createNumericString(((ObDblFld)obField).m_designLength -
((ObDblFld)obField).m_designDecimals, ((ObDblFld)obField).m_designDecimals, false);
m_hiVal = new Double(string1);
}
if ((m_lpMask & 2) == 0)
{
String string2 = createNumericString(((ObDblFld)obField).m_designLength -
((ObDblFld)obField).m_designDecimals, ((ObDblFld)obField).m_designDecimals, true);
m_loVal = new Double(string2);
}
}
else if (obField instanceof ObIntFld)
{
if ((m_lpMask & 1) == 0)
m_nullVal = new Integer(0);
if ((m_lpMask & 4) == 0)
m_emptyVal = new Integer(0);
if ((m_lpMask & 8) == 0)
m_hiVal = new Integer(32767);
if ((m_lpMask & 2) == 0)
m_loVal = new Integer(-32768);
}
else if (obField instanceof ObLongFld)
{
long i = 2147483647;
if ((m_lpMask & 1) == 0)
m_nullVal = new Long(0L);
if ((m_lpMask & 4) == 0)
m_emptyVal = new Long(0L);
if ((m_lpMask & 8) == 0)
m_hiVal = new Long(i);
if ((m_lpMask & 2) == 0)
m_loVal = new Long(-(i + 1L));
}
else if (obField instanceof ObLongDblFld)
{
if ((m_lpMask & 1) == 0)
m_nullVal = new Double(0.0);
if ((m_lpMask & 4) == 0)
m_emptyVal = new Double(0.0);
if ((m_lpMask & 8) == 0)
{
String string3 = createNumericString(((ObLongDblFld)obField).m_designLength -
((ObLongDblFld)obField).m_designDecimals, ((ObLongDblFld)obField).m_designDecimals, false);
m_hiVal = new Double(string3);
}
if ((m_lpMask & 2) == 0)
{
String string4 = createNumericString(((ObLongDblFld)obField).m_designLength -
((ObLongDblFld)obField).m_designDecimals, ((ObLongDblFld)obField).m_designDecimals, true);
m_loVal = new Double(string4);
}
}
else if (obField instanceof ObSglFld)
{
if ((m_lpMask & 1) == 0)
m_nullVal = new Float(0.0F);
if ((m_lpMask & 4) == 0)
m_emptyVal = new Float(0.0F);
if ((m_lpMask & 8) == 0)
{
String string5 = createNumericString(((ObSglFld)obField).m_designLength -
((ObSglFld)obField).m_designDecimals, ((ObSglFld)obField).m_designDecimals, false);
m_hiVal = new Float(string5);
}
if ((m_lpMask & 2) == 0)
{
String string6 = createNumericString(((ObSglFld)obField).m_designLength -
((ObSglFld)obField).m_designDecimals, ((ObSglFld)obField).m_designDecimals, true);
m_loVal = new Float(string6);
}
}
else if (obField instanceof ObFixedDecFld)
{
if ((m_lpMask & 1) == 0)
m_nullVal = new BigDecimal(0.0);
if ((m_lpMask & 4) == 0)
m_emptyVal = new BigDecimal(0.0);
if ((m_lpMask & 8) == 0)
{
if ((m_lpMask & 1) == 0)
{
m_nullVal = new Date();
((Date)m_nullVal).setTime(28800000);
}
if ((m_lpMask & 4) == 0)
m_emptyVal = getTimeStampOverride(4).getData();
if ((m_lpMask & 8) == 0)
m_hiVal = getTimeStampOverride(8).getData();
if ((m_lpMask & 2) == 0)
m_loVal = getTimeStampOverride(2).getData();
}
}
ObStructuredFld
package ObRun.ObRTTypes;
import java.io.*;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
aobField[i1] = (ObField)aobject3[i2];
i1++;
}
}
}
else if (afield[j].getModifiers() == 1)
{
Object aobject2[] = getArrayObj(afield[j]);
for (int k = 0; k < aobject2.length; k++)
{
ObStructuredFld obStructuredFld2 = (ObStructuredFld)aobject2[k];
i1 = obStructuredFld2.getObFields(aobField, i1);
}
}
}
else if (afield[j].getType().getSuperclass().getName().equals("ObRun.ObRTTypes.ObField"))
{
aobField[i1] = (ObField)getObj(afield[j]);
i1++;
}
else if
(afield[j].getType().getSuperclass().getName().equals("ObRun.ObRTTypes.ObStructuredFld") &&
afield[j].getModifiers() == 1)
{
ObStructuredFld obStructuredFld1 = (ObStructuredFld)getObj(afield[j]);
i1 = obStructuredFld1.getObFields(aobField, i1);
}
}
return i1;
}
ObTimeFld
package ObRun.ObRTTypes;
import java.sql.*;
import ObRun.ObFunction.ObApplication;
import java.util.Calendar;
import java.util.Date;
static
{
m_DEFAULTTYPE = -1;
}
public ObTimeFld()
{
setEmpty();
}
public ObTimeFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
setEmpty();
}
public ObTimeFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String string3,
String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Date date1 = null;
Date date2 = null;
Date date3 = null;
Date date4 = null;
ObTimeFld obTimeFld = null;
obTimeFld = new ObTimeFld(string2);
date1 = (Date)obTimeFld.getData();
obTimeFld = new ObTimeFld(string3);
date2 = (Date)obTimeFld.getData();
obTimeFld = new ObTimeFld(string5);
date3 = (Date)obTimeFld.getData();
obTimeFld = new ObTimeFld(string4);
date4 = (Date)obTimeFld.getData();
m_specialVal = new ObSpecialVal((short)k, (short)i2, date1, date2, date3, date4, this);
setEmpty();
}
fromString(string);
setState(i);
}
}
if (flag)
{
m_data = null;
m_data = object;
}
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
{
Calendar calendar = Calendar.getInstance();
calendar.set(1970, 0, 1, integer1.intValue(), integer2.intValue(), integer3.intValue());
calendar.set(14, 0);
m_data = calendar.getTime();
}
}
catch (Exception e)
{
setEmpty();
}
setReadState();
}
case 8:
ab[0] = -14;
ab[1] = -13;
ab[2] = -11;
ab[3] = -7;
ab[4] = -11;
ab[5] = -7;
break;
}
return ab;
}
m_ALTERNATESQLTYPES = ObFieldSQLTypes.getAlternates(this);
return m_ALTERNATESQLTYPES;
}
case 8:
ab[0] = -14;
ab[1] = -13;
ab[2] = -11;
ab[3] = -7;
ab[4] = -11;
ab[5] = -7;
break;
}
if (new String(ab).equals(string))
return true;
else
return false;
{
setEmpty();
setState(4);
}
else if (m_specialVal.stateExists(8) && string1.compareTo(toString()) == 0)
setHiVal();
else if (m_specialVal.stateExists(2) && string2.compareTo(toString()) == 0)
setLoVal();
else if (m_specialVal.stateExists(1) && string4.compareTo(toString()) == 0)
setNull();
}
ObTimeStampFld
package ObRun.ObRTTypes;
import java.sql.*;
import java.util.*;
import ObRun.ObFunction.ObApplication;
static
{
m_DEFAULTTYPE = -1;
}
public ObTimeStampFld()
{
setEmpty();
}
public ObTimeStampFld(byte b)
{
m_fldUsage = b;
setEmpty();
}
public ObTimeStampFld(byte b, int i1, int j, char ch, String string1, int k, String string2, String
string3, String string4, String string5, int i2)
{
m_fldUsage = b;
m_designLength = i1;
m_designDecimals = j;
m_AS400DataType = ch;
m_implName = string1;
Date date1 = null;
Date date2 = null;
Date date3 = null;
Date date4 = null;
ObTimeStampFld obTimeStampFld = null;
obTimeStampFld = new ObTimeStampFld(string2);
date1 = (Date)obTimeStampFld.getData();
obTimeStampFld = new ObTimeStampFld(string3);
date2 = (Date)obTimeStampFld.getData();
obTimeStampFld = new ObTimeStampFld(string5);
date3 = (Date)obTimeStampFld.getData();
obTimeStampFld = new ObTimeStampFld(string4);
date4 = (Date)obTimeStampFld.getData();
m_specialVal = new ObSpecialVal((short)k, (short)i2, date1, date2, date3, date4, this);
setEmpty();
}
setState(i);
}
ObApplication.log(e.getMessage());
setEmpty();
}
if (flag)
{
m_data = null;
m_data = object;
}
}
setReadState();
}
catch (Exception e)
{
ObApplication.log(e.getMessage());
setEmpty();
}
}
setEmpty();
else
{
Calendar calendar = Calendar.getInstance();
calendar.set(integer1.intValue(), integer2.intValue() - 1, integer3.intValue(),
integer4.intValue(), integer5.intValue(), integer6.intValue());
calendar.set(14, 0);
m_data = calendar.getTime();
}
}
catch (Exception e)
{
fromStringWithoutSeparators(string1);
}
setReadState();
}
case 8:
ab[0] = -7;
ab[1] = -7;
ab[2] = -7;
ab[3] = -7;
ab[4] = -15;
ab[5] = -14;
ab[6] = -13;
ab[7] = -15;
ab[8] = -14;
ab[9] = -13;
ab[10] = -11;
ab[11] = -7;
ab[12] = -11;
ab[13] = -7;
ab[14] = -7;
ab[15] = -7;
ab[16] = -7;
ab[17] = -7;
ab[18] = -7;
ab[19] = -7;
break;
}
return ab;
}
case 8:
ab[0] = -7;
ab[1] = -7;
ab[2] = -7;
ab[3] = -7;
ab[4] = -15;
ab[5] = -14;
ab[6] = -13;
ab[7] = -15;
ab[8] = -14;
ab[9] = -13;
ab[10] = -11;
ab[11] = -7;
ab[12] = -11;
ab[13] = -7;
ab[14] = -7;
ab[15] = -7;
ab[16] = -7;
ab[17] = -7;
ab[18] = -7;
ab[19] = -7;
break;
}
if (new String(ab).equals(string))
return true;
else
return false;
}
return getValue().equals(obField.toObTimeStampFld().getValue()) ||
getValue().after(obField.toObTimeStampFld().getValue());
}
{
setState(0);
ObTimeStampFld obTimeStampFld = obField.toObTimeStampFld();
Date date1 = obTimeStampFld.getValue();
Date date2 = getValue();
return new ObTimeStampFld(new Date(date1.getTime() * date2.getTime()));
}
setState(0);
if (m_specialVal == null || m_specialVal.m_existMask == 0)
return;
String string1 = new ObTimeStampFld((Date)m_specialVal.getData(8)).toString();
String string2 = new ObTimeStampFld((Date)m_specialVal.getData(2)).toString();
String string3 = new ObTimeStampFld((Date)m_specialVal.getData(4)).toString();
String string4 = new ObTimeStampFld((Date)m_specialVal.getData(1)).toString();
if (m_specialVal.stateExists(4) && string3.compareTo(toString()) == 0)
{
setEmpty();
setState(4);
}
else if (m_specialVal.stateExists(8) && string1.compareTo(toString()) == 0)
setHiVal();
else if (m_specialVal.stateExists(2) && string2.compareTo(toString()) == 0)
setLoVal();
else if (m_specialVal.stateExists(1) && string4.compareTo(toString()) == 0)
setNull();
}
ObBldMgr.ObBuildClient.class
ObBldMgr.ObBuildConnection.class
ObBldMgr.ObBuildInfo.class
ObBldMgr.ObBuildJDBC.class
ObBldMgr.ObBuildManager.class
ObBldMgr.ObBuildQueue.class
ObBldMgr.ObBuildRequest.class
ObBldMgr.ObBuildSchema.class
ObBldMgr.ObBuildSocketStream.class
ObBldMgr.ObBuildStatus.class
ObBldMgr.ObBuildStatusInfo.class
ObBldMgr.ObCompileJava.class
ObBldMgr.ObCompileRequest.class
ObBldMgr.ObCompileSource.class
ObBldMgr.ObParseGeneratedSQL.class
ObBldMgr.ObRetrieveLstFile.class
ObBldMgr.ObRmtBuildRequest.class
ObBldMgr.ObSourceFile.class
ObBldMgr.ObSQLBuildOption.class
ObFunction.ObServerApp.class
ObFunction.ObVariable.class
ObRun.ObComms.ObAS400Conversation.class
ObRun.ObComms.ObAS400SocketStream.class
ObRun.ObComms.ObAS400SocketStream$AS400DataReading.class
ObRun.ObComms.ObAS400SocketStream$AS400ErrorHandling.class
ObRun.ObComms.ObAS400SocketStream$ObAS400CallInfo.class
ObRun.ObComms.ObClientConnect.class
ObRun.ObComms.ObClientListen.class
ObRun.ObComms.ObClientType.class
ObRun.ObComms.ObConversation.class
ObRun.ObComms.ObDataSocketStream.class
ObRun.ObComms.ObDispatchSocketStream.class
ObRun.ObComms.ObNotifyConnect.class
ObRun.ObComms.ObNotifyEvent.class
ObRun.ObComms.ObObjectConversation.class
ObRun.ObComms.ObObjectSocketStream.class
ObRun.ObComms.ObRemoteException.class
ObRun.ObComms.ObService.class
ObRun.ObComms.ObSocketListen.class
ObRun.ObComms.ObSocketService.class
ObRun.ObDatabase.ObDatabaseConnection.class
ObRun.ObDatabase.ObDatabaseMgr.class
ObRun.ObDatabase.ObSocketStream.class
ObRun.ObDatabase.ObSQLDataTypes.class
ObRun.ObDatabase.ObSQLTypeConversion.class
ObRun.ObDatabase.ObValidSQLType.class
ObRun.ObEnvironment.ObException.class
ObRun.ObEnvironment.ObJavaApi.class
ObRun.ObEnvironment.ObLog.class
ObRun.ObEnvironment.ObODBCOptionValues.class
ObRun.ObEnvironment.ObOptionsElement.class
ObRun.ObEnvironment.ObOptionsList.class
ObRun.ObEnvironment.ObRunOptions.class
ObRun.ObEnvironment.ObStringResource.class
ObRun.ObEnvironment.ObView.class
ObRun.ObFunction.ObApplication.class
ObRun.ObFunction.ObCall.class
ObRun.ObFunction.ObCallInfo.class
ObRun.ObFunction.ObCallMgr.class
ObRun.ObFunction.ObClientApp.class
ObRun.ObFunction.ObFncParameter.class
ObRun.ObFunction.ObFunction.class
ObRun.ObFunction.ObFunctionHandler.class
ObRun.ObFunction.ObLocalJavaCall.class
ObRun.ObFunction.ObMessageLog.class
ObRun.ObFunction.ObMessageLog$ObMenuListener.class
ObRun.ObFunction.ObPanel.class
ObRun.ObFunction.ObRemoteJavaCall.class
ObRun.ObFunction.ObRemoteRPGCall.class
ObRun.ObFunction.ObServerApp.class
ObRun.ObFunction.ObValidElement.class
ObRun.ObFunction.ObVariable.class
ObRun.ObFunction.ObVariableGroup.class
ObRun.ObPanel.ObCtrlData.ObBeanData.class
ObRun.ObPanel.ObCtrlData.ObCheckboxData.class
ObRun.ObPanel.ObCtrlData.ObColumnHeadingData.class
ObRun.ObPanel.ObCtrlData.ObComboData.class
ObRun.ObPanel.ObCtrlData.ObControlState.class
ObRun.ObPanel.ObCtrlData.ObCtrlData.class
ObRun.ObPanel.ObCtrlData.ObDialogData.class
ObRun.ObPanel.ObCtrlData.ObEditData.class
ObRun.ObPanel.ObCtrlData.ObEventMap.class
ObRun.ObPanel.ObCtrlData.ObGridData.class
ObRun.ObPanel.ObCtrlData.ObKeyStrokeMap.class
ObRun.ObPanel.ObCtrlData.ObKeyStrokeMap$ObKeyDetails.class
ObRun.ObPanel.ObCtrlData.ObLabelData.class
ObRun.ObPanel.ObCtrlData.ObListData.class
ObRun.ObPanel.ObCtrlData.ObLogicalEvents.class
ObRun.ObPanel.ObCtrlData.ObMenubarData.class
ObRun.ObPanel.ObCtrlData.ObMenuData.class
ObRun.ObPanel.ObCtrlData.ObMenuitemData.class
ObRun.ObPanel.ObCtrlData.ObMultilineEditData.class
ObRun.ObPanel.ObCtrlData.ObPasswordData.class
ObRun.ObPanel.ObCtrlData.ObPictureData.class
ObRun.ObPanel.ObCtrlData.ObPushbuttonData.class
ObRun.ObPanel.ObCtrlData.ObRadiobuttonData.class
ObRun.ObPanel.ObCtrlData.ObSeparatorData.class
ObRun.ObPanel.ObCtrlData.ObSpinData.class
ObRun.ObPanel.ObCtrlData.ObStaticData.class
ObRun.ObPanel.ObCtrlData.ObStatusbarData.class
ObRun.ObPanel.ObCtrlData.ObToolbarbuttonData.class
ObRun.ObPanel.ObCtrlData.ObToolbarData.class
ObRun.ObPanel.ObCtrlData.ObTopAppData.class
ObRun.ObPanel.ObCtrlData.ObUserAPI.class
ObRun.ObPanel.ObCtrlData.ObValuePairList.class
ObRun.ObPanel.ObCtrlData.ObValuePairList$ObValuePair.class
ObRun.ObPanel.ObCtrlData.ObWindowData.class
ObRun.ObPanel.ObCtrlGui.ObBackgroundPanel.class
ObRun.ObPanel.ObCtrlGui.ObBaseGridEditorDelegate.class
ObRun.ObPanel.ObCtrlGui.ObBasicTreeCellRenderer.class
ObRun.ObPanel.ObCtrlGui.ObBeanGui.class
ObRun.ObPanel.ObCtrlGui.ObButton.class
ObRun.ObPanel.ObCtrlGui.ObCheckboxGridEditorDelegate.class
ObRun.ObPanel.ObCtrlGui.ObCheckboxGui.class
ObRun.ObPanel.ObCtrlGui.ObCheckBoxTreeCellRenderer.class
ObRun.ObPanel.ObCtrlGui.ObClockTick.class
ObRun.ObPanel.ObCtrlGui.ObColumnHeadingGui.class
ObRun.ObPanel.ObCtrlGui.ObComboGridEditorDelegate.class
ObRun.ObPanel.ObCtrlGui.ObComboGui.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$1.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$ObDateDocument.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$ObLowerCaseDocument.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$ObNumericDocument.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$ObPopupItem.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$ObTimeDocument.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$ObTimeStampDocument.class
ObRun.ObPanel.ObCtrlGui.ObCtrlGui$ObUpperCaseDocument.class
ObRun.ObPanel.ObCtrlGui.ObDialogGui.class
ObRun.ObPanel.ObCtrlGui.ObEditGridEditorDelegate.class
ObRun.ObPanel.ObCtrlGui.ObEditGui.class
ObRun.ObPanel.ObCtrlGui.ObGridCellEditor.class
ObRun.ObPanel.ObCtrlGui.ObGridCellEditor$ObMouseAdapter.class
ObRun.ObPanel.ObCtrlGui.ObGridGui.class
ObRun.ObPanel.ObCtrlGui.ObGridGui$ObGridColumnListener.class
ObRun.ObPanel.ObCtrlGui.ObGridGui$ObTableListener.class
ObRun.ObPanel.ObCtrlGui.ObGridModel.class
ObRun.ObPanel.ObCtrlGui.ObLabelGui.class
ObRun.ObPanel.ObCtrlGui.ObLabelGui$ObLabel.class
ObRun.ObPanel.ObCtrlGui.ObListGui.class
ObRun.ObPanel.ObCtrlGui.ObMenubarGui.class
ObRun.ObPanel.ObCtrlGui.ObMenuGui.class
ObRun.ObPanel.ObCtrlGui.ObMenuitemGui.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$1.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$2.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$3.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$4.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$5.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$6.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$7.class
ObRun.ObPanel.ObCtrlGui.ObMultilineEditGui$UndoHandler.class
ObRun.ObPanel.ObCtrlGui.ObPasswordGridEditorDelegate.class
ObRun.ObPanel.ObCtrlGui.ObPasswordGui.class
ObRun.ObPanel.ObCtrlGui.ObPictureGridEditorDelegate.class
ObRun.ObPanel.ObCtrlGui.ObPictureGui.class
ObRun.ObPanel.ObCtrlGui.ObPushbuttonGui.class
ObRun.ObPanel.ObCtrlGui.ObRadiobuttonGui.class
ObRun.ObPanel.ObCtrlGui.ObSeparatorGui.class
ObRun.ObPanel.ObCtrlGui.ObSpinGui.class
ObRun.ObPanel.ObCtrlGui.ObStaticGui.class
ObRun.ObPanel.ObCtrlGui.ObStaticGui$ObStatic.class
ObRun.ObPanel.ObCtrlGui.ObStatusbarGui.class
ObRun.ObPanel.ObCtrlGui.ObTabSequence.class
ObRun.ObPanel.ObCtrlGui.ObToolbarbuttonGui.class
ObRun.ObPanel.ObCtrlGui.ObToolbarGui.class
ObRun.ObPanel.ObCtrlGui.ObTopAppGui.class
ObRun.ObPanel.ObCtrlGui.ObWindowGui.class
ObRun.ObPanel.ObLaunch.class
ObRun.ObPanel.ObLaunch$ObApplet.class
ObRun.ObPanel.ObPanelUtils.ObPanelResource.class
ObRun.ObPanel.ObPanelUtils.ObXYLayoutManager.class
ObRun.ObPanel.ObPanelUtils.XYConstraint.class
ObRun.ObPanel.ObVersionInfo.class
ObRun.ObRTTypes.ObByteFld.class
ObRun.ObRTTypes.ObCharFld.class
ObRun.ObRTTypes.ObDateFld.class
ObRun.ObRTTypes.ObDblFld.class
ObRun.ObRTTypes.ObField.class
ObRun.ObRTTypes.ObFieldSQLTypes.class
ObRun.ObRTTypes.ObFixedDecFld.class
ObRun.ObRTTypes.ObIntFld.class
ObRun.ObRTTypes.ObLongDblFld.class
ObRun.ObRTTypes.ObLongFld.class
ObRun.ObRTTypes.ObPanelUtils.ObXYLayoutManager.class
ObRun.ObRTTypes.ObPanelUtils.XYConstraint.class
ObRun.ObRTTypes.ObSglFld.class
ObRun.ObRTTypes.ObSpecialVal.class
ObRun.ObRTTypes.ObStructuredFld.class
ObRun.ObRTTypes.ObTimeFld.class
ObRun.ObRTTypes.ObTimeStampFld.class
ObBldMgr ObBuildClient
ObBuildConnection
ObBuildInfo
ObBuildJDBC
ObBuildManager
ObBuildQueue
ObBuildRequest
ObBuildSchema
ObBuildSocketStrea
m
ObBuildStatus
ObBuildStatusInfo
ObCompileJava
ObCompileRequest
ObCompileSource
ObParseGeneratedS
QL
ObRetrieveLstFile
ObRmtBuildReques
t
ObSourceFile
ObSQLBuildOption
ObFunctio ObServerApp
n
ObVariable
ObRun ObComms ObAS400Conversation
ObAS400SocketStream
ObAS400SocketStream$AS400DataRe
ading
ObAS400SocketStream$AS400ErrorH
andling
ObAS400SocketStream$ObAS400Call
Info
ObClientConnect
ObClientListen
ObClientType
ObConversation
ObDataSocketStream
ObDispatchSocketStream
ObNotifyConnect
ObNotifyEvent
ObObjectConversation
ObObjectSocketStream
ObRemoteException
ObService
ObSocketListen
ObSocketService
ObDatabase ObDatabaseConnection
ObDatabaseMgr
ObSocketStream
ObSQLDataTypes
ObSQLTypeConversion
ObValidSQLType
ObEnvironment ObException
ObJavaApi
ObLog
ObODBCOptionValues
ObOptionsElement
ObOptionsList
ObRunOptions
ObStringResource
ObView
ObFunction ObApplication
ObCall
ObCallInfo
ObCallMgr
ObClientApp
ObFncParameter
ObFunction
ObFunctionHandler
ObLocalJavaCall
ObMessageLog
ObMessageLog$ObMenuListener
ObPanel
ObRemoteJavaCall
ObRemoteRPGCall
ObServerApp
ObValidElement
ObVariable
ObVariableGroup
ObPanel ObCtrlData ObBeanData
ObCheckboxData
ObColumnHeadingData
ObComboData
ObControlState
ObCtrlData
ObDialogData
ObEditData
ObEventMap
ObGridData
ObKeyStrokeMap
ObKeyStrokeMap$ObKeyDetai
ls
ObLabelData
ObListData
ObLogicalEvents
ObMenubarData
ObMenuData
ObMenuitemData
ObMultilineEditData
ObPasswordData
ObPictureData
ObPushbuttonData
ObRadiobuttonData
ObSeparatorData
ObSpinData
ObStaticData
ObStatusbarData
ObToolbarbuttonData
ObToolbarData
ObTopAppData
ObUserAPI
ObValuePairList
ObValuePairList$ObValuePair
ObWindowData
ObCtrlGui ObBackgroundPanel
ObBaseGridEditorDelegate
ObBasicTreeCellRenderer
ObBeanGui
ObButton
ObCheckboxGridEditorDelegat
e
ObCheckboxGui
ObCheckBoxTreeCellRenderer
ObClockTick
ObColumnHeadingGui
ObComboGridEditorDelegate
ObComboGui
ObCtrlGui
ObCtrlGui$1
ObCtrlGui$ObDateDocument
ObCtrlGui$ObLowerCaseDocu
ment
ObCtrlGui$ObNumericDocume
nt
ObCtrlGui$ObPopupItem
ObCtrlGui$ObTimeDocument
ObCtrlGui$ObTimeStampDocu
ment
ObCtrlGui$ObUpperCaseDocu
ment
ObDialogGui
ObEditGridEditorDelegate
ObEditGui
ObGridCellEditor
ObGridCellEditor$ObMouseAd
apter
ObGridGui
ObGridGui$ObGridColumnList
ener
ObGridGui$ObTableListener
ObGridModel
ObLabelGui
ObLabelGui$ObLabel
ObListGui
ObMenubarGui
ObMenuGui
ObMenuitemGui
ObMultilineEditGui
ObMultilineEditGui$1
ObMultilineEditGui$2
ObMultilineEditGui$3
ObMultilineEditGui$4
ObMultilineEditGui$5
ObMultilineEditGui$6
ObMultilineEditGui$7
ObMultilineEditGui$UndoHan
dler
ObPasswordGridEditorDelegat
e
ObPasswordGui
ObPictureGridEditorDelegate
ObPictureGui
ObPushbuttonGui
ObRadiobuttonGui
ObSeparatorGui
ObSpinGui
ObStaticGui
ObStaticGui$ObStatic
ObStatusbarGui
ObTabSequence
ObToolbarbuttonGui
ObToolbarGui
ObTopAppGui
ObWindowGui
ObLaunch
ObLaunch$ObApplet
ObPanelUtils ObPanelResource
ObXYLayoutManager
XYConstraint
ObVersionInfo
ObRTTypes ObByteFld
ObCharFld
ObDateFld
ObDblFld
ObField
ObFieldSQLTypes
ObFixedDecFld
ObIntFld
ObLongDblFld
ObLongFld
ObPanelUtils ObXYLayoutManager
XYConstraint
ObSglFld
ObSpecialVal
ObStructuredFld
ObTimeFld
ObTimeStampFld