-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RootPresenter.RootView : add and use the protected method getAppRootPane... #287
Conversation
…anel Child class of RootView can override that method to easily embed the app on a root presenter that is not the <body>
What about the rootlayoutpanel? |
The RootLayoutPanel is added to the RootPanel. getAppRootPanel().add(RootLayoutPanel.get()); I just learned today about RootPanel and RootLayoutPanel, my pull request might not be working for every situation. |
Thanks for digging into this. :) |
True, it been so long since I looked at this code! Thanks for the contribution :D |
@@ -76,15 +76,15 @@ public Widget asWidget() { | |||
} | |||
|
|||
@Override | |||
public void setInSlot(Object slot, IsWidget content) { | |||
public void setInSlot(final Object slot, final IsWidget content) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you changed that to final?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My eclipse is configured to add final on file save.
I didn't cancel it before saving the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove them please, this is the only nits that I have, afterward LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm preparing a new commit to that pull request by removing the final added in that commit.
I'm just wondering why there are final on the parameters of the class constructor but not on the parameters of the other methods ?
By the way, should I remove only the final on this method parameters, or all that where added by eclipse when saving the file ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old code, we're not adding them to Ctor as well anymore
Ok, I just added a commit removing the 'final' modifiers. |
LGTM, nice job! |
RootPresenter.RootView : add and use the protected method getAppRootPane...
RootPresenter.RootView : add and use the protected method getAppRootPane...
RootPresenter.RootView : add and use the protected method getAppRootPane... Former-commit-id: 6cae409
Add and use the protected method RootPresenter.RootView#getAppRootPanel()
That method can be overriden to change what RootPanel to use and easily embed an app in an existing webpage.
Example of attaching the app to a panel with id="appPanel" :