@Override public String getHTML() { return container.getHTML(); }
@Override public String getHTML() { return label.getHTML(); }
@Override public String getHTML() { return textLabel.getHTML(); }
@Override public String getHTML() { return label.getHTML(); }
@Override public String getHTML() { return textLabel.getHTML(); }
public String getTextValue() { return label.getHTML(); }
/** * Gets the specified tab's HTML. * * @param index the index of the tab whose HTML is to be retrieved * @return the tab's HTML */ public String getTabHTML(int index) { if (index >= getTabCount()) { return null; } ClickDelegatePanel delPanel = (ClickDelegatePanel) panel.getWidget(index + 1); SimplePanel focusablePanel = delPanel.getFocusablePanel(); Widget widget = focusablePanel.getWidget(); if (widget instanceof HTML) { return ((HTML) widget).getHTML(); } else if (widget instanceof Label) { return ((Label) widget).getText(); } else { // This will be a focusable panel holding a user-supplied widget. return focusablePanel.getElement().getParentElement().getInnerHTML(); } }
public static String unescapeHTMLEntities(String escapedHTML) { if (escapedHTML == null) { return null; } return new HTML(escapedHTML).getHTML(); }
public static String unescapeHTMLEntities(String escapedHTML) { if (escapedHTML == null) { return null; } return new HTML(escapedHTML).getHTML(); }
@Override public String getHTML(){ if (Beans.isDesignTime()) return "DO NOT EDIT"; return super.getHTML(); }
void setContents(List<String> text) { contents.setHTML(""); if (text!=null) { int count = text.size(); for (int cx=0; cx<count; cx++) { contents.setHTML(contents.getHTML() + "<p>" + text.get(cx) + "</p>"); if (cx== MAX_TOOLTIPS) { contents.setHTML(contents.getHTML() + "<p>"+ (count- MAX_TOOLTIPS) +" more...</p>"); } } } }
@Override public void run() { dirty = false; logTextArea.setHTML(logTextArea.getHTML() + logText); logText = ""; DeferredCommand.addCommand( new Command() { public void execute() { scrollPanel.setScrollPosition(MAX_VERTICAL_SCROLL); } }); } };
@Override public void run() { dirty = false; logTextArea.setHTML(logTextArea.getHTML() + logText); logText = ""; Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { scrollPanel.setVerticalScrollPosition(MAX_VERTICAL_SCROLL); } }); } };
public String getCaption() { FlowPanel contents = (FlowPanel)getWidget(1); if (contents.getWidgetCount() > 0) { HTML w = (HTML) contents.getWidget(0); return w.getHTML(); } return ""; }
public static void log(String msg, Throwable e) { if (mlog == null) { if (Window.Location.getParameter("log") != null) { mlog = new HTML(); RootPanel.get().add(mlog); log(msg, e); } else { if (logger == null) { logger = Logger.getLogger("Gwt client Uploader"); } logger.info(msg); GWT.log(msg, e); } } else { String html = (msg + "\n" + (e != null ? e.getMessage() :"")).replaceAll("\n", "<br/>"); mlog.setHTML(mlog.getHTML() + html); } }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public boolean edit(WSGrid.WSCell element) { wsCellReference = element; editCellReference = this; Style s = listBox.getElement().getStyle(); s.setProperty("left", element.getAbsoluteLeft() + "px"); s.setProperty("top", element.getAbsoluteTop() + "px"); listBox.clear(); int i = 0; for (String v : values) { listBox.addItem(v); if (html.getHTML().equals(v)) listBox.setSelectedIndex(i); i++; } listBox.setVisible(true); listBox.setFocus(true); return true; }