本文整理汇总了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);
}
示例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();
}
示例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);
}
}
示例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%");
}
示例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);
}
}
示例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);
}
}
示例7: asWidget
import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
public DisclosurePanel asWidget() {
return panel;
}
示例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);
}
示例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);
}
示例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);
}
示例11: getReviewDisclosurePanel
import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
public DisclosurePanel getReviewDisclosurePanel() {
return reviewDisclosurePanel;
}
示例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();
}
示例13: getDisclosurePanel
import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
protected DisclosurePanel getDisclosurePanel() {
return disclosurePanel;
}
示例14: addOpenHandler
import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(OpenHandler<DisclosurePanel> h) {
return main.addOpenHandler(h);
}
示例15: addCloseHandler
import com.google.gwt.user.client.ui.DisclosurePanel; //导入依赖的package包/类
@Override
public HandlerRegistration addCloseHandler(CloseHandler<DisclosurePanel> h) {
return main.addCloseHandler(h);
}