我使用此代码
SectionStack sectionStack = new SectionStack();
sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
sectionStack.setWidth100();
sectionStack.addSection(createGenerallSettingsSection());
sectionStack.addSection(createIntegrationSettingsSection());
sectionStack.setAnimateSections(true);
private SectionStackSection createGenerallSettingsSection() {
SectionStackSection section = new SectionStackSection("General settings");
section.setExpanded(true);
section.setResizeable(false);
section.setItems(getTimeoutField().view());
return section;
}
private SectionStackSection createIntegrationSettingsSection() {
SectionStackSection section = new SectionStackSection("Integration");
section.setExpanded(true);
section.setResizeable(false);
section.setItems(getUrl().view(), getUser().view(), getPassword().view());
return section;
}
然后动画在“常规设置”部分工作,不在“集成”中工作。 也许有人知道如何解决这个问题?
Method view()返回Canvas对象。 SmartGWT版本 - 2.5