当前位置: 首页>>代码示例>>Java>>正文


Java VisibilityMode类代码示例

本文整理汇总了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();
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:19,代码来源:AccordionPresenter.java

示例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);
}
 
开发者ID:proarc,项目名称:proarc,代码行数:27,代码来源:NewDigObject.java

示例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();
}
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:18,代码来源:NewsSectionStack.java

示例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();
}
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:12,代码来源:NavigationSectionStack.java

示例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();
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:69,代码来源:SchedulerPage.java

示例6: SectionConfiguration

import com.smartgwt.client.types.VisibilityMode; //导入依赖的package包/类
public SectionConfiguration() {
	setVisibilityMode(VisibilityMode.MULTIPLE);  
       setAnimateSections(true);  
       setHeight("50%");  
       setOverflow(Overflow.HIDDEN);  
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:7,代码来源:SectionConfiguration.java

示例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();
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:81,代码来源:Application.java


注:本文中的com.smartgwt.client.types.VisibilityMode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。