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


Java DisclosurePanel类代码示例

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


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

示例1: ComparisonAxisSelector

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
public ComparisonAxisSelector(String width) {
        // The the other widgets have flextable layouts.  Without it, this one doesn't line up.
		layout = new FlexTable();
		axes = new ListBox();
		flex = new FlexTable();
		// It looks funny without some sort of label on the same line.
		HTML html = new HTML("Axis: ");
		flex.setWidget(0, 0, html);
		flex.setWidget(0, 1, axes);
		disPanel = new DisclosurePanel("Compare");
		disPanel.add(flex);
		disPanel.setOpen(true);
		
//		if ( width != null && !width.equals("") ) {
//		    disPanel.setWidth(width);
//		}
		layout.setWidget(0, 0, disPanel);
		initWidget(layout);
	}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:20,代码来源:ComparisonAxisSelector.java

示例2: MediaControlUI

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
/**
 * Instantiates a new media control ui.
 */
public MediaControlUI()
{
	setTitle("Media Control");
	setSpacing(5);

	DisclosurePanel tableSelectionDisclosurePanel = new DisclosurePanel("Tables Online");
	add(tableSelectionDisclosurePanel);
	tableSelectionDisclosurePanel.setOpen(true);
	tableSelectionDisclosurePanel.setWidth("270px");

	devicesOnline = new DevicesOnlineWidget();
	tableSelectionDisclosurePanel.setContent(devicesOnline);
	devicesOnline.setMultipleSelectionAllowed(true);
	devicesOnline.setSize("270px", "100px");
	devicesOnline.setDeviceType("tables");
	devicesOnline.setAllTablesCheckBoxOffset("120px");
	devicesOnline.setAllTablesCheckOptionEnabled(true);
	devicesOnline.updateList();

	mainButtons();
	networkFlickButtons();
	reloadContentsControls();
	additionalControls();
}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:28,代码来源:MediaControlUI.java

示例3: onSuccess

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
public void onSuccess(List<PacketBbsThread> result) {
	for (final PacketBbsThread thread : result) {
		final LazyPanel lazyPanel = new LazyPanel() {
			@Override
			protected Widget createWidget() {
				DecoratorPanel decoratorPanel = new DecoratorPanel();
				decoratorPanel.setWidget(new PanelThread((int) thread.id, thread.title));
				return decoratorPanel;
			}
		};

		OpenHandler<DisclosurePanel> openHandler = new OpenHandler<DisclosurePanel>() {
			@Override
			public void onOpen(OpenEvent<DisclosurePanel> event) {
				lazyPanel.ensureWidget();
			}
		};

		DisclosurePanel disclosurePanel = new DisclosurePanel(thread.title);
		disclosurePanel.setContent(lazyPanel);
		disclosurePanel.addOpenHandler(openHandler);
		add(disclosurePanel);
	}
}
 
开发者ID:nodchip,项目名称:QMAClone,代码行数:25,代码来源:PanelThreadList.java

示例4: 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

示例5: onClose

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
@Override
public void onClose(CloseEvent<DisclosurePanel> event) {

    for (Iterator panelIt = xPanels.iterator(); panelIt.hasNext();) {
        OutputPanel panel = (OutputPanel) panelIt.next();
        panel.setAnnotationsOpen(false);
    }

}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:10,代码来源:UI.java

示例6: onOpen

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
@Override
public void onOpen(OpenEvent<DisclosurePanel> event) {

    for (Iterator panelIt = xPanels.iterator(); panelIt.hasNext();) {
        OutputPanel panel = (OutputPanel) panelIt.next();
        panel.setAnnotationsOpen(true);
    }

}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:10,代码来源:UI.java

示例7: asWidget

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
public DisclosurePanel asWidget() {
	return panel;
}
 
开发者ID:ICT-BDA,项目名称:EasyML,代码行数:4,代码来源:DisclosureStackPanel.java

示例8: AxesWidgetGroup

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
/**
 * A widget to hold a set of x, y, z, t, and e(nsemble) axis controls and to
 * display them in groups according to the view. Initially the map is at the
 * top and z and t are below, but this can be switched.
 * 
 * @param plot_title
 * @param ortho_title
 * @param layout
 */
