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


Java DisclosurePanel.setAnimationEnabled方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.DisclosurePanel.setAnimationEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java DisclosurePanel.setAnimationEnabled方法的具体用法?Java DisclosurePanel.setAnimationEnabled怎么用?Java DisclosurePanel.setAnimationEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.DisclosurePanel的用法示例。


在下文中一共展示了DisclosurePanel.setAnimationEnabled方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DisclosureStackPanel

import com.google.gwt.user.client.ui.DisclosurePanel; //导入方法依赖的package包/类
public DisclosureStackPanel(String title) {

		panel = new DisclosurePanel(title);
		panel.setOpen(true);
		panel.setAnimationEnabled(true);
		panel.getElement().setAttribute("style", "width:100%;");
		panel.setStyleName("myDisclosurePanel");
		panel.getHeader().setStyleName("myDisclosurePanel-header");
		panel.setSize("100%", "100%");
	}
 
开发者ID:ICT-BDA,项目名称:EasyML,代码行数:11,代码来源:DisclosureStackPanel.java

示例2: SwotForGrowPanel

import com.google.gwt.user.client.ui.DisclosurePanel; //导入方法依赖的package包/类
public SwotForGrowPanel(final String mode, final RiaContext ctx) {
	i18n = ctx.getI18n();
	
	if(!QuestionAnswerBean.O_PART.equals(mode)) {
		this.setVisible(false);
		return;
	}

	setStyleName("mf-swotForGrowPanel");
	
	ctx.setSwotForGrowPanel(this);
	
	/*
	 * view mode
	 */
	
	viewPanel = new HorizontalPanel();
	viewPanel.setStyleName("mf-swotHead");
	
	swotSectionLabel = new HTML();
	swotSectionLabel.setText(i18n.swot());
	swotSectionLabel.setTitle(i18n.strenghtsToThreats());
    swotSectionLabel.setStyleName("mf-swotLeftTitle");
	viewPanel.add(swotSectionLabel);
	
	VerticalPanel rightPanel=new VerticalPanel();
	rightPanel.setStyleName("mf-swotRightPanel");

	checklistDocumentation=new HTML(i18n.swotChecklistDocumentation());
    checklistDocumentation.setStyleName("mf-checklistDocumentation");
	rightPanel.add(checklistDocumentation);

	swotChart = new SwotChart(ctx);
	
	final DisclosurePanel disclosurePanel=new DisclosurePanel(i18n.analysisDetails());
	disclosurePanel.setAnimationEnabled(true);
	disclosurePanel.setContent(swotChart);		
	rightPanel.add(disclosurePanel);

    swotSectionLabel.addClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			if(ctx.getGrowPanel().isRdWr()) {
				disclosurePanel.setOpen(!disclosurePanel.isOpen());					
			}
		}
	});
	
	viewPanel.add(rightPanel);
	add(viewPanel);				
}
 
开发者ID:dvorka,项目名称:coaching-notebook,代码行数:51,代码来源:SwotForGrowPanel.java

示例3: ActionPlanForGrowPanel

import com.google.gwt.user.client.ui.DisclosurePanel; //导入方法依赖的package包/类
public ActionPlanForGrowPanel(final String mode, final RiaContext ctx) {
	i18n = ctx.getI18n();
	
	if(!QuestionAnswerBean.W_PART.equals(mode)) {
		this.setVisible(false);
		return;
	}

	setStyleName("mf-actionPlanForGrowPanel");
	
	/*
	 * view mode
	 */
	
	viewPanel = new HorizontalPanel();
	viewPanel.setStyleName("mf-actionPlanHead");
	
	actionPlanSectionLabel = new HTML();
	actionPlanSectionLabel.setHTML(i18n.action()+"<br/>"+i18n.plan());
	actionPlanSectionLabel.setTitle(i18n.actionPlanTowardsAchievingThisGoal());
    actionPlanSectionLabel.setStyleName("mf-actionPlanLeftTitle");
	viewPanel.add(actionPlanSectionLabel);
	
	VerticalPanel rightPanel=new VerticalPanel();
	rightPanel.setStyleName("mf-actionPlanRightPanel");

	checklistDocumentation=new HTML(i18n.actionPlanChecklistDocumentation());
    checklistDocumentation.setStyleName("mf-checklistDocumentation");
	rightPanel.add(checklistDocumentation);
							
	actionItemsTable = new FlexTable();
	actionItemsTable.setStyleName("mf-viewActionPlan");
					
	final DisclosurePanel disclosurePanel=new DisclosurePanel(i18n.actionPlanDetails());
	disclosurePanel.setAnimationEnabled(true);
	disclosurePanel.setContent(actionItemsTable);
	rightPanel.add(disclosurePanel);

	actionPlanSectionLabel.addClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			disclosurePanel.setOpen(!disclosurePanel.isOpen());
		}
	});
	
	viewPanel.add(rightPanel);
	add(viewPanel);				
}
 
