public void moveLocationUp(RouteLocation rl){
  int sequenceId=rl.getSequenceId();
  if (sequenceId - 1 <= 0) {
    rl.setSequenceId(_sequenceNum + 1);
    resequenceIds();
  }
 else {
    RouteLocation replaceRl=getItemBySequenceId(sequenceId - 1);
    if (replaceRl != null) {
      replaceRl.setSequenceId(sequenceId);
      rl.setSequenceId(sequenceId - 1);
    }
 else {
      resequenceIds();
    }
  }
  setDirtyAndFirePropertyChange(LISTCHANGE_CHANGED_PROPERTY,null,Integer.toString(sequenceId));
}

public void moveLocationUp ( RouteLocation rl ) { int sequenceId = rl . getSequenceId ( ) ; if ( sequenceId - 1 <= 0 ) { rl . setSequenceId ( _sequenceNum + 1 ) ; resequenceIds ( ) ; } else { RouteLocation replaceRl = getItemBySequenceId ( sequenceId - 1 ) ; if ( replaceRl != null ) { replaceRl . setSequenceId ( sequenceId ) ; rl . setSequenceId ( sequenceId - 1 ) ; } else { resequenceIds ( ) ; } } setDirtyAndFirePropertyChange ( LISTCHANGE_CHANGED_PROPERTY , null , Integer . toString ( sequenceId ) ) ; }
places a routelocation earlier in the route .