public AxesWidgetGroup(String title, String orientation, String width, String panel_title, String tile_server, String tile_layer, EventBus eventBus) {
    mapPanel = new DisclosurePanel("Map");
    mapPanel.setWidth(xControlsWidthPx);
    menuWidgets = new FlexTable();
    refMap = new OLMapWidget("128px", "256px", tile_server, tile_layer);
    zWidget = new AxisWidget();
    zWidget.setVisible(false);
    eWidget = new EnsembleAxisWidget();
    eWidget.setVisible(false);
    dateTimeWidget = new DateTimeWidget();
    dateTimeWidget.setVisible(false);
    forecastVerificationTime = new DateTimeWidget();
    forecastVerificationTime.setVisible(false);
    panel = new FlowPanel();//new DisclosurePanel(title);
    mapPanel.add(refMap);
    mapPanel.setOpen(true);
    if ( orientation.equals("horizontal") ) {
        row.setWidget(0, 0, mapPanel);
        row.setWidget(0, 1, zWidget);
        row.setWidget(0, 2, dateTimeWidget);
        row.setWidget(0, 3, forecastVerificationTime);
        row.setWidget(0, 4, eWidget);
        row.getFlexCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
        row.getFlexCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_TOP);
        row.getFlexCellFormatter().setVerticalAlignment(0, 2, HasVerticalAlignment.ALIGN_TOP);
        row.getFlexCellFormatter().setVerticalAlignment(0, 3, HasVerticalAlignment.ALIGN_TOP);

        panel.add(row);
    } else {
        layout.add(mapPanel);
        panel.add(layout);
        panel.setVisible(true);//.setOpen(true);
        menuWidgets.setWidget(0, 0, zWidget);
        menuWidgets.setWidget(1, 0, dateTimeWidget);
        menuWidgets.setWidget(2, 0, forecastVerificationTime);
        menuWidgets.setWidget(3, 0, eWidget);
        menuWidgets.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
        menuWidgets.getCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_TOP);
        layout.add(menuWidgets);      
    }
    initWidget(panel);
}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:52,代码来源:AxesWidgetGroup.java

示例9: addDialogWidgets

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
private void addDialogWidgets() {
	VerticalPanel vertPanel = new VerticalPanel();
	Grid grid = new Grid(4,2);
	HorizontalPanel buttonsHPanel = new HorizontalPanel();
	DisclosurePanel recentlyViewedPanel = new DisclosurePanel("Recently Viewed Terms");
	DisclosurePanel recentlyCreatedPanel = new DisclosurePanel("Recently Created Terms");
	Button cancelButton = new Button("Cancel");
	
	recentlyViewedPanel.getHeader().addStyleName("dialog-label");
	recentlyViewedPanel.add(recentlyViewTable);
	
	recentlyCreatedPanel.getHeader().addStyleName("dialog-label");
	recentlyCreatedPanel.add(recentlyCreatedTable);
			
	cancelButton.addClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			dialogBox.hide();
			if(currentTerm != null) {
				eventBus.fireEvent(new ViewTermEvent(currentTerm));
			}
		}
	});
	
	grid.addStyleName("gwt-Grid");
	errorLabel.addStyleName("dialog-error");
	buttonsHPanel.addStyleName("dialog-buttons");
	buttonsHPanel.addStyleName("centered-hortz");
	vertPanel.addStyleName("dialog-vpanel");		
	//vertPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
			
	int row = 0, col = 0;
	grid.setWidget(row, col, new Label("Ontology:"));
	grid.setWidget(++row, col, new Label("Term:"));
	grid.setWidget(++row, col, new Label("Relationship:"));
	grid.setWidget(++row, col, new Label("Related Term:"));
	row = 0;
	col = 1;
	grid.setWidget(row, col, ontologyLabel);
	grid.setWidget(++row, col, termLabel);
	grid.setWidget(++row, col, typeDropBox);
	grid.setWidget(++row, col, relatedTermLabel);
	
	for(row = col = 0; row < grid.getRowCount(); row++) {
		Label label = (Label)grid.getWidget(row, col);
		label.addStyleName("dialog-label");
	}
			
	buttonsHPanel.add(addButton);
	buttonsHPanel.add(cancelButton);
	
	vertPanel.add(grid);
	vertPanel.add(recentlyViewedPanel);
	vertPanel.add(recentlyCreatedPanel);
	vertPanel.add(errorLabel);
	vertPanel.add(buttonsHPanel);
	dialogBox.setWidget(vertPanel);
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:58,代码来源:AddRelationshipPopup.java