开发者ID:dvorka,项目名称:coaching-notebook,代码行数:48,代码来源:ActionPlanForGrowPanel.java

示例4: createAdvancedForm

import com.google.gwt.user.client.ui.DisclosurePanel; //导入方法依赖的package包/类
/**
 * Create a form that contains undisclosed advanced options.
 */
@ShowcaseSource
private Widget createAdvancedForm() {
  // Create a table to layout the form options
  FlexTable layout = new FlexTable();
  layout.setCellSpacing(6);
  layout.setWidth("300px");
  FlexCellFormatter cellFormatter = layout.getFlexCellFormatter();

  // Add a title to the form
  layout.setHTML(0, 0, constants.cwDisclosurePanelFormTitle());
  cellFormatter.setColSpan(0, 0, 2);
  cellFormatter.setHorizontalAlignment(
      0, 0, HasHorizontalAlignment.ALIGN_CENTER);

  // Add some standard form options
  layout.setHTML(1, 0, constants.cwDisclosurePanelFormName());
  layout.setWidget(1, 1, new TextBox());
  layout.setHTML(2, 0, constants.cwDisclosurePanelFormDescription());
  layout.setWidget(2, 1, new TextBox());

  // Create some advanced options
  HorizontalPanel genderPanel = new HorizontalPanel();
  String[] genderOptions = constants.cwDisclosurePanelFormGenderOptions();
  for (int i = 0; i < genderOptions.length; i++) {
    genderPanel.add(new RadioButton("gender", genderOptions[i]));
  }
  Grid advancedOptions = new Grid(2, 2);
  advancedOptions.setCellSpacing(6);
  advancedOptions.setHTML(0, 0, constants.cwDisclosurePanelFormLocation());
  advancedOptions.setWidget(0, 1, new TextBox());
  advancedOptions.setHTML(1, 0, constants.cwDisclosurePanelFormGender());
  advancedOptions.setWidget(1, 1, genderPanel);

  // Add advanced options to form in a disclosure panel
  DisclosurePanel advancedDisclosure = new DisclosurePanel(
      constants.cwDisclosurePanelFormAdvancedCriteria());
  advancedDisclosure.setAnimationEnabled(true);
  advancedDisclosure.ensureDebugId("cwDisclosurePanel");
  advancedDisclosure.setContent(advancedOptions);
  layout.setWidget(3, 0, advancedDisclosure);
  cellFormatter.setColSpan(3, 0, 2);

  // Wrap the contents in a DecoratorPanel
  DecoratorPanel decPanel = new DecoratorPanel();
  decPanel.setWidget(layout);
  return decPanel;
}
 
开发者ID:Peergos,项目名称:Peergos,代码行数:51,代码来源:CwDisclosurePanel.java

示例5: AbstractSearchContextComponent

import com.google.gwt.user.client.ui.DisclosurePanel; //导入方法依赖的package包/类
protected AbstractSearchContextComponent(String title) {
    main = new DisclosurePanel(title);
    main.setAnimationEnabled(true);
    initWidget(main);
}
 
开发者ID:cominvent,项目名称:solr-explorer,代码行数:6,代码来源:AbstractSearchContextComponent.java


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