Ejemplo n.º 1
0
  public void afterChange(String propertyName) {

    for (RtfPropertyListener listener : listeners) {
      listener.afterPropertyChange(propertyName);
    }

    if (propertyName.startsWith(CHARACTER)) {

    } else {
      if (propertyName.startsWith(PARAGRAPH)) {

      } else {
        if (propertyName.startsWith(SECTION)) {

        } else {
          if (propertyName.startsWith(DOCUMENT)) {}
        }
      }
    }
  }
Ejemplo n.º 2
0
  public void afterChange(String propertyName) {
    // call listener for all
    RtfPropertyListener listener;
    for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {
      listener = (RtfPropertyListener) iterator.next();
      listener.afterPropertyChange(propertyName);
    }

    if (propertyName.startsWith(CHARACTER)) {
      // call listener for character chane
    } else {
      if (propertyName.startsWith(PARAGRAPH)) {
        // call listener for paragraph change
      } else {
        if (propertyName.startsWith(SECTION)) {
          // call listener for section change
        } else {
          if (propertyName.startsWith(DOCUMENT)) {
            // call listener for document change
          }
        }
      }
    }
  }