public void setValue(Component cmp, String style) { ((HtmlBasedComponent) cmp).setStyle(style); }
/** * Create a drilldown event listener for the specified component. * * @param component The component to which the event listener will be attached. * @param dataObject Data object for the drilldown. * @param drillDownDisplayClass Dialog class for the drilldown display. */ public DrillDownListener(Component component, T dataObject, Class<?> drillDownDisplayClass) { super(); this.component = component; this.dataObject = dataObject; this.drillDownDisplayClass = drillDownDisplayClass; component.addEventListener(Events.ON_CLICK, this); if (component instanceof HtmlBasedComponent) { ((HtmlBasedComponent) component).setStyle(StringUtils.trimToEmpty(((HtmlBasedComponent) component).getStyle()) .concat("cursor:pointer;")); } }
grid.addRow(group, insertBefore); group.setValue(label); ((HtmlBasedComponent) group.getFirstChild()).setStyle("float:left"); group.appendChild(new Label(label)); return group;
((HtmlBasedComponent) comp).setStyle("display: none"); Events.echoEvent("onSubmit", comp, null);
/** * Add an esignature item to the list. * * @param item The item to add. */ private void addItem(ESigItem item) { esigTypes.add(item.getESigType()); Group group = nextGroup(findGroup(item)); Row row = grid.addRow(new Row(), group); ((HtmlBasedComponent) row.getFirstChild()).setStyle("margin-left:15px"); row.setStyle("border:none"); Label label = new Label(item.getText()); label.setPre(true); row.appendChild(label); row.setValue(item); SignState ss = item.getSignState(); grid.setSelected(row, !ss.isYes()); grid.setDisabled(row, ss.isForced()); }