Here is a Java Bean to attrack the attention of the end-user when a message is displayed in the status bar.
It "flashes" the status bar using different colors, depending on the message severity.
Get This Java Bean created by Andreas Weiden.
To content | To menu | To search
Friday, March 27 2015
By francois degrelle on Friday, March 27 2015, 15:29 - PJC - Javabean
Here is a Java Bean to attrack the attention of the end-user when a message is displayed in the status bar.
It "flashes" the status bar using different colors, depending on the message severity.
Get This Java Bean created by Andreas Weiden.
By francois degrelle on Friday, March 27 2015, 15:28 - PJC - Javabean
Purpose
Here
is a Forms 11g Pluggable Java Component that allows sending back to the
Forms application each key pressed in a Text Item (single or
multi-line).
The single-line PJC extends the VTextField class.
The multi-line PJC extends the VTextArea class.
This PJC can only work with the Forms 11g version. It won't work with any older version like 10g or 9i.
The implementation class of the single-Line Text Item
oracle.forms.fd.KeyPressedTextItem
The implementation class of the multi-Line Text Item
oracle.forms.fd.KeyPressedTextArea
The methods you can call
Set the Java Console logging mode (true/false)
Set_Custom_Property('BLOCK.ITEM',1,'LOG','true|false');
By default, the logging mode is set to false.
e.g.:
-- set the logging on --
Set_Custom_Property( 'BL.TEXTITEM', 1, 'LOG', 'true' ) ;
The event fired by the PJCs
KEY_PRESSED
It is constituted by 3 parameters to get the key code, the key char and the key modifier.
To know what text item has just fired the event, ask the :SYSTEM.CURSOR_ITEM variable.
When-Custom-Item-Event:
DECLARE
eventName varchar2(30) := :system.custom_item_event;
eventValues ParamList;
eventValueType number;
LC$Code varchar2(25); -- code
LC$Char varchar2(25); -- char
LC$Modif varchar2(25); -- modifier
BEGIN
IF (eventName='KEY_PRESSED') THEN
eventValues := get_parameter_list(:system.custom_item_event_parameters);
get_parameter_attr(eventValues,'KEY_CODE',eventValueType, LC$Code);
get_parameter_attr(eventValues,'KEY_CHAR',eventValueType, LC$Char);
get_parameter_attr(eventValues,'KEY_MODIFIER',eventValueType, LC$Modif);
:BL.RESULT := :System.cursor_item || ' Key pressed:'|| LC$Code || ' (' || LC$Char||') '||' modif:'||LC$Modif ;
Synchronize ;
By francois degrelle on Friday, March 27 2015, 15:27 - PJC - Javabean
Purpose
Here is a PJC that includes a menu in a Text Item.
The implementation class of the PJC
oracle.forms.fd.ComboMenuPJC
The methods you can call
Set_Custom_Property('BLOCK.TEXT_ITEM', 1, 'SET_MENU', 'menu_description');
menu_desription contains the menu definition in a XML format:
Declare
LC$Menu Varchar2(32000);
Begin
LC$Menu := '<main>
<label>Machines</label>
<menu>
<label>Cars</label>
<smenu><label>Japaneese</label><item>Toyota Prius</item></smenu>
<smenu><label>Europeen</label><item>Mercedes</item><item>BMW</item><smenu><label>French</label><item>Peugeot
207</item></smenu></smenu>
</menu>
<menu>
<label>Planes</label>
<smenu><label>Airbus</label><item>A350</item><item>A380</item></smenu>
<item>Boeing 777</item>
</menu>
</main>' ;
Set_Custom_Property('BLOCK.TEXT_ITEM', 1, 'SET_MENU', LC$Menu);
End;
The content of a complete sub-menu must be written on the same single line between <smenu> and </smenu> tags.
e.g. :
<smenu><label>Japaneese</label><item>Toyota Prius</item></smenu>
Only values included between <item> and </item> tags are real values you can use to populate the Text Item.
Set_Custom_Property('BLOCK.TEXT_ITEM', 1, 'SET_BORDER', 'border');
border can be one of the following:
- line (défault)
- raised
- lowered
- etched
- null
Set_Custom_Property('BLOCK.TEXT_ITEM', 1, 'SET_LOG', 'true');
By francois degrelle on Friday, March 27 2015, 15:26 - PJC - Javabean
Mark Striekwold has just released a new Java Bean allowing the developer to show a PDF document inside the Forms application.
By francois degrelle on Friday, March 27 2015, 15:26 - PJC - Javabean
Hafed Benteftifa has just released his FRITE - Forms Rich Text Editor - alowing the Oracle Forms application to edit HTML content.
This is just the kind of Java Bean, developers and end-users were waiting for years !
Don't waste any more time, run and get it !
« previous entries - page 3 of 13 - next entries »