public PropertiesSection getPropertiesSection(boolean onlyDefault) { PropertiesSection sect; refreshValues(); sect = new PropertiesSection("Page"); if (!onlyDefault) { if (linkObject > 0) { sect.addEntry("Object", String.valueOf(linkObject)); for (int i = 0; i < links.size(); i++) { sect.addEntry("on" + (i + 1) + "jumpTo", (String) links.elementAt(i)); } } } return sect; }
public void importData(PropertiesSection prop) { int counter; linkObject = transf.createInt(prop.getValue("object"), "Object not defined in Page-Interactive."); if (linkObject < 1) { linkObject = 1; } counter = 1; while (prop.getValue("on" + counter + "jumpto") != null) { links.addElement( transf.setString( prop.getValue("on" + counter + "jumpto"), "on" + counter + "jumpto not set in Page-Interactive.")); counter++; } }