コード例 #1
0
 // TODO: figure this out...
 public void clearEditors() {
   removeAll();
   activeEditors.removeAllElements();
   templateDisplay.setToDefault();
   addEditor(templateDisplay);
   tableDisplay.displayEntry(null, null);
   addEditor(tableDisplay);
 }
コード例 #2
0
  /**
   * Used to force Attribute Display to show a particular web page, rather than an attribute
   * display. This forces it to change view to an HTMLTemplateDisplay editor, and then show the
   * desired URL thrugh this display.
   *
   * @param docURL the web page url to be displayed
   */
  public void openDocumentURL(String docURL) {
    if (templateDisplay == null) initHTMLEditor();

    templateDisplay.openDocumentURL(docURL);
    setCurrentEditor(templateDisplay);
  }