示例10: addDialogWidgets

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
private void addDialogWidgets() {
	VerticalPanel vertPanel = new VerticalPanel();
	Grid grid = new Grid(3,2);
	HorizontalPanel buttonsHPanel = new HorizontalPanel();
	DisclosurePanel recentlyViewedPanel = new DisclosurePanel("Recently Viewed Terms");
	DisclosurePanel recentlyCreatedPanel = new DisclosurePanel("Recently Created Terms");
	Label comments = new Label("Comments:");
	Button cancelButton = new Button("Cancel");
	
	comments.addStyleName("dialog-label");
	
	recentlyViewedPanel.getHeader().addStyleName("dialog-label");
	recentlyViewedPanel.add(recentlyViewTable);
	
	recentlyCreatedPanel.getHeader().addStyleName("dialog-label");
	recentlyCreatedPanel.add(recentlyCreatedTable);
			
	cancelButton.addClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			dialogBox.hide();
			obsoleteTerm = null;
			commentsField.setValue(null);
		}
	});
	
	grid.addStyleName("gwt-Grid");
	errorLabel.addStyleName("dialog-error");
	buttonsHPanel.addStyleName("dialog-buttons");
	buttonsHPanel.addStyleName("centered-hortz");
	vertPanel.addStyleName("dialog-vpanel");		
	//vertPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
			
	int row = 0, col = 0;
	grid.setWidget(row, col, new Label("Ontology:"));
	grid.setWidget(++row, col, new Label("Term:"));
	grid.setWidget(++row, col, new Label("Replaced By:"));
	row = 0;
	col = 1;
	grid.setWidget(row, col, ontologyLabel);
	grid.setWidget(++row, col, termLabel);
	grid.setWidget(++row, col, replaceByTermLabel);
	
	for(row = col = 0; row < grid.getRowCount(); row++) {
		Label label = (Label)grid.getWidget(row, col);
		label.addStyleName("dialog-label");
	}			
							
	buttonsHPanel.add(obsoleteButton);
	buttonsHPanel.add(cancelButton);
	
	vertPanel.add(grid);
	vertPanel.add(recentlyViewedPanel);
	vertPanel.add(recentlyCreatedPanel);
	vertPanel.add(comments);
	vertPanel.add(commentsField);
	vertPanel.add(errorLabel);
	vertPanel.add(buttonsHPanel);
	dialogBox.setWidget(vertPanel);
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:60,代码来源:ReplaceTermPopup.java

示例11: getReviewDisclosurePanel

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
public DisclosurePanel getReviewDisclosurePanel() {
	return reviewDisclosurePanel;
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:4,代码来源:ReviewValidatePanel.java

示例12: ProjectorControlPanel

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
/**
 * Instantiates a new projector control panel.
 */
public ProjectorControlPanel()
{

	setTitle("Projector Control");
	setSpacing(5);

	DisclosurePanel pnlProjectors = new DisclosurePanel("Projectors");
	pnlProjectors.setOpen(true);
	add(pnlProjectors);
	pnlProjectors.setWidth("272px");

	VerticalPanel verticalProjectorPanel = new VerticalPanel();
	pnlProjectors.setContent(verticalProjectorPanel);

	projectorsOnline = new DevicesOnlineWidget();
	pnlProjectors.setContent(projectorsOnline);
	projectorsOnline.setMultipleSelectionAllowed(true);
	projectorsOnline.setSize("270px", "100px");
	projectorsOnline.setDeviceType("projectors");
	projectorsOnline.setAllTablesCheckBoxOffset("120px");
	projectorsOnline.setAllTablesCheckOptionEnabled(true);
	projectorsOnline.updateList();

	DisclosurePanel tableSelectionDisclosurePanel = new DisclosurePanel("Tables");
	add(tableSelectionDisclosurePanel);
	tableSelectionDisclosurePanel.setOpen(true);
	tableSelectionDisclosurePanel.setWidth("272");

	tablesOnline = new DevicesOnlineWidget();
	tableSelectionDisclosurePanel.setContent(tablesOnline);
	tablesOnline.setMultipleSelectionAllowed(true);
	tablesOnline.setSize("270px", "100px");
	tablesOnline.setDeviceType("tables");
	tablesOnline.setAllTablesCheckBoxOffset("120px");
	tablesOnline.setAllTablesCheckOptionEnabled(true);
	tablesOnline.updateList();

	transferButtons();

	manageSelectedProjectors();

	tablesOnline.updateList();

}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:48,代码来源:ProjectorControlPanel.java

示例13: getDisclosurePanel

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
protected DisclosurePanel getDisclosurePanel() {
    return disclosurePanel;
}
 
开发者ID:lsst,项目名称:firefly,代码行数:4,代码来源:CollapsiblePanel.java

示例14: addOpenHandler

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(OpenHandler<DisclosurePanel> h) {
  return main.addOpenHandler(h);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:5,代码来源:ComplexDisclosurePanel.java

示例15: addCloseHandler

import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
@Override
public HandlerRegistration addCloseHandler(CloseHandler<DisclosurePanel> h) {
  return main.addCloseHandler(h);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:5,代码来源:ComplexDisclosurePanel.java


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