Hello i m trying to make a page like the mail application.
What i want look like this one
---------------------------------------------------
| 1 |
|-------------------------------------------------|
| | |
| | |
| 2 | 3 |
| | |
| | |
|____|_______________________|
1 and 2 are static but in 3 frame i want to be refreshed any time i m
pressing a treeItem from 2 menu.
This is how i m trying to make this happen.
First.java
private TopPanel topPanel = new TopPanel();
private SecondMenu new2 = new SecondMenu();
private ThirdMenu new1 = new ThirdMenu("example");
public void onModuleLoad() {
topPanel.setWidth("100%");
new2.setWidth("100%");
new1.setWidth("100%");
DockPanel outer = new DockPanel();
outer.add(topPanel, DockPanel.NORTH);
outer.add(new2, DockPanel.WEST);
outer.add(new1, DockPanel.CENTER);
outer.setWidth("100%");
outer.setSpacing(4);
RootPanel.get().add(outer);
By using this, it is created a page like the one i want
Inside the SecondMenu i have made a TreeListener which force the
ThirdMenu to be redisned again after a TreeItem is pressed. This the
code
SecondMenu.java
tree.addTreeListener(new TreeListener(){
public void onTreeItemSelected(TreeItem item) {
ThirdMenu neo = new ThirdMenu(item.getText());
}
public void onTreeItemStateChanged(TreeItem item) {
if (item.getState()){
// currChapter.setText(item.getText());
}
}
In the thirdmenu so far , i just print in the its region what user
parses.
However when i try to do that nothing happened. It seems that the menu
i created is a static one and nothing changes.
So indide the ThirdMenu i put this: RootPanel.get().clear(); and
then printing the argument
But the result is a blank page with no menus at all , neither Toppanel
nor secondmenu.
Any help?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---