/** * Creates an empty tab panel. */ public TabPanel() { VerticalPanel panel = new VerticalPanel(); panel.add(tabBar); panel.add(deck); panel.setCellHeight(deck, "100%"); tabBar.setWidth("100%"); tabBar.addTabListener(this); initWidget(panel); setStyleName("gwt-TabPanel"); deck.setStyleName("gwt-TabPanelBottom"); // Add a11y role "tabpanel" Roles.getTabpanelRole().set(deck.getElement()); }
@Override protected void onAttach() { super.onAttach(); int titleHeight = titleBar.getOffsetHeight(); if (titleHeight > 0) // workaround // https://jira.jboss.org/jira/browse/ERRAI-52 innerPanel.setCellHeight(titleBar, titleHeight + "px"); if (resizeOnAttach) { for (int i = 0; i < colSizes.size(); i++) { setColumnWidth(i, colSizes.get(i)); } } }
public void setPixelSize(int width, int height) { h = (height - titleInternal.getOffsetHeight()); w = width; vPanel.setCellHeight(mainPanel, h + "px"); vPanel.setCellWidth(mainPanel, width + "px"); vPanel.setPixelSize(width, height); super.setPixelSize(width, height); }
public WorkPanel() { setElement(vPanel.getElement()); vPanel.setWidth("100%"); SimplePanel title = new SimplePanel(); vPanel.add(title); vPanel.add(mainPanel); title.setHeight("25px"); vPanel.setCellHeight(title, "25px"); titleLabel.setStyleName("WS-WorkPanel-title-label"); title.setStyleName("WS-WorkPanel-title"); vPanel.setStyleName("WS-WorkPanel-area"); titleInternal.add(titleLabel); title.setWidget(titleInternal); getElement().getStyle().setProperty("overflow", "scroll"); }
/** * Creates an empty tab panel. */ public TabPanel() { VerticalPanel panel = new VerticalPanel(); panel.add(tabBar); panel.add(deck); panel.setCellHeight(deck, "100%"); tabBar.setWidth("100%"); tabBar.addTabListener(this); initWidget(panel); setStyleName("gwt-TabPanel"); deck.setStyleName("gwt-TabPanelBottom"); // Add a11y role "tabpanel" Roles.getTabpanelRole().set(deck.getElement()); }
/** * Creates an empty tab panel. */ public TabPanel() { VerticalPanel panel = new VerticalPanel(); panel.add(tabBar); panel.add(deck); panel.setCellHeight(deck, "100%"); tabBar.setWidth("100%"); tabBar.addTabListener(this); initWidget(panel); setStyleName("gwt-TabPanel"); deck.setStyleName("gwt-TabPanelBottom"); // Add a11y role "tabpanel" Roles.getTabpanelRole().set(deck.getElement()); }
verticalPanel.setCellHeight(titlePanel, "25px");
public MultiConstraintHardSoftMatchRuleModellerWidget(final RuleModeller mod, final EventBus eventBus, final ActionMultiConstraintHardSoftMatch actionConstraintMatch, final TranslationService translationService, final Boolean readOnly) { super(mod, eventBus, translationService); hardConstraintMatchInputWidget = new ConstraintMatchInputWidget(actionConstraintMatch.getActionHardConstraintMatch()); hardConstraintMatchInputWidget .addConstraintMatchValueChangeHandler(new ConstraintMatchValueChangeHandler(actionConstraintMatch.getActionHardConstraintMatch())); softConstraintMatchInputWidget = new ConstraintMatchInputWidget(actionConstraintMatch.getActionSoftConstraintMatch()); softConstraintMatchInputWidget .addConstraintMatchValueChangeHandler(new ConstraintMatchValueChangeHandler(actionConstraintMatch.getActionSoftConstraintMatch())); VerticalPanel verticalPanel = new VerticalPanel(); HorizontalPanel labelPanel = createLabelPanel(translationService.getTranslation(GuidedRuleEditorConstants.RuleModellerActionPlugin_MultiConstraintMatch)); verticalPanel.add(labelPanel); verticalPanel.setCellHeight(labelPanel, "25px"); verticalPanel.add(getItemPanel(translationService.getTranslation(GuidedRuleEditorConstants.RuleModellerActionPlugin_HardScore), hardConstraintMatchInputWidget)); verticalPanel.add(getItemPanel(translationService.getTranslation(GuidedRuleEditorConstants.RuleModellerActionPlugin_SoftScore), softConstraintMatchInputWidget)); verticalPanel.setStyleName(GuidedRuleEditorResources.INSTANCE.css().multiConstraintMatch()); initWidget(verticalPanel); }
leftMiddle.setStyleName("WSDropShadow-leftMiddle"); left.add(leftMiddle); left.setCellHeight(leftMiddle, "100%"); rightMiddle.setStyleName("WSDropShadow-rightMiddle"); right.add(rightMiddle); right.setCellHeight(rightMiddle, "100%");