I wrote this application:
/*
* testSplitEntryPoint.java
*
* Created on 12 settembre 2008, 18.57
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package it.pep.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.*;
/**
*
* @author Francesco
*/
public class testSplitEntryPoint implements EntryPoint {
DecoratedTabPanel tabPanel = new DecoratedTabPanel();
DockPanel dp = new DockPanel();
VerticalPanel menuPanel = new VerticalPanel();
/** Creates a new instance of testSplitEntryPoint */
public testSplitEntryPoint() {
}
/**
The entry point method, called automatically by loading a module
that declares an implementing class as an entry-point
*/
public void onModuleLoad() {
dp.add(tabPanel, DockPanel.CENTER);
dp.add(menuPanel, DockPanel.NORTH);
tabPanel.setWidth("1000px");
// Enable the deck panel animation
tabPanel.getDeckPanel().setAnimationEnabled(true);
String[] tabTitles = {"Appelli", "Domande"};
// Primo tab
MascheraAppelli ma = new MascheraAppelli();
tabPanel.add(ma, tabTitles[0]);
// Secondo tab
MascheraDomande md = new MascheraDomande();
tabPanel.add(md, tabTitles[1]);
tabPanel.selectTab(0);
RootPanel.get().add(dp);
}
}
class MascheraAppelli extends Composite {
DecoratorPanel decPanel = new DecoratorPanel(); //un contenitore
con i bordi arrotondati
HorizontalSplitPanel hSplit = new HorizontalSplitPanel(); // un
pannello con parte sinistra e destra
public MascheraAppelli() {
initWidget(decPanel);
decPanel.setWidget(hSplit);
hSplit.setSize("100%", "500px");
hSplit.setSplitPosition("30%");
hSplit.setRightWidget(new HTML("esami"));
hSplit.setLeftWidget(new HTML("appelli"));
}
}
class MascheraDomande extends Composite {
DecoratorPanel decPanel = new DecoratorPanel(); //un contenitore
con i bordi arrotondati
HorizontalSplitPanel hSplit = new HorizontalSplitPanel(); // un
pannello con parte sinistra e destra
public MascheraDomande() {
initWidget(decPanel);
decPanel.setWidget(hSplit);
hSplit.setSize("100%", "500px");
hSplit.setSplitPosition("30%");
hSplit.setRightWidget(new HTML("domande"));
hSplit.setLeftWidget(new HTML("argomenti"));
}
}
The word "argomenti" is not visible and the splitbar is locked. Why?
If i see the page with no style sheet (in Firefox) the word
"argomenti" is there. If I use only one tab, all is ok. If I switch
the two tabs, now the word "appelli" becomes not visible.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---