Issue 18213 - Event "itemstatechanged" triggered when Listbox item is selected via API
Summary: Event "itemstatechanged" triggered when Listbox item is selected via API
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 08:35 UTC by berend.cornelius
Modified: 2017-05-20 11:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Java Source code (5.33 KB, text/plain)
2003-08-14 08:37 UTC, berend.cornelius
no flags Details
Java class file (3.89 KB, application/octet-stream)
2003-08-14 08:38 UTC, berend.cornelius
no flags Details
class file of Listener (1.23 KB, application/octet-stream)
2003-08-14 08:39 UTC, berend.cornelius
no flags Details
Batch file (317 bytes, text/plain)
2003-08-14 08:40 UTC, berend.cornelius
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description berend.cornelius 2003-08-14 08:35:18 UTC
When selecting an arbitrary Listbox item in an API dialog Listbox via API
("xListBox.selectItem("MyItemName")") the event "itemstatechanged" is triggered.
This behaviour only occurs when the application is connecting to the office
instance remotely. 
By using the model of the listbox to select an item I could successfully
workaround this problem (Therefor I am in no great need for a fast bugfix).
See Java bugdoc attached. Just adapt the paths in the batch file to your own ones.
Comment 1 berend.cornelius 2003-08-14 08:37:35 UTC
Created attachment 8452 [details]
Java Source code
Comment 2 berend.cornelius 2003-08-14 08:38:39 UTC
Created attachment 8453 [details]
Java class file
Comment 3 berend.cornelius 2003-08-14 08:39:31 UTC
Created attachment 8454 [details]
class file of Listener
Comment 4 berend.cornelius 2003-08-14 08:40:08 UTC
Created attachment 8455 [details]
Batch file
Comment 5 marc.neumann 2003-09-16 10:38:43 UTC
"According to the OpenOffice.org roadmap
(http://tools.openoffice.org/releases) this issue was retargeted to
OOo Later." 
Comment 6 Frank Schönheit 2003-10-13 09:21:58 UTC
accepting
Comment 7 Frank Schönheit 2003-10-13 09:27:56 UTC
fs->bc: can you please supply a bug doc which runs out of the box? The
attached RemoveListBox.jar uses a namespace
(com.sun.star.wizards.common.*) and classes (such as UNODialogs and
Tools) which are not available in a normal office installation.
Thanks!
Comment 8 Frank Schönheit 2003-10-13 09:47:13 UTC
fs->bs: sorry, my classpath was wrong
fs->fs: also reproducible in Basic:

REM  *****  BASIC  *****

Option Explicit

Sub Main
  Dim oDialog as Object
  oDialog = LoadDialog( "Standard", "Dialog1" )
  oDialog.execute
End Sub

Sub selected( oEvent as Object )
  MsgBox "item selected"
  oEvent.Source.selectItemPos( 2, TRUE )
End Sub
Comment 9 Marcus 2017-05-20 11:27:42 UTC
Reset assigne to the default "issues@openoffice.apache.org".