protected void initializeScrollFields() {
   for (int i = 0; i < fieldnames.length; i++) {
     PropertyValue[] currowproperties = new PropertyValue[2];
     currowproperties[0] = Properties.createProperty(getColumnName(i), fieldnames[i], i);
     currowproperties[1] =
         Properties.createProperty(getTitleName(i), fieldtitles[i], i); // getTitleName(i)
     registerControlGroup(currowproperties, i);
   }
 }
Beispiel #2
0
  protected XComponent setDocument(String url_, String[] propNames, Object[] propValues)
      throws com.sun.star.lang.IllegalArgumentException, IOException, CloseVetoException {
    url = url_;

    Properties ps = new Properties();

    for (int i = 0; i < propNames.length; i++) {
      ps.put(propNames[i], propValues[i]);
    }
    return setDocument(url, ps.getProperties());
  }