[Bug 651] New: Changes to FileObject and ImageObject

View: New views
2 Messages — Rating Filter:   Alert me  

[Bug 651] New: Changes to FileObject and ImageObject

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://helma.org/bugs/show_bug.cgi?id=651

           Summary: Changes to FileObject and ImageObject
           Product: Helma
           Version: CVS trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Extensions
        AssignedTo: helma-dev@...
        ReportedBy: lists@...


I know that FileObject is regarded deprecated in the Helma documentation, but
since it's still used in ImageObject, here a proposal of some simple changes
that make working with it a bit easier and that remove the dependency from
ImageObject:

I changed FileObject to implement Wrapper and return the real java.io.File
object in unwrap. Like this, ImageObject does not need to know about the
FileObject class any longer, and JavaScripts can use toJava(file) to get the
java.io.File object. We could also think of the same change to ImageObject, to
get the underlying java.awt.Image...

I also changed the FileObject concstructor to be more flexible about what it
receives.

Let me know what you think. I don't think this breaks any backward
compatibility.


--
Configure bugmail: http://helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 651] Changes to FileObject and ImageObject

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://helma.org/bugs/show_bug.cgi?id=651





------- Comment #1 from lists@...  2008-11-23 12:54 -------
Created an attachment (id=105)
 --> (http://helma.org/bugs/attachment.cgi?id=105&action=view)
The mentioned FileObject patch.


--
Configure bugmail: http://helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev