本文整理汇总了Java中com.smartgwt.client.types.VisibilityMode类的典型用法代码示例。如果您正苦于以下问题:Java VisibilityMode类的具体用法?Java VisibilityMode怎么用?Java VisibilityMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VisibilityMode类属于com.smartgwt.client.types包,在下文中一共展示了VisibilityMode类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildAccordion
import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
private void buildAccordion() {
// Accordion Behavior
accordion.setVisibilityMode(VisibilityMode.MUTEX);
accordion.setOverflow(Overflow.HIDDEN);
accordion.setShowExpandControls(Boolean.FALSE);
accordion.setShowResizeBar(Boolean.TRUE);
accordion.setCanReorderSections(Boolean.FALSE);
accordion.setCanResizeSections(Boolean.FALSE);
// Animation currently doesn't appear to work
accordion.setAnimateSections(Boolean.TRUE);
accordion.setAnimateMemberTime(300);
// Accordion Size
accordion.setWidth(ACCORDION_BUTTON_WIDTH + 10);
accordion.setHeight100();
}
示例2: NewDigObject
import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
public NewDigObject(ClientMessages i18n) {
this.i18n = i18n;
this.catalogBrowser = new CatalogBrowser(i18n);
setHeight100();
setWidth100();
ToolStrip toolbar = createToolbar();
optionsForm = createOptionsForm();
SectionStackSection sectionMain = new SectionStackSection(
i18n.NewDigObject_SectionOptions_Title());
sectionMain.setExpanded(true);
sectionMain.setCanCollapse(false);
sectionMain.setItems(optionsForm);
SectionStackSection sectionAdvanced = new SectionStackSection(
i18n.NewDigObject_SectionAdvancedOptions_Title());
sectionAdvanced.setItems(catalogBrowser.getUI());
sections = new SectionStack();
sections.setVisibilityMode(VisibilityMode.MULTIPLE);
sections.setSections(sectionMain, sectionAdvanced);
setMembers(toolbar, sections);
}
示例3: init
import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
private void init() {
setVisibilityMode(VisibilityMode.MULTIPLE);
setWidth100();
setHeight100();
// create the news/updates section
addNewsSection();
// TODO CME combine the SHARP news and Regular news above.
// create the SHARP section
// addSharpSection();
// create the recently uploaded algorithm section
addRecentlyUploadedAlgorithmsSection();
addCurrentDBStatisicsSection();
}
示例4: init
import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
private void init() {
setVisibilityMode(VisibilityMode.MULTIPLE);
setWidth100();
setHeight100();
// create the algorithm section
addAlgorithmsSection();
// create the tree section
addTreeSection();
}
示例5: buildAndShow
import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
/**
* Creates the layout and adds it to the page
*
* <pre>
* +- content:VLayout --------+
* |+- tools:Widget ---------+|
* || # buildTools() ||
* |+------------------------+|
* |+- stack:SectionStack ---+|
* ||+- jobSection ---------+||
* |||+- topPane:Layout ---+|||
* |||| # buildTopPane() ||||
* |||+--------------------+|||
* ||+----------------------+||
* ||+- detailsSection -----+||
* |||+- botPane:Layout ---+|||
* |||| # buildBotPane() ||||
* |||+--------------------+|||
* ||+----------------------+||
* |+------------------------+|
* +--------------------------+
* </pre>
*
*/
private void buildAndShow() {
VLayout contentLayout = new VLayout();
this.rootLayout = contentLayout;
contentLayout.setWidth100();
contentLayout.setHeight100();
contentLayout.setBackgroundColor("#fafafa");
this.aboutWindow = new AboutWindow();
this.settingsWindow = new SettingsWindow(controller);
Canvas tools = buildTools();
HorizontalPanel panel = new HorizontalPanel();
panel.setWidth("100%");
panel.setHeight("3px");
panel.getElement().getStyle().setBackgroundColor("#f47930");
panel.getElement().getStyle().setPadding(-1, Unit.PX);
SectionStackSection executionsSections = this.controller.buildExecutionsView();
Layout botPane = buildBotPane();
SectionStackSection detailsSection = new SectionStackSection();
detailsSection.setTitle("Details");
detailsSection.setExpanded(true);
detailsSection.setItems(botPane);
SectionStack stack = new SectionStack();
stack.setWidth100();
stack.setHeight100();
stack.setMargin(2);
stack.setVisibilityMode(VisibilityMode.MULTIPLE);
stack.setAnimateSections(true);
stack.setOverflow(Overflow.HIDDEN);
stack.setSections(executionsSections, detailsSection);
contentLayout.addMember(buildLogoStrip());
contentLayout.addMember(tools);
contentLayout.addMember(panel);
contentLayout.addMember(stack);
this.logWindow = new LogWindow(controller);
this.rootLayout.draw();
}
示例6: SectionConfiguration
import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
public SectionConfiguration() {
setVisibilityMode(VisibilityMode.MULTIPLE);
setAnimateSections(true);
setHeight("50%");
setOverflow(Overflow.HIDDEN);
}
示例7: onModuleLoad
import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
public void onModuleLoad() {
VLayout mainLayout = new VLayout();
mainLayout.setWidth100();
mainLayout.setHeight100();
mainLayout.setBackgroundColor("#A0A0A0");
HLayout layout = new HLayout();
layout.setWidth100();
layout.setHeight100();
layout.setMembersMargin(10);
layout.setMargin(10);
// ---------------------------------------------------------------------
// Create the left-side (map and tabs):
// ---------------------------------------------------------------------
map = new MapWidget("mapMain", "app");
final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
toolbar.setBackgroundColor("#647386");
toolbar.setBackgroundImage("");
toolbar.setBorder("0px");
toolbar.addToolbarSeparator();
toolbar.addMenuButton(getReportingMenuButton());
Label title = new Label("Geomajas reporting demo");
title.setStyleName("appTitle");
title.setWidth(260);
toolbar.addFill();
toolbar.addMember(title);
VLayout mapLayout = new VLayout();
mapLayout.addMember(toolbar);
mapLayout.addMember(map);
mapLayout.setHeight("65%");
VLayout leftLayout = new VLayout();
leftLayout.setBorder("10px solid #777777");
leftLayout.setStyleName("round_corner");
leftLayout.addMember(mapLayout);
layout.addMember(leftLayout);
// ---------------------------------------------------------------------
// Create the right-side (layer-tree, legend):
// ---------------------------------------------------------------------
final SectionStack sectionStack = new SectionStack();
sectionStack.setBorder("10px solid #777777");
sectionStack.setStyleName("round_corner");
sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
sectionStack.setCanReorderSections(true);
sectionStack.setCanResizeSections(false);
sectionStack.setSize("250px", "100%");
// LayerTree layout:
SectionStackSection section2 = new SectionStackSection("Layer tree");
section2.setExpanded(true);
LayerTree layerTree = new LayerTree(map);
section2.addItem(layerTree);
sectionStack.addSection(section2);
// Legend layout:
SectionStackSection section3 = new SectionStackSection("Legend");
section3.setExpanded(true);
legend = new Legend(map.getMapModel());
legend.setBackgroundColor("#FFFFFF");
section3.addItem(legend);
sectionStack.addSection(section3);
// Putting the right side layouts together:
layout.addMember(sectionStack);
// ---------------------------------------------------------------------
// Finally draw everything:
// ---------------------------------------------------------------------
mainLayout.addMember(layout);
mainLayout.draw();
// Then initialize:
initialize();
}