@Override public void paintContent(PaintTarget target) throws PaintException { super.paintContent(target); target.addAttribute("p", propertyName); if (value instanceof Boolean) { target.addAttribute("v", ((Boolean) value).booleanValue()); target.addAttribute("t", "b"); } else if (value instanceof String) { target.addAttribute("v", (String) value); } }
public void paintContent(PaintTarget target) throws PaintException { if (!openList.isEmpty()) { for (OpenResource anOpenList : openList) { (anOpenList).paintContent(target); } openList.clear(); } if (newPushState != null) { target.addAttribute(UIConstants.ATTRIBUTE_PUSH_STATE, newPushState); newPushState = null; } if (newReplaceState != null) { target.addAttribute(UIConstants.ATTRIBUTE_REPLACE_STATE, newReplaceState); newReplaceState = null; } if (styles != null) { styles.paint(target); } }
public void paintContent(PaintTarget target) throws PaintException { if (notStarted) { target.addAttribute("notStarted", true); notStarted = false; return; target.addAttribute("focus", true); target.addAttribute("tabindex", tabIndex); target.addAttribute("state", isUploading); target.addAttribute("buttoncaption", buttonCaption); if (buttonStyleName != null) { target.addAttribute("buttonstylename", buttonStyleName); target.addAttribute("nextid", nextid);
@Override public void paint(int id, PaintTarget target) throws PaintException { target.startTag("css-resource"); target.addAttribute("id", id); target.addAttribute("url", resource); target.endTag("css-resource"); }
@Override public synchronized void paintContent(PaintTarget target) throws PaintException { if (bringToFront != null) { target.addAttribute("bringToFront", bringToFront.intValue()); bringToFront = null; } // Contents of the window panel is painted super.paintContent(target); }
@Override public void paintContent(PaintTarget target) throws PaintException { super.paintContent(target); target.addAttribute("p", dataFlavorId); }
target.addAttribute("src", resource); if (name != null && !name.isEmpty()) { target.addAttribute("name", name); target.addAttribute("popup", tryToOpenAsPopup); target.addAttribute("width", width); target.addAttribute("height", height); target.addAttribute("border", "minimal"); break; case NONE: target.addAttribute("border", "none"); break;
@Override public void paintContent(PaintTarget target) throws PaintException { super.paintContent(target); int paintedComponents = 0; for (int i = 0; i < components.length; i++) { Component c = components[i]; if (c.isAttached()) { target.addAttribute("component" + paintedComponents++, c); } else { Logger.getLogger(SourceIs.class.getName()).log(Level.WARNING, "SourceIs component {0} at index {1} is not attached to the component hierachy and will thus be ignored", new Object[] { c.getClass().getName(), Integer.valueOf(i) }); } } target.addAttribute("c", paintedComponents); }
@Override public void paint(int id, PaintTarget target) throws PaintException { target.startTag("css-string"); target.addAttribute("id", id); target.addText(css); target.endTag("css-string"); } }
target.addAttribute("id", item.getId()); target.addAttribute(MenuBarConstants.ATTRIBUTE_ITEM_STYLE, item.getStyleName()); target.addAttribute("separator", true); } else { target.addAttribute("text", item.getText()); target.addAttribute("command", true); target.addAttribute(MenuBarConstants.ATTRIBUTE_ITEM_ICON, icon); target.addAttribute(MenuBarConstants.ATTRIBUTE_ITEM_DISABLED, true); target.addAttribute(MenuBarConstants.ATTRIBUTE_ITEM_DESCRIPTION, description); target.addAttribute( MenuBarConstants.ATTRIBUTE_ITEM_DESCRIPTION_CONTENT_MODE, contentMode.name()); target.addAttribute(MenuBarConstants.ATTRIBUTE_CHECKED, item.isChecked());
@Override public void paint(PaintTarget target) throws PaintException { target.startTag("-ac"); target.addAttribute("name", getIdentifier()); paintContent(target); target.endTag("-ac"); }
@Override public void paint(PaintTarget target) throws PaintException { target.startTag("-ac"); target.addAttribute("name", getIdentifier()); paintContent(target); target.endTag("-ac"); }
@Override public void paintContent(PaintTarget target) throws PaintException { page.paintContent(target); if (scrollIntoView != null) { target.addAttribute("scrollTo", scrollIntoView); scrollIntoView = null; } if (pendingFocus != null) { // ensure focused component is still attached to this main window if (equals(pendingFocus.getUI()) || (pendingFocus.getUI() != null && equals(pendingFocus.getUI().getParent()))) { target.addAttribute("focused", pendingFocus); } pendingFocus = null; } if (actionManager != null) { actionManager.paintActions(null, target); } if (isResizeLazy()) { target.addAttribute(UIConstants.RESIZE_LAZY, true); } }
target.startTag("change"); final String pid = c.getConnectorId(); target.addAttribute("pid", pid); LegacyPaint.paint(c, target); target.endTag("change");
@Override public void paintContent(PaintTarget target) throws PaintException { target.addAttribute(DragAndDropWrapperConstants.DRAG_START_MODE, dragStartMode.ordinal()); target.addAttribute( DragAndDropWrapperConstants.DRAG_START_COMPONENT_ATTRIBUTE, dragImageComponent.getConnectorId()); target.addAttribute(DragAndDropWrapperConstants.HTML5_DATA_FLAVORS, html5DataFlavors);
/** Paint (serialize) the component for the client. */ @Override public void paintContent(PaintTarget target) throws PaintException { target.addAttribute(MenuBarConstants.OPEN_ROOT_MENU_ON_HOWER, openRootOnHover); if (isHtmlContentAllowed()) { target.addAttribute(MenuBarConstants.HTML_CONTENT_ALLOWED, true); } target.startTag("options"); if (getWidth() > -1) { target.startTag("moreItem"); target.addAttribute("text", moreItem.getText()); if (moreItem.getIcon() != null) { target.addAttribute("icon", moreItem.getIcon()); } target.endTag("moreItem"); } target.endTag("options"); target.startTag("items"); // This generates the tree from the contents of the menu for (MenuItem item : menuItems) { paintItem(target, item); } target.endTag("items"); }
final String akey = actionMapper.key(a); paintTarget.addAttribute("key", akey); if (a.getCaption() != null) { paintTarget.addAttribute("caption", a.getCaption()); paintTarget.addAttribute("icon", a.getIcon()); paintTarget.addAttribute("kc", sa.getKeyCode()); smodifiers[i] = String.valueOf(modifiers[i]); paintTarget.addAttribute("mk", smodifiers);
if (PaintStatus.CACHED == status) { target.addAttribute("cached", true); } else {
@Override public void paintContent(PaintTarget target) throws PaintException { target.addAttribute("type", "optiongroup"); if (isHtmlContentAllowed()) { target.addAttribute(OptionGroupConstants.HTML_CONTENT_ALLOWED, true); } super.paintContent(target); }
private void paintItemStyle(PaintTarget target, Object itemId) throws PaintException { if (itemStyleGenerator != null) { String style = itemStyleGenerator.getStyle(this, itemId); if (style != null && !style.isEmpty()) { target.addAttribute("style", style); } } }