label.addStyleName(REQUIRED); oldPassword = new ExtendedPasswordTextBox(); table.setWidget(row, 0, label); row++; label = new Label(Utils.constants.newPassword()); label.addStyleName(REQUIRED); newPassword = new ExtendedPasswordTextBox(); table.setWidget(row, 0, label); row++; label = new Label(Utils.constants.newPasswordAgain()); label.addStyleName(REQUIRED); newPasswordAgain = new ExtendedPasswordTextBox(); table.setWidget(row, 0, label);
label.addStyleName(REQUIRED); name = new KaaAdminSizedTextBox(SDK_NAME_TEXT_SIZE_BOX); name.addInputHandler(this); label.addStyleName(REQUIRED); configurationSchemaVersion = new VersionListBox(); configurationSchemaVersion.setWidth("80px"); label.addStyleName(REQUIRED); profileSchemaVersion = new VersionListBox(); profileSchemaVersion.setWidth("80px"); label.addStyleName(REQUIRED); notificationSchemaVersion = new VersionListBox(); notificationSchemaVersion.setWidth("80px"); label.addStyleName(REQUIRED); logSchemaVersion = new VersionListBox(); logSchemaVersion.setWidth("80px");
label.addStyleName(Utils.avroUiStyle.requiredField()); topic = new TopicListBox(); topic.setWidth("200px");
schemaVersionLabel.addStyleName(Utils.avroUiStyle.requiredField()); schemaBox = new SchemaInfoListBox(); schemaBox.setWidth("50px");
label.addStyleName(Utils.avroUiStyle.requiredField()); usernameOrEmail = new KaaAdminSizedTextBox(255); table.setWidget(row, 0, label);
/** * Sets the content widget which can be opened and closed by this panel. If * there is a preexisting content widget, it will be detached. * * @param content the widget to be used as the content panel */ public void setContent(Widget content) { final Widget currentContent = getContent(); // Remove existing content widget. if (currentContent != null) { contentWrapper.setWidget(null); currentContent.removeStyleName(STYLENAME_CONTENT); } // Add new content widget if != null. if (content != null) { contentWrapper.setWidget(content); content.addStyleName(STYLENAME_CONTENT); setContentDisplay(false); } }
child.addStyleName(CONTENT_STYLE);
private void setSelectionStyle(Widget item, boolean selected) { if (item != null) { if (selected) { item.addStyleName("gwt-TabBarItem-selected"); setStyleName(DOM.getParent(item.getElement()), "gwt-TabBarItem-wrapper-selected", true); } else { item.removeStyleName("gwt-TabBarItem-selected"); setStyleName(DOM.getParent(item.getElement()), "gwt-TabBarItem-wrapper-selected", false); } } } }
child.addStyleName(CONTENT_STYLE);
protected void applyActiveStyle(Widget widget, boolean active) { if (active) { widget.removeStyleName(CssName.INACTIVE); widget.addStyleName(CssName.ACTIVE); } else { widget.removeStyleName(CssName.ACTIVE); widget.addStyleName(CssName.INACTIVE); } }
/** * {@inheritDoc} */ @Override public void add(final Widget w) { w.addStyleName(Styles.ACTIVE); super.add(w); } }
/** * {@inheritDoc} */ @Override public void setWidget(Widget w) { super.setWidget(w); if(widget != null) { widget.addStyleName(Constants.COLLAPSE); } }
/** * {@inheritDoc} */ @Override public void add(final Widget w) { w.addStyleName(Styles.ACTIVE); super.add(w); children.add(w); } }
@Override public void add(final Widget child) { if (child instanceof MaterialImage) { child.addStyleName(CssName.ACTIVATOR); } add(child, (Element) getElement()); } }
/** {@inheritDoc} */ @Override public void add(final Widget w) { if (w instanceof ListBox || w instanceof FileUpload) { w.addStyleName(Styles.FORM_CONTROL); } add(w, (Element) getElement()); }
/** {@inheritDoc} */ @Override public void add(final Widget w) { if (w instanceof ListBox || w instanceof FileUpload) { w.addStyleName(Styles.FORM_CONTROL); } add(w, (Element) getElement()); }
public void makeActive(Widget child) { parent.clearActive(); // mark the collapsible item as active MaterialCollapsibleItem item = findCollapsibleItemParent(child); if (item != null) { item.expand(); } child.addStyleName(CssName.ACTIVE); }
@Override public void setDataTargetWidgets(final List<Widget> widgets) { final String styleName = Document.get().createUniqueId(); for (final Widget widget : widgets) { widget.addStyleName(styleName); } this.setDataTarget("." + styleName); }
@Test public void testMaximize() { workbenchLayout.maximize(widget); verify(widget).addStyleName(WorkbenchLayoutImpl.UF_MAXIMIZED_PANEL); verify(((RequiresResize) widget), never()).onResize(); }
@Override protected void onAttach() { if (!isOrWasAttached() && children.size() > 0) { final Widget lastWidget = children.get(children.size() - 1); lastWidget.addStyleName(Styles.ACTIVE); } super.onAttach(); }