{@code Button 1 Button 2 Button 3 }
{@code Dropdown ListItem 1 ListItem 2 ListItem 3 }
3738394041424344
implements HasHref, HasTargetHistoryToken, HasClickHandlers, Focusable, HasDataToggle, HasIcon, HasIconPosition { protected final Anchor anchor; protected AbstractAnchorListItem() { anchor = new Anchor(); add(anchor, (Element) getElement()); }
5253545556575859606162
private LeafValueEditor<Boolean> editor; protected AbstractLabelButton(final TypeAttrType typeAttr) { super(ButtonType.DEFAULT); input = new CheckableInputButton(typeAttr); input.setStyleName(""); add(input, (Element) getElement()); iconTextMixin.addTextWidgetToParent(); }
181182183184185186187188189190191
if (icon != null) { icon.removeFromParent(); } icon = new Icon(); icon.setType(iconType); icon.setSize(iconSize); icon.setFlip(iconFlip); icon.setRotate(iconRotate); icon.setMuted(iconMuted);
194195196197198199200201202203204
169170171172173174175176177
switchCmd(getElement(), "onText", onText); this.onText = onText; } public void setOnIcon(final IconType iconType) { final Icon icon = new Icon(iconType); icon.setSize(IconSize.LARGE); setOnText(icon.getElement().getString()); }
185186187188189190191192193
switchCmd(getElement(), "offText", offText); this.offText = offText; } public void setOffIcon(final IconType iconType) { final Icon icon = new Icon(iconType); icon.setSize(IconSize.LARGE); setOffText(icon.getElement().getString()); }
6162636465666768697071
boolean reversed = false; private FormatterCallback formatterCallback; private LeafValueEditor<Double> editor; public SliderBase() { textBox = new TextBox(); // now remove the bootstrap styles textBox.removeStyleName(UIObject.getStyleName(textBox.getElement())); setElement((Element) textBox.getElement()); setValue(5.0); }
838485868788899091
private Widget container = null; private DateTimePickerLanguage language = DateTimePickerLanguage.EN; private DateTimePickerPosition position = DateTimePickerPosition.BOTTOM_RIGHT; public DateTimePickerBase() { textBox = new TextBox(); setElement((Element) textBox.getElement()); setFormat(format); }
147148149150151152153154155156157
// Separates the SM_MD into [SM, MD] so we can add the right styles final String[] deviceString = deviceSize.name().split("_"); for (final String device : deviceString) { // Case back to basic enum (PRINT, XS, SM, MD, LG) final DeviceSize size = DeviceSize.valueOf(device); switch (size) { case PRINT: addEnumStyleName(uiObject, Responsiveness.HIDDEN_PRINT); break; case XS:
182183184185186187188189190191192
// Separates the SM_MD into [SM, MD] so we can add the right styles final String[] deviceString = deviceSize.name().split("_"); for (final String device : deviceString) { // Case back to basic enum (PRINT, XS, SM, MD, LG) final DeviceSize size = DeviceSize.valueOf(device); switch (size) { case PRINT: addEnumStyleName(uiObject, Responsiveness.VISIBLE_PRINT); break; case XS: