我使用此代码
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;
}
然后动画在“常规设置”部分工作,而不在“集成”部分工作。也许有人知道如何解决这个问题?
方法 view() 返回 Canvas 对象。SmartGWT 版本 - 2.5