Пример #1
0
 /*
  * @see toolbox.workspace.IPreferenced#savePrefs(nu.xom.Element)
  */
 public void savePrefs(Element prefs) throws PreferencedException {
   Element root = new Element(NODE_JSMARTTABLE);
   PreferencedUtil.writePreferences(this, root, SAVED_PROPS);
   XOMUtil.insertOrReplace(prefs, root);
 }
Пример #2
0
  /*
   * @see toolbox.workspace.IPreferenced#applyPrefs(nu.xom.Element)
   */
  public void applyPrefs(Element prefs) throws PreferencedException {
    Element root =
        XOMUtil.getFirstChildElement(prefs, NODE_JSMARTTABLE, new Element(NODE_JSMARTTABLE));

    PreferencedUtil.readPreferences(this, root, SAVED_PROPS);
  }