Project

General

Profile

8239.patch

Radu Apetrii, 02/01/2024 10:06 AM

Download (5.77 KB)

View differences:

new/src/com/goldencode/p2j/ui/EditorWidget.java 2024-02-01 14:33:25 +0000
2 2
** Module   : EditorWidget.java
3 3
** Abstract : server side Editor widget implementation
4 4
**
5
** Copyright (c) 2006-2022, Golden Code Development Corporation.
5
** Copyright (c) 2006-2024, Golden Code Development Corporation.
6 6
**
7 7
** -#- -I- --Date-- --JPRM-- ---------------------------Description----------------------------
8 8
** 001 SIY 20060427   @26084 Server side part of the EDITOR widget.
......
74 74
**     EVL 20221122          Adding suppot for LARGE attribute to be serialized on the client side.
75 75
** 042 SAT 20230927          Changed the calls of LogicalTerminal.setEditorCursorOffset() to 
76 76
**                           LogicalTerminal.setCursorOffset().
77
** 043 RAA 20240201          Added unparsedValue parameter to setScreenValue. 
77 78
*/
78 79

  
79 80
/*
......
2052 2053
    *          The value to be set via SCREEN-VALUE attribute.
2053 2054
    * @param   inUIStmt
2054 2055
    *          Flag indicating this call originates from a UI statement.
2056
    * @param   unparsedValue
2057
    *          The value to be set via SCREEN-VALUE before suffering parse changes. This can be omitted
2058
    *          if it is not mandatory during validation.
2055 2059
    *          
2056 2060
    * @return  <code>true</code> if the caller can proceed, as the screen-value can be set.
2057 2061
    */
2058 2062
   @Override
2059
   boolean setScreenValue(ScreenBuffer frameBuf, Object value, boolean inUIStmt)
2063
   boolean setScreenValue(ScreenBuffer frameBuf, Object value, boolean inUIStmt, character unparsedValue)
2060 2064
   {
2061 2065
      if (value instanceof BaseDataType && ((BaseDataType) value).isUnknown())
2062 2066
      {
new/src/com/goldencode/p2j/ui/SelectionListWidget.java 2024-02-01 14:35:21 +0000
2 2
** Module   : SelectionListWidget.java
3 3
** Abstract : server side selection list widget implementation
4 4
**
5
** Copyright (c) 2005-2022, Golden Code Development Corporation.
5
** Copyright (c) 2005-2024, Golden Code Development Corporation.
6 6
**
7 7
** -#- -I- --Date-- --JPRM-- -----------------------------Description----------------------------
8 8
** 001 NVS 20051026   @23495 Created initial version.
......
64 64
**     VVT 20220405          Regression fixed: zero selection list widget height, introduced in
65 65
**                           rev. 13675. See #5937-79.
66 66
** 027 RAA 20231115          Added unparsedValue parameter to validateScreenValue function.
67
** 028 RAA 20240201          Added unparsedValue parameter to setScreenValue.
67 68
*/
68 69
/*
69 70
** This program is free software: you can redistribute it and/or modify
......
913 914
    *          The value to be set via SCREEN-VALUE attribute.
914 915
    * @param   inUIStmt
915 916
    *          Flag indicating this call originates from a UI statement.
917
    * @param   unparsedValue
918
    *          The value to be set via SCREEN-VALUE before suffering parse changes. This can be omitted
919
    *          if it is not mandatory during validation.
916 920
    *          
917 921
    * @return  <code>true</code> if the caller can proceed, as the screen-value can be set.
918 922
    */
919 923
   @Override 
920
   boolean setScreenValue(ScreenBuffer frameBuf, Object value, boolean inUIStmt)
924
   boolean setScreenValue(ScreenBuffer frameBuf, Object value, boolean inUIStmt, character unparsedValue)
921 925
   {
922 926
      if (!(value instanceof character))
923 927
      {
......
932 936
         cvalue.setUnknown();
933 937
      }
934 938

  
935
      return super.setScreenValue(frameBuf, cvalue, inUIStmt);
939
      return super.setScreenValue(frameBuf, cvalue, inUIStmt, unparsedValue);
936 940
   }
937 941
   
938 942
   /**
new/src/com/goldencode/p2j/ui/ToggleBoxWidget.java 2024-02-01 14:36:23 +0000
2 2
** Module   : ToggleBoxWidget.java
3 3
** Abstract : Toggle-box widget.
4 4
**
5
** Copyright (c) 2010-2022, Golden Code Development Corporation.
5
** Copyright (c) 2010-2024, Golden Code Development Corporation.
6 6
**
7 7
** -#- -I- --Date-- ---------------------------------Description---------------------------------
8 8
** 001 SVL 20101004 Created initial version.
......
44 44
**                  realized.
45 45
** 021 AL2 20230929 Removed previous fix regarding setChecked being ignored while not realized. The setter
46 46
**                  updates the screen-value anyway. The ASSIGN however has a quirk that was misleading here.
47
** 022 RAA 20240201 Added unparsedValue parameter to setScreenValue.
47 48
*/
48 49
/*
49 50
** This program is free software: you can redistribute it and/or modify
......
179 180
    *          The value to be set via SCREEN-VALUE attribute.
180 181
    * @param   inUIStmt
181 182
    *          Flag indicating this call originates from a UI statement.
183
    * @param   unparsedValue
184
    *          The value to be set via SCREEN-VALUE before suffering parse changes. This can be omitted
185
    *          if it is not mandatory during validation.
182 186
    *          
183 187
    * @return  <code>true</code> if the caller can proceed, as the screen-value can be set.
184 188
    */
185 189
   @Override
186
   boolean setScreenValue(ScreenBuffer frameBuf, Object value, boolean inUIStmt)
190
   boolean setScreenValue(ScreenBuffer frameBuf, Object value, boolean inUIStmt, character unparsedValue)
187 191
   {
188 192
      if (value instanceof BaseDataType && ((BaseDataType) value).isUnknown())
189 193
      {
190 194
         ((BaseDataType) value).assign(new logical(false));
191 195
      }
192 196
      
193
      return super.setScreenValue(frameBuf, value, inUIStmt);
197
      return super.setScreenValue(frameBuf, value, inUIStmt, unparsedValue);
194 198
   }
195 199
   
196 200
   /**