https://issues.apache.org/ooo/show_bug.cgi?id=121544

            Bug ID: 121544
        Issue Type: DEFECT
           Summary: [AWT] Clean-up MessageBox API
    Classification: Code
           Product: framework
           Version: AOO 3.4.1
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Besides the IDL errors described in bug 74095 the MessageBox API has some other
shortcomings:

a) css.awt.XMessageBox is deprecated, though it is returned by
css.awt.XMessageBoxFactory.createMessageBox

b) css.awt.MessageBoxCommand is deprecated, it can be removed

c) the return type of css.awt.XMessageBox.execute() should be document with its
own constants group

d) css.awt.XMessageBoxFactory.createMessageBox() takes a css.awt.Rectangle
defining the position and size of the message box, this is completely useless
as it is ignored. The message box is always positioned in the center of its
parent window, and the size is determined by the internal implementation

e) the type of the message box in css.awt.XMessageBoxFactory.createMessageBox()
is defined by strings, what makes it rather error prone. This should be
replaced by an enumeration

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to