Version 1.3.9 comes with the following
changes:
- New Look and Felt Swing JTable LOVs.
- The LOV can be sorted on any column by clicking the
correspondant header.
- You can also chose what column to use for the search by
right-clicking the header.
- As it is rendered as a Swing JTable, you can resize and move
columns.
- The LOVs' label buttons can be defined, and can also support
icons.
- Each column can be used to validate a field, so that, the
EMPNO column can be used to validate the EMPNO item, and the
ENAME column to validate the ENAME item, and so on.
- Finally, the LOV can return value to up to three different
items for each column.
The laf.olb object library has been updated to include two new
Object Groups in the GROUPS Object Library Tab Group : GRP_LAF_LOV
and GRP_LAF_LOV_STND:
The LAF_JDAPI tools has been modified to find standard LOVs in
.FMB module and switch them to LAF LOVs.
See the LAF_LOV Java Bean properties documentation.
- New Look and Felt Alert Boxes
They inherit the current
color scheme, and can have more then three options
For Alerts that have to
support numerous options, you can replace the buttons by a
Poplist
You can also define your
own icon to display in the dialog box.
2 methods have been
added to the DrawLAF Java Bean:
DISPLAY_ALERT() to display
the Alert Box
GET_ALERT_BUTTON() to get the Alert Box
button clicked
- New methods added to the DrawLAF Java
Bean
SET_CBOX_BG_COLOR()
It takes a
String that contains a RGB color. The color will be applied to all
the CheckBoxes in the form.
e.g.: Set_Custom_Property( 'BL.BEAN', 1,
SET_CBOX_BG_COLOR, 'r255g255b255' ) ;
The CSS equivalent tag is :
checkbox-background-color It must be present in a
section of type : gui
e.g.:
checkbox-background-color:r255g255b255 If
you want to change the background to one particular Checkbox, use
the same method on the CheckBox Item itself:
Set_Custom_Property( 'BL.CHECKBOX', 1,
'SET_CBOX_BG_COLOR', 'r255g255b0' )
;
SET_SCHEME_COLORS()
It allows
the developer to give his/her own LAF scheme colors
The
color that can be defined are the
following: Set_Custom_Property
CSS GUI
property Color keyword
keyword -------------------- -----------------
-------------------------- Main
color color
scheme-current-color Main color
light color_light
scheme-current-color-light Selected item
color select
scheme-select-color Focus item
color focus
scheme-focus-color Disable item
color disable
scheme-disable-color List selection
color listselect
scheme-listselection-color
Set_Custom_Property( 'CTRL.BEAN', 1,
'SET_SCHEME_COLORS',
'color=r255g40b60,color_light=r200g100b50,focus=r255g255b0,disable=r40g40b40,
listselect=r0g0b255,select=r100g255b255' ) ;
in
the CSS file:
scheme-current-color:r255g40b60
scheme-current-color-light:r200g100b50
scheme-focus-color:r255g255b0
scheme-select-color:r100g255b255
scheme-disable-color:r60g60b60
scheme-listselection-color:r0g0b255
- New method added to the LAF_XP_Button
PJC.
SET_SHARED_IMAGE_NAME()
When
you set images on a LAF button located in a multi-record
table-block, the image is loaded each time for every button, so
that it consumes memory, especially if you use different images
for mouse on, mouse off, mouse clicked and disable icon. With
the new method, the image is loaded and stored only once for the
whole set of buttons to save memory. It is used to give a name
to the button so that the PJC can share the different
images
Set_Custom_Property( 'EMP.BT', ALL_RECORDS,
'SET_SHARED_IMAGE_NAME','button1' ); Synchronize;
It
must be followed by a synchronize instruction.
Then after,
the subsequent calls to the SET_IMAGE_XXX methods will use only
one image for every buttons:
Set_Custom_Property(
'EMP.BT', ALL_RECORDS, 'SET_IMAGE_OFF','/all-24.gif' );
Set_Custom_Property( 'EMP.BT', ALL_RECORDS,
'SET_IMAGE_PRESSED','/bottle-24.gif' );
See the old version new
features.
|