/** * Creates an empty tab bar. */ public TabBar() { initWidget(panel); sinkEvents(Event.ONCLICK); setStyleName("gwt-TabBar"); // Add a11y role "tablist" Roles.getTablistRole().set(panel.getElement()); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM); HTML first = new HTML(" ", true), rest = new HTML(" ", true); first.setStyleName("gwt-TabBarFirst"); rest.setStyleName("gwt-TabBarRest"); first.setHeight("100%"); rest.setHeight("100%"); panel.add(first); panel.add(rest); first.setHeight("100%"); panel.setCellHeight(first, "100%"); panel.setCellWidth(rest, "100%"); setStyleName(first.getElement().getParentElement(), "gwt-TabBarFirst-wrapper"); setStyleName(rest.getElement().getParentElement(), "gwt-TabBarRest-wrapper"); }
protected Element getMousePointerLineElement() { if (this.verticalMousePointerLine == null) { this.verticalMousePointerLine = new HTML(); } return this.verticalMousePointerLine.getElement(); }
private void toggleClass(String offline, boolean add) { if(add) { icon.getElement().addClassName(offline); } else { icon.getElement().removeClassName(offline); } }
private void setColor( String color ) { if( color == null ) html.getElement().getStyle().clearBackgroundColor(); else html.getElement().getStyle().setBackgroundColor( color ); html.getElement().setAttribute( "value", color ); GWT.log( "setValue : " + color ); }
private void setColor( String color ) { if( color == null ) html.getElement().getStyle().clearBackgroundColor(); else html.getElement().getStyle().setBackgroundColor( color ); html.getElement().setAttribute( "value", color ); GWT.log( "setValue : " + color ); }
private void addLine(String line) { Element p = DOM.createElement("p"); p.setInnerHTML(line); htmlPanel.getElement().appendChild(p); htmlPanel.getElement().setScrollTop(1000000); }
/** * */ public void hideTooltips() { DOM.setStyleAttribute(DiagramTab.this.verticalMousePointerLine.getElement(), "width", "0px"); this.tooltipPresenter.setTooltipZIndex(0); }
/** * Inserts a spacer element in the first column to ensure that positioning of content is the same when there is or is not a checkbox. */ private void insertSelectionCheckboxSpacer(final TableCellElement td) { com.google.gwt.dom.client.Element container = td.getFirstChildElement(); container.insertFirst(selectionCheckBoxSpacer.getElement()); }
@Override public void onClick(ClickEvent event) { menu.show(icon.getElement(), new Style.AnchorAlignment(Style.Anchor.TOP, Style.Anchor.BOTTOM)); } });
private Widget getMissingGlobalsWarning() { HTML warning = new HTML( TestScenarioConstants.INSTANCE.missingGlobalsWarning() ); warning.getElement().setClassName( "missingGlobalsWarning" ); return warning; } }
public Canvas() { html = new HTML("<canvas></canvas>"); initWidget(html); canvas = (Element) html.getElement().getFirstChild(); }
@Override public JSONValue getValue() { String color = html.getElement().getAttribute( "value" ); if( color == null ) color = ""; GWT.log( "getValue : " + color ); return new JSONString( color ); }
public Canvas() { html = new HTML("<canvas></canvas>"); initWidget(html); canvas = (Element) html.getElement().getFirstChild(); }
@Override public JSONValue getValue() { String color = html.getElement().getAttribute( "value" ); if( color == null ) color = ""; GWT.log( "getValue : " + color ); return new JSONString( color ); }
private Widget getMissingGlobalsWarning() { HTML warning = new HTML(TestScenarioConstants.INSTANCE.missingGlobalsWarning()); warning.getElement().setClassName("missingGlobalsWarning"); return warning; } }
@Override public void execute(String parameter) { element = new HTML(new SafeHtmlBuilder().appendHtmlConstant(parameter).toSafeHtml()).getElement(); } });
@Override public void hideActions() { actions = new HashMap<>(); actionsContainer.getElement().setInnerHTML(""); layoutPanel.setWidgetHidden(actionsPanel, true); layoutPanel.setHeight("60px"); if (isVisible()) { Scheduler.get().scheduleDeferred(() -> center()); } }
public ColumnLabelWidget(final String text) { super(); final HTML wrapper = new HTML(); final Div div = new Div(); div.add(new Text(text)); wrapper.getElement().appendChild(div.getElement()); initWidget(wrapper); } }
public ColumnLabelWidget(final String text) { super(); final HTML wrapper = new HTML(); final Div div = new Div(); div.add(new Text(text)); wrapper.getElement().appendChild(div.getElement()); initWidget(wrapper); } }
label.getElement().getParentElement().addClassName(style.pageDetails()); nextPage.getElement().getParentElement().addClassName(style.button()); if (showFastForwardButton) {