List of usage examples for com.google.gwt.user.client.ui DeckPanel DeckPanel
public DeckPanel()
From source file:org.jboss.ballroom.client.widgets.tabs.VerticalTabLayoutPanel.java
License:Open Source License
public VerticalTabLayoutPanel() { super();/* ww w . ja v a 2s . c om*/ layout = new HorizontalPanel(); layout.setStyleName("fill-layout"); this.tabContainer = new VerticalPanel(); this.tabContainer.setStyleName("vertical-tabpanel-tabs"); this.decks = new DeckPanel(); layout.add(tabContainer); layout.add(decks); decks.getElement().getParentElement().setAttribute("width", "100%"); }
From source file:org.jboss.bpm.console.client.process.ProcessDetailView.java
License:Open Source License
public ProcessDetailView() { //TODO -Rikkola- // super("Process details"); super.setStyleName("bpm-detail-panel"); grid = new PropertyGrid(new String[] { "ID:", "Key:", "Name:", "Suspended:", "Package:", "Description:" }); // properties final DeckPanel deck = new DeckPanel(); deck.add(grid);/* www .ja v a 2 s . c o m*/ // selection final com.google.gwt.user.client.ui.ListBox dropBox = new com.google.gwt.user.client.ui.ListBox(false); dropBox.setStyleName("bpm-operation-ui"); dropBox.addItem("Properties"); // deployment info if (ServerPlugins.has("org.jboss.bpm.console.server.plugin.ProcessEnginePlugin")) { dropBox.addItem("Deployment"); deploymentPanel = new DeploymentPanel(); deck.add(deploymentPanel); } dropBox.addChangeListener(new ChangeListener() { public void onChange(Widget sender) { deck.showWidget(dropBox.getSelectedIndex()); } }); //TODO: -Rikkola- // this.getHeader().add(dropBox, Caption.CaptionRegion.RIGHT); this.add(deck); deck.showWidget(dropBox.getSelectedIndex()); this.add(deck); }
From source file:org.jboss.bpm.console.client.task.TaskDetailView.java
License:Open Source License
public void initialize() { if (!this.initialzed) { grid = new PropertyGrid(new String[] { "ID:", "Process:", "Name:", "Assignee:", "Description:" }); if (openView) { // properties final DeckPanel deck = new DeckPanel(); deck.add(grid);//from ww w .jav a 2 s . c o m // participants participantPanel = new ParticipantPanel(); participantPanel.setController(controller); // selection final com.google.gwt.user.client.ui.ListBox dropBox = new com.google.gwt.user.client.ui.ListBox( false); dropBox.setStyleName("bpm-operation-ui"); dropBox.addItem("Properties"); dropBox.addItem("Participants"); dropBox.addChangeListener(new ChangeListener() { public void onChange(Widget sender) { deck.showWidget(dropBox.getSelectedIndex()); } }); deck.add(participantPanel); // TODO: -Rikkola- // this.getHeader().add(dropBox, Caption.CaptionRegion.RIGHT); this.add(deck); deck.showWidget(dropBox.getSelectedIndex()); } else { SimplePanel p = new SimplePanel(); p.add(grid); this.add(p); } this.initialzed = true; } }
From source file:org.jboss.errai.workspaces.client.widgets.WSTabPanel.java
License:Apache License
public WSTabPanel() { layoutPanel = new DockPanel(); layoutPanel.setSize("98%", "100%"); tabBar = new TabBar(); deckPanel = new DeckPanel(); deckPanel.setWidth("100%"); deckPanel.addStyleName("gwt-TabPanelBottom"); layoutPanel.add(tabBar, DockPanel.NORTH); layoutPanel.add(deckPanel, DockPanel.CENTER); tabBar.addSelectionHandler(new SelectionHandler<Integer>() { public void onSelection(SelectionEvent<Integer> integerSelectionEvent) { deckPanel.showWidget(integerSelectionEvent.getSelectedItem()); }/*from w w w . j a va 2 s. c om*/ }); initWidget(layoutPanel); }
From source file:org.obiba.opal.web.gwt.app.client.ui.EditorPanel.java
License:Open Source License
public EditorPanel() { controls = new FlowPanel(); edit = new Button(translations.editLabel()); save = new Button(translations.saveLabel()); cancel = new Button(translations.cancelLabel()); initControls();//www. j a v a 2 s .c om super.add(deck = new DeckPanel()); }
From source file:org.opencms.ade.publish.client.CmsPublishDialog.java
License:Open Source License
/** * Constructs a new publish dialog.<p> * // ww w. ja v a2s . co m * @param initData the initial data */ public CmsPublishDialog(CmsPublishData initData) { super(Messages.get().key(Messages.GUI_PUBLISH_DIALOG_TITLE_0), 800); setGlassEnabled(true); setAutoHideEnabled(false); setModal(true); addStyleName(CSS.publishDialog()); m_publishSelectPanel = new CmsPublishSelectPanel(this, initData.getProjects(), initData.getOptions()); m_brokenLinksPanel = new CmsBrokenLinksPanel(this, initData.isCanPublishBrokenRelations()); addDialogClose(null); m_panel = new DeckPanel(); m_panel.add(m_publishSelectPanel); m_panel.add(m_brokenLinksPanel); setMainContent(m_panel); setPanel(PANEL_SELECT); onReceivePublishList(initData.getGroups()); }
From source file:org.pathvisio.wikipathways.client.AtlasMapper.java
License:Apache License
public void onModuleLoad() { History.addHistoryListener(this); DockPanel mainPanel = new DockPanel(); mainPanel.addStyleName(STYLE_ROOT);//w w w .jav a 2 s . c o m //Main title Label title = new Label("WikiPathways-Atlas Mapper"); title.addStyleName(STYLE_TITLE); mainPanel.add(title, DockPanel.NORTH); //Current state info infoPanel = new StateInfoPanel(this); mainPanel.add(infoPanel, DockPanel.NORTH); deckPanel = new DeckPanel(); deckPanel.addStyleName(STYLE_CENTER); progressPanel = createProgressPanel(); deckPanel.add(progressPanel); pathwayPanel = createPathwayPanel(); deckPanel.add(pathwayPanel); factorPanel = createFactorPanel(); deckPanel.add(factorPanel); imagePanel = createImagePanel(); deckPanel.add(imagePanel); mainPanel.add(deckPanel, DockPanel.CENTER); RootPanel.get().add(mainPanel); deckPanel.showWidget(deckPanel.getWidgetIndex(pathwayPanel)); //Process url parameters String text = Window.Location.getHash(); if (text == null) text = ""; if (text.startsWith("#")) text = text.substring(1); text = URL.decode(text); onHistoryChanged(text); }
From source file:org.pentaho.gwt.widgets.client.buttons.ProgressIndicatorWidget.java
License:Open Source License
public ProgressIndicatorWidget(Widget widget) { managedObject = widget;/* w ww . j a va 2 s. co m*/ buttonPanel = new DeckPanel(); buttonPanel.add(managedObject); buttonPanel.setWidth("100%"); buttonPanel.setHeight("100%"); managedObject.setWidth("auto"); managedObject.setStylePrimaryName("pentaho-button"); Image image = new Image(GWT.getModuleBaseURL() + "images/progress_spinner.gif"); //$NON-NLS-1$ image.setStylePrimaryName("progress-image"); image.setWidth("auto"); image.setHeight("auto"); buttonPanel.add(image); buttonPanel.setStylePrimaryName("progress-indicator-button"); this.setWidget(buttonPanel); this.setHeight("100%"); this.setWidth("auto"); buttonPanel.showWidget(UNPRESSED_DECK); }
From source file:org.pentaho.mantle.client.dialogs.scheduling.RecurrenceEditor.java
License:Open Source License
private Widget createRecurrencePanel() { CaptionPanel recurrenceGB = new CaptionPanel(Messages.getString("schedule.recurrencePattern")); recurrenceGB.setStyleName(SCHEDULE_EDITOR_CAPTION_PANEL); deckPanel = new DeckPanel(); recurrenceGB.add(deckPanel);// w ww. j a va 2s. c o m secondlyEditor = new SecondlyRecurrenceEditor(); minutelyEditor = new MinutelyRecurrenceEditor(); hourlyEditor = new HourlyRecurrenceEditor(); dailyEditor = new DailyRecurrenceEditor(); weeklyEditor = new WeeklyRecurrenceEditor(); monthlyEditor = new MonthlyRecurrenceEditor(); yearlyEditor = new YearlyRecurrenceEditor(); createTemporalMap(); deckPanel.add(secondlyEditor); deckPanel.add(minutelyEditor); deckPanel.add(hourlyEditor); deckPanel.add(dailyEditor); deckPanel.add(weeklyEditor); deckPanel.add(monthlyEditor); deckPanel.add(yearlyEditor); deckPanel.showWidget(0); return recurrenceGB; }
From source file:org.pentaho.pac.client.datasources.NewDataSourceDialogBox.java
License:Open Source License
public NewDataSourceDialogBox() { super(Messages.getString("addDataSource"), Messages.getString("ok"), Messages.getString("cancel"), false, //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ true);// w ww . j a v a 2s . c o m DockPanel dockPanel = new DockPanel(); generalButton = new ToggleButton(Messages.getString("general"), Messages.getString("general")); //$NON-NLS-1$ //$NON-NLS-2$ advanceButton = new ToggleButton(Messages.getString("advance"), Messages.getString("advance")); //$NON-NLS-1$ //$NON-NLS-2$ testButton = new RoundedButton(Messages.getString("test")); //$NON-NLS-1$ testButton.addClickListener(new ClickListener() { public void onClick(Widget sender) { testDataSourceConnection(); } }); setTitle(Messages.getString("addDataSource")); //$NON-NLS-1$ HorizontalPanel horizontalPanel = new HorizontalPanel(); dataSourceGeneralPanel = new DataSourceGeneralPanel(); horizontalPanel.add(generalButton); dataSourceAdvancePanel = new DataSourceAdvancePanel(); horizontalPanel.add(advanceButton); dockPanel.add(horizontalPanel, DockPanel.NORTH); dockPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); dockPanel.setSpacing(10); generalButton.setTitle(Messages.getString("clickAddGeneral")); //$NON-NLS-1$ advanceButton.setTitle(Messages.getString("clickAddAdvance")); //$NON-NLS-1$ generalButton.setStylePrimaryName("generalToggleBtn"); //$NON-NLS-1$ advanceButton.setStylePrimaryName("advanceToggleBtn"); //$NON-NLS-1$ deckPanel = new DeckPanel(); deckPanel.add(dataSourceGeneralPanel); deckPanel.add(dataSourceAdvancePanel); dockPanel.add(deckPanel, DockPanel.CENTER); dockPanel.setCellWidth(deckPanel, "100%"); //$NON-NLS-1$ dockPanel.setCellHeight(deckPanel, "100%"); //$NON-NLS-1$ deckPanel.setWidth("100%"); //$NON-NLS-1$ deckPanel.setHeight("100%"); //$NON-NLS-1$ deckPanel.setStyleName("newDataSourceDialogBox.detailsPanel"); //$NON-NLS-1$ deckPanel.showWidget(GENERAL_PANEL_ID); dockPanel.add(testButton, DockPanel.SOUTH); generalButton.setDown(true); advanceButton.setDown(false); generalButton.addClickListener(new ClickListener() { public void onClick(Widget sender) { if (!generalButton.isDown()) { generalButton.setDown(true); } else { advanceButton.setDown(false); deckPanel.showWidget(GENERAL_PANEL_ID); } } }); advanceButton.addClickListener(new ClickListener() { public void onClick(Widget sender) { if (!advanceButton.isDown()) { advanceButton.setDown(true); } else { generalButton.setDown(false); deckPanel.showWidget(ADVANCE_PANEL_ID); } } }); dataSourceGeneralPanel.setWidth("100%"); //$NON-NLS-1$ dataSourceGeneralPanel.setHeight("100%"); //$NON-NLS-1$ dataSourceAdvancePanel.setWidth("100%"); //$NON-NLS-1$ dataSourceAdvancePanel.setHeight("100%"); //$NON-NLS-1$ setContent(dockPanel); dockPanel.setWidth("350px"); }