[md-dev] HomePageView

fxb smidt fxbmd at yahoo.com
Tue Aug 15 12:06:45 EDT 2006


Hi,

I've been trying to implement a simple extension to display something on the home page, but I'm running into troubles.

My HomePageView object is a dummy one for the time being:

public class HomePageExtensionView
    implements HomePageView
{
    private boolean shown = false;
    private JLabel myLabel = new JLabel("hello world");

    public String getID() {
    return "777776";
    }

    public String toString() {
    return "dummyextension";
    }

    public void refresh() {}

    public void reset() {}

    public void setActive(boolean active) {
    shown = active;
    }

    public JComponent getGUIView(RootAccount rootAccount) {
     return myLabel;
    }
}


I've (slightly) modified the "myextension" example given with the dev kit to call registerHomePageView() but even though the call returns fine (it returns a void anyway), things don't work as expected:

- if I call registerHomePageView() from the init() of the Main class (subclass of FeatureModule), moneydance seems to hang while displaying the "splash" screen.

- if I register the view later (like in handleEvent() when receiving "md:file:opened"), no more hang issue, but I don't see the extension in the list in File->preferences->"Home Page" tab

I'm probably doing something wrong. Any help is greatly appreciated.

Thanks

 		
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/html
Size: 1905 bytes
Desc: not available
Url : http://moneydance.com/pipermail/moneydance-dev/attachments/20060815/e24069a1/attachment.txt


More information about the moneydance-dev mailing